Skip to content

Commit

Permalink
Require Ruby 3.1
Browse files Browse the repository at this point in the history
Ruby 3.0 and older are dead upstream. Requiring 3.1 or newer allows us
to safely use latest gem dependencies. Beaker isn't tied to the Puppet
AIO Ruby versions, so we don't need to stay on Ruby 2.6 or 2.7.
  • Loading branch information
bastelfreak committed Sep 6, 2024
1 parent 657cb33 commit d627817
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ jobs:
fail-fast: false
matrix:
include:
- ruby: "2.7"
- ruby: "3.0"
- ruby: "3.1"
- ruby: "3.2"
- ruby: "3.3"
Expand Down
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ inherit_from: .rubocop_todo.yml
inherit_gem:
voxpupuli-rubocop: rubocop.yml

AllCops:
TargetRubyVersion: 3.1

Layout/LineLength:
Exclude:
- acceptance/**/*.rb
Expand Down
4 changes: 2 additions & 2 deletions beaker.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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'

Expand Down

0 comments on commit d627817

Please sign in to comment.