From a878ab1dc3c4eed74d66333a73ea9c4d154ef2b5 Mon Sep 17 00:00:00 2001 From: Michael Hashizume Date: Mon, 26 Feb 2024 10:08:37 -0800 Subject: [PATCH] Limit beaker-puppet to older Rubies No version of beaker-puppet is compatible with Ruby >= 3.2 because of taint functions. Because beaker-puppet specifies that it cannot run on Ruby > 3.1 in its gemspec, when you run bundle install on newer Rubies- even when excluding the Gem group to which beaker-puppet belongs- Bundler errors. This commit updates the Gemfile to only list beaker-puppet if Ruby is less than 3.1.0. --- Gemfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 2bb910c..13ae7e7 100644 --- a/Gemfile +++ b/Gemfile @@ -40,7 +40,7 @@ group :development do gem "beaker-abs", *location_for(ENV['BEAKER_ABS_VERSION'] || '~> 1.0') gem "beaker-hostgenerator" gem "beaker-rspec" - gem "beaker-puppet", *location_for(ENV['BEAKER_PUPPET_VERSION'] || '~> 3.0') + gem "beaker-puppet", *location_for(ENV['BEAKER_PUPPET_VERSION'] || '~> 3.0') if Gem::Requirement.create('< 3.1.0').satisfied_by?(Gem::Version.new(RUBY_VERSION.dup)) gem "async", '~> 1', require: false gem "beaker-module_install_helper", require: false gem "beaker-puppet_install_helper", require: false