Skip to content

Commit a844a28

Browse files
committed
(GH-372) Reset min Ruby requirement
Prior to this change the required Ruby version was set to greater than or equal to 2.7. This meant that the spec_helpers gem would not run on systems with Ruby 2.5. This change updates the required Ruby version so that Rubies 2.5 and above are compatibel. Additionally the following gems were downgraded for compatibility: * pathspec is now ~> 0.2 * puppet-lint is now ~> 2.5.2
1 parent 1fc08ba commit a844a28

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ group :development do
2525
gem 'rubocop', '~> 1.6.1', require: false
2626
gem 'rubocop-rspec', '~> 2.0.1', require: false
2727
gem 'rubocop-performance', '~> 1.9.1', require: false
28-
28+
#
2929
gem 'fakefs'
3030
gem 'yard'
3131
end

puppetlabs_spec_helper.gemspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ Gem::Specification.new do |spec|
2626
spec.executables = Dir['bin/**/*'].map { |f| File.basename(f) }
2727
spec.require_paths = ['lib']
2828

29-
spec.required_ruby_version = Gem::Requirement.new('>= 2.7')
29+
spec.required_ruby_version = Gem::Requirement.new('>= 2.5')
3030

3131
spec.add_runtime_dependency 'mocha', '~> 1.0'
32-
spec.add_runtime_dependency 'pathspec', '~> 1.0'
33-
spec.add_runtime_dependency 'puppet-lint', '~> 3.0'
32+
spec.add_runtime_dependency 'pathspec', '~> 0.2'
33+
spec.add_runtime_dependency 'puppet-lint', '~> 2.5.2'
3434
spec.add_runtime_dependency 'puppet-syntax', '~> 3.0'
3535
spec.add_runtime_dependency 'rspec-github', '~> 2.0'
3636
spec.add_runtime_dependency 'rspec-puppet', '~> 2.0'

0 commit comments

Comments
 (0)