Skip to content

Commit

Permalink
(maint) Relax Ruby requirement
Browse files Browse the repository at this point in the history
Prior to this commit, pupeptlabs_spec_helper required Ruby >= 2.7 in its
Gemspec.

Puppetserver 7, which is expected to be supported as part of PE 2021.7.z
LTS through 2025, uses JRuby 9.3.y.z which targets compatibility with
Ruby 2.6 and uses that in its RUBY_VERSION.

Also, Puppet 7 lists its required Ruby as >= 2.5 in the Gemspec.

This commit relaxes the gemspec's Ruby requirements from >= 2.7 to >=
2.5 to allow full compatibility with Puppet and Puppetserver 7.
  • Loading branch information
mhashizume committed Jul 12, 2023
1 parent 03583f6 commit b6afe1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion puppetlabs_spec_helper.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
spec.executables = Dir['bin/**/*'].map { |f| File.basename(f) }
spec.require_paths = ['lib']

spec.required_ruby_version = Gem::Requirement.new('>= 2.7')
spec.required_ruby_version = Gem::Requirement.new('>= 2.5')

spec.add_runtime_dependency 'mocha', '~> 1.0'
spec.add_runtime_dependency 'pathspec', '>= 0.2', '< 2.0.0'
Expand Down

0 comments on commit b6afe1c

Please sign in to comment.