From b50590f3b96d101b7e63607208ce7bda4db06cae Mon Sep 17 00:00:00 2001 From: Gabriel Filion Date: Tue, 11 Jun 2024 18:31:08 -0400 Subject: [PATCH] Let ruby determine versions of dependencies ruby's dependency resolver should be well able to determine what version limits are imposed to libraries based on the strict versioning that we have on the puppet gem. if things break because some things move to higher major versions, I'll fix the issues then. --- Gemfile | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/Gemfile b/Gemfile index 38a5421..397bf51 100644 --- a/Gemfile +++ b/Gemfile @@ -7,21 +7,15 @@ gem 'puppet', puppetversion gem 'rake' group :tests do - gem 'metadata-json-lint', '~> 4.0' + gem 'metadata-json-lint' # Use info from metadata.json for tests gem 'puppetlabs_spec_helper' gem 'puppet-lint', '>= 2.3.0' - # rubocop:disable Bundler/DuplicatedGem - gem 'puppet_metadata', '~> 3.6', require: false if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.7.0') - gem 'puppet_metadata', '~> 2.1', require: false if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new('2.7.0') - # rubocop:enable Bundler/DuplicatedGem - gem 'puppet-syntax', '~> 3.3' + gem 'puppet_metadata' + gem 'puppet-syntax' gem 'rspec-puppet', '>= 2.4.0' # This draws in rubocop and other useful gems for puppet tests - # rubocop:disable Bundler/DuplicatedGem - gem 'voxpupuli-test', '~> 7.1', require: false if Gem::Version.new(RUBY_VERSION.dup) >= Gem::Version.new('2.7.0') - gem 'voxpupuli-test', '~> 5.7', require: false if Gem::Version.new(RUBY_VERSION.dup) < Gem::Version.new('2.7.0') - # rubocop:enable Bundler/DuplicatedGem + gem 'voxpupuli-test' end group :docs do