Skip to content

Commit 6671506

Browse files
committed
Require Ruby 3.1 or newer
Ruby 3.0 and older are EoL. Also latest PathSpec and minitar dropped support for Ruby 3.0.
1 parent 1b33adc commit 6671506

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,10 @@ jobs:
1818
fail-fast: false
1919
matrix:
2020
ruby_version:
21-
- "2.7"
21+
- "3.3"
2222
- "3.2"
23+
- "3.1"
2324
include:
24-
- ruby-version: '2.7'
25-
puppet_gem_version: '~> 7.0'
2625
- ruby_version: '3.2'
2726
puppet_gem_version: '~> 8.0' # puppet8'
2827
runs_on:
@@ -42,11 +41,10 @@ jobs:
4241
strategy:
4342
matrix:
4443
ruby_version:
45-
- "2.7"
44+
- "3.3"
4645
- "3.2"
46+
- "3.1"
4747
include:
48-
- ruby-version: '2.7'
49-
puppet_gem_version: '~> 7.0'
5048
- ruby_version: '3.2'
5149
puppet_gem_version: 'https://github.com/puppetlabs/puppet' # puppet8'
5250
runs_on:

.rubocop.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ inherit_gem:
77
# Disabled
88
Style/ClassAndModuleChildren:
99
Enabled: false
10+
11+
AllCops:
12+
TargetRubyVersion: '3.1'

puppet-modulebuilder.gemspec

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,8 @@ Gem::Specification.new do |spec|
2525
spec.require_paths = ['lib']
2626
# minitar and pathspec is required for building Puppet modules
2727
spec.add_runtime_dependency 'minitar', '~> 0.9'
28-
spec.add_runtime_dependency 'pathspec', '>= 0.2.1', '< 3.0.0'
28+
spec.add_runtime_dependency 'pathspec', '~> 2.1'
2929

3030
spec.add_development_dependency 'voxpupuli-rubocop', '~> 2.8.0'
31-
32-
spec.required_ruby_version = Gem::Requirement.new('>= 2.7.0')
31+
spec.required_ruby_version = '>= 3.1'
3332
end

0 commit comments

Comments
 (0)