From e0d9ac36c54e6add5e1f03d7257cb1db3bbcee04 Mon Sep 17 00:00:00 2001 From: Ewoud Kohl van Wijngaarden Date: Tue, 23 Feb 2021 15:16:49 +0100 Subject: [PATCH] Enhance check task for trailing whitespace puppetlabs_spec_helper 3.0.0 introduces a check task for various checks. This is a more natural place than release_checks. It also specifies the lower bound Ruby version as 2.4.0, following puppetlabs_spec_helper 3.0.0. --- lib/voxpupuli/test/rake.rb | 3 ++- voxpupuli-test.gemspec | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/voxpupuli/test/rake.rb b/lib/voxpupuli/test/rake.rb index 84bd895..dfdc9b2 100644 --- a/lib/voxpupuli/test/rake.rb +++ b/lib/voxpupuli/test/rake.rb @@ -21,4 +21,5 @@ end end end -Rake::Task[:release_checks].enhance ['check:trailing_whitespace'] + +task :check => 'check:trailing_whitespace' diff --git a/voxpupuli-test.gemspec b/voxpupuli-test.gemspec index f398cc8..595740e 100644 --- a/voxpupuli-test.gemspec +++ b/voxpupuli-test.gemspec @@ -12,13 +12,15 @@ Gem::Specification.new do |s| s.files = Dir['lib/**/*.rb', 'rubocop.yml'] + s.required_ruby_version = '>= 2.4.0' + s.add_runtime_dependency 'rake' # Testing s.add_runtime_dependency 'facterdb', '>= 1.4.0' s.add_runtime_dependency 'metadata-json-lint' s.add_runtime_dependency 'parallel_tests' - s.add_runtime_dependency 'puppetlabs_spec_helper', '>= 2.14.0' + s.add_runtime_dependency 'puppetlabs_spec_helper', '>= 3.0.0' s.add_runtime_dependency 'rspec-puppet-facts', '>= 1.9.5' s.add_runtime_dependency 'rspec-puppet-utils', '>= 1.9.5'