From 3d2ae88e3dcd70962ff4456b0bcd53e212cece82 Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Thu, 25 Sep 2025 13:34:46 +0200 Subject: [PATCH] Require Ruby 3.2+ & puppet-lint 5.1+ --- .rubocop.yml | 3 +++ .rubocop_todo.yml | 11 +++++------ Gemfile | 4 ++-- puppet-lint-params_empty_string-check.gemspec | 4 ++-- 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 636ab39..b0ad999 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -9,3 +9,6 @@ inherit_gem: Naming/FileName: Exclude: - "*.gemspec" + +AllCops: + TargetRubyVersion: 3.2 diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 406a9b3..9e18058 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,6 +1,6 @@ # This configuration was generated by -# `rubocop --auto-gen-config` -# on 2023-04-21 12:33:23 UTC using RuboCop version 1.50.2. +# `rubocop --auto-gen-config --no-auto-gen-timestamp` +# using RuboCop version 1.79.2. # The point is for the user to remove these configuration records # one by one as the offenses are removed from the code base. # Note that changes in the inspected code, or installation of new @@ -36,21 +36,20 @@ RSpec/RepeatedExampleGroupDescription: Exclude: - 'spec/puppet-lint/plugins/check_params_empty_string_assignment/check_params_empty_string_assignment_spec.rb' -# Offense count: 5 +# Offense count: 3 # This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: EnforcedStyle. # SupportedStyles: always, always_true, never Style/FrozenStringLiteralComment: Exclude: - - 'Gemfile' - - 'Rakefile' + - '**/*.arb' - 'lib/puppet-lint/plugins/check_params_empty_string_assignment.rb' - 'puppet-lint-params_empty_string-check.gemspec' - 'spec/puppet-lint/plugins/check_params_empty_string_assignment/check_params_empty_string_assignment_spec.rb' # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, AllowedPatterns. +# Configuration parameters: AllowHeredoc, AllowURI, AllowQualifiedName, URISchemes, IgnoreCopDirectives, AllowedPatterns, SplitStrings. # URISchemes: http, https Layout/LineLength: Max: 145 diff --git a/Gemfile b/Gemfile index 6d8c9d3..549e640 100644 --- a/Gemfile +++ b/Gemfile @@ -13,6 +13,6 @@ group :development do gem 'rake', '~> 13.0', '>= 13.0.6' gem 'rspec', '~> 3.12' gem 'rspec-collection_matchers', '~> 1.2' - gem 'rspec-its', '~> 1.3' - gem 'voxpupuli-rubocop', '~> 2.0' + gem 'rspec-its', '>= 1.3', '< 3' + gem 'voxpupuli-rubocop', '~> 4.2.0' end diff --git a/puppet-lint-params_empty_string-check.gemspec b/puppet-lint-params_empty_string-check.gemspec index 42a400f..5b9bc90 100644 --- a/puppet-lint-params_empty_string-check.gemspec +++ b/puppet-lint-params_empty_string-check.gemspec @@ -13,7 +13,7 @@ Gem::Specification.new do |spec| ] spec.summary = 'A puppet-lint plugin to check for class parameters assigned to the empty string.' - spec.required_ruby_version = '>= 2.7.0' + spec.required_ruby_version = '>= 3.2' - spec.add_dependency 'puppet-lint', '>= 3', '< 5' + spec.add_dependency 'puppet-lint', '~> 5.1' end