Skip to content

Commit c50cd51

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 c50cd51

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ jobs:
1818
fail-fast: false
1919
matrix:
2020
ruby_version:
21-
- "2.7"
21+
- "3.3"
2222
- "3.2"
23+
- "3.1"
2324
include:
2425
- ruby-version: '2.7'
2526
puppet_gem_version: '~> 7.0'
@@ -42,8 +43,9 @@ jobs:
4243
strategy:
4344
matrix:
4445
ruby_version:
45-
- "2.7"
46+
- "3.3"
4647
- "3.2"
48+
- "3.1"
4749
include:
4850
- ruby-version: '2.7'
4951
puppet_gem_version: '~> 7.0'

.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 = Gem::Requirement.new('>= 3.1.0')
3332
end

0 commit comments

Comments
 (0)