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 @@ -16,9 +16,11 @@ Gemfile:
16
16
from_env : BEAKER_HOSTGENERATOR_VERSION
17
17
- gem : beaker-rspec
18
18
from_env : BEAKER_RSPEC_VERSION
19
+ # Prevent beaker-puppet from being installed on Ruby > 3.1 until beaker-puppet supports newer Rubies (PA-6136)
19
20
- gem : beaker-puppet
20
21
from_env : BEAKER_PUPPET_VERSION
21
22
version : ' ~> 3.0'
23
+ condition : Gem::Requirement.create('< 3.2.0').satisfied_by?(Gem::Version.new(RUBY_VERSION.dup))
22
24
# We can unpin async when we move to Ruby 3
23
25
- gem : async
24
26
version : ' ~> 1'
@@ -41,4 +43,5 @@ appveyor.yml:
41
43
# We still use the Vox acceptance Rake task instead of Litmus
42
44
Rakefile :
43
45
requires :
44
- - voxpupuli/acceptance/rake
46
+ - require : voxpupuli/acceptance/rake
47
+ 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