diff --git a/.rubocop.yml b/.rubocop.yml index 8caeaee8c..ba927a65c 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -4,6 +4,9 @@ inherit_from: .rubocop_todo.yml inherit_gem: voxpupuli-rubocop: rubocop.yml +AllCops: + TargetRubyVersion: 3.1 + Layout/LineLength: Exclude: - acceptance/**/*.rb diff --git a/beaker.gemspec b/beaker.gemspec index 663771cca..3da1b74eb 100644 --- a/beaker.gemspec +++ b/beaker.gemspec @@ -16,7 +16,7 @@ Gem::Specification.new do |s| s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) } s.require_paths = ["lib"] - s.required_ruby_version = Gem::Requirement.new('>= 2.7') + s.required_ruby_version = Gem::Requirement.new('>= 3.1') # Testing dependencies s.add_development_dependency 'fakefs', '~> 2.4' @@ -25,7 +25,7 @@ Gem::Specification.new do |s| s.add_development_dependency 'voxpupuli-rubocop', '~> 2.8.0' # Run time dependencies - s.add_runtime_dependency 'minitar', '~> 0.12' # newer versions require Ruby 3.1 + s.add_runtime_dependency 'minitar', '>= 0.12', '< 2' s.add_runtime_dependency 'minitest', '~> 5.4' s.add_runtime_dependency 'rexml', '~> 3.2', '>= 3.2.5'