File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -17,9 +17,11 @@ Gemfile:
1717 from_env : BEAKER_HOSTGENERATOR_VERSION
1818 - gem : beaker-rspec
1919 from_env : BEAKER_RSPEC_VERSION
20+ # Prevent beaker-puppet from being installed on Ruby > 3.1 until beaker-puppet supports newer Rubies (PA-6136)
2021 - gem : beaker-puppet
2122 from_env : BEAKER_PUPPET_VERSION
2223 version : ' ~> 3.0'
24+ condition : Gem::Requirement.create('< 3.2.0').satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
2325 # We can unpin async when we move to Ruby 3
2426 - gem : async
2527 version : ' ~> 1'
@@ -42,4 +44,5 @@ appveyor.yml:
4244# We still use the Vox acceptance Rake task instead of Litmus
4345Rakefile :
4446 requires :
45- - voxpupuli/acceptance/rake
47+ - require : voxpupuli/acceptance/rake
48+ conditional : Gem.loaded_specs.key? 'voxpupuli-acceptance'
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ group :development do
4040 gem "beaker-abs" , *location_for ( ENV [ 'BEAKER_ABS_VERSION' ] || '~> 1.0' )
4141 gem "beaker-hostgenerator"
4242 gem "beaker-rspec"
43- gem "beaker-puppet" , *location_for ( ENV [ 'BEAKER_PUPPET_VERSION' ] || '~> 3.0' )
43+ gem "beaker-puppet" , *location_for ( ENV [ 'BEAKER_PUPPET_VERSION' ] || '~> 3.0' ) if Gem :: Requirement . create ( '< 3.2.0' ) . satisfied_by? ( Gem :: Version . new ( RUBY_VERSION . dup ) )
4444 gem "async" , '~> 1' , require : false
4545 gem "beaker-module_install_helper" , require : false
4646 gem "beaker-puppet_install_helper" , require : false
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ require 'puppetlabs_spec_helper/rake_tasks'
66require 'puppet-syntax/tasks/puppet-syntax'
77require 'github_changelog_generator/task' if Gem . loaded_specs . key? 'github_changelog_generator'
88require 'puppet-strings/tasks' if Gem . loaded_specs . key? 'puppet-strings'
9- require 'voxpupuli/acceptance/rake'
9+ require 'voxpupuli/acceptance/rake' if Gem . loaded_specs . key? 'voxpupuli-acceptance'
1010
1111def changelog_user
1212 return unless Rake . application . top_level_tasks . include? "changelog"
You can’t perform that action at this time.
0 commit comments