Skip to content

Commit

Permalink
Require Ruby 3.1 or newer
Browse files Browse the repository at this point in the history
Ruby 3.0 and older are EoL. Also latest PathSpec and minitar dropped
support for Ruby 3.0.
  • Loading branch information
bastelfreak committed Sep 19, 2024
1 parent 1b33adc commit 6671506
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,10 @@ jobs:
fail-fast: false
matrix:
ruby_version:
- "2.7"
- "3.3"
- "3.2"
- "3.1"
include:
- ruby-version: '2.7'
puppet_gem_version: '~> 7.0'
- ruby_version: '3.2'
puppet_gem_version: '~> 8.0' # puppet8'
runs_on:
Expand All @@ -42,11 +41,10 @@ jobs:
strategy:
matrix:
ruby_version:
- "2.7"
- "3.3"
- "3.2"
- "3.1"
include:
- ruby-version: '2.7'
puppet_gem_version: '~> 7.0'
- ruby_version: '3.2'
puppet_gem_version: 'https://github.com/puppetlabs/puppet' # puppet8'
runs_on:
Expand Down
3 changes: 3 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@ inherit_gem:
# Disabled
Style/ClassAndModuleChildren:
Enabled: false

AllCops:
TargetRubyVersion: '3.1'
5 changes: 2 additions & 3 deletions puppet-modulebuilder.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ Gem::Specification.new do |spec|
spec.require_paths = ['lib']
# minitar and pathspec is required for building Puppet modules
spec.add_runtime_dependency 'minitar', '~> 0.9'
spec.add_runtime_dependency 'pathspec', '>= 0.2.1', '< 3.0.0'
spec.add_runtime_dependency 'pathspec', '~> 2.1'

spec.add_development_dependency 'voxpupuli-rubocop', '~> 2.8.0'

spec.required_ruby_version = Gem::Requirement.new('>= 2.7.0')
spec.required_ruby_version = '>= 3.1'
end

0 comments on commit 6671506

Please sign in to comment.