From 1013d7a336ce02cd58011844b48e2fcffeeafab1 Mon Sep 17 00:00:00 2001 From: Craig Gumbley Date: Mon, 23 Jan 2023 15:05:35 +0000 Subject: [PATCH] (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 --- puppetlabs_spec_helper.gemspec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/puppetlabs_spec_helper.gemspec b/puppetlabs_spec_helper.gemspec index 53bc37f2..8512fbf0 100644 --- a/puppetlabs_spec_helper.gemspec +++ b/puppetlabs_spec_helper.gemspec @@ -26,11 +26,11 @@ 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', '~> 1.0' - spec.add_runtime_dependency 'puppet-lint', '~> 3.0' + spec.add_runtime_dependency 'pathspec', '~> 0.2' + spec.add_runtime_dependency 'puppet-lint', '~> 2.5.2' spec.add_runtime_dependency 'puppet-syntax', '~> 3.0' spec.add_runtime_dependency 'rspec-github', '~> 2.0' spec.add_runtime_dependency 'rspec-puppet', '~> 2.0'