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:
17
17
from_env : BEAKER_HOSTGENERATOR_VERSION
18
18
- gem : beaker-rspec
19
19
from_env : BEAKER_RSPEC_VERSION
20
+ # Prevent beaker-puppet from being installed on Ruby > 3.1 until beaker-puppet supports newer Rubies (PA-6136)
20
21
- gem : beaker-puppet
21
22
from_env : BEAKER_PUPPET_VERSION
22
23
version : ' ~> 3.0'
24
+ condition : Gem::Requirement.create('< 3.2.0').satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
23
25
# We can unpin async when we move to Ruby 3
24
26
- gem : async
25
27
version : ' ~> 1'
@@ -42,4 +44,5 @@ appveyor.yml:
42
44
# We still use the Vox acceptance Rake task instead of Litmus
43
45
Rakefile :
44
46
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
40
40
gem "beaker-abs" , *location_for ( ENV [ 'BEAKER_ABS_VERSION' ] || '~> 1.0' )
41
41
gem "beaker-hostgenerator"
42
42
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 ) )
44
44
gem "async" , '~> 1' , require : false
45
45
gem "beaker-module_install_helper" , require : false
46
46
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'
6
6
require 'puppet-syntax/tasks/puppet-syntax'
7
7
require 'github_changelog_generator/task' if Gem . loaded_specs . key? 'github_changelog_generator'
8
8
require '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'
10
10
11
11
def changelog_user
12
12
return unless Rake . application . top_level_tasks . include? "changelog"
You can’t perform that action at this time.
0 commit comments