Skip to content

Commit 9d16343

Browse files
Joseph Herlantaerostitch
authored andcommitted
Fix wrong number of arguments (5 for 1..3) for puppet < 4 and ruby > 2
1 parent 3b7ad65 commit 9d16343

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

skeleton/Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ group :test do
88
gem 'rspec-core', '< 3.2.0' if RUBY_VERSION < '1.9'
99
gem 'rspec-puppet'
1010
gem 'rspec-puppet-facts'
11-
gem 'rubocop', if RUBY_VERSION < '2.0.0' then '< 0.42.0' end
11+
gem 'rubocop', if RUBY_VERSION < '2.0.0' or Gem::Version.new((ENV['PUPPET_GEM_VERSION'] || '3.8.0').split(' ').last) < Gem::Version.new('4.0.0') then '< 0.42.0' end
1212
gem 'simplecov', '>= 0.11.0'
1313
gem 'simplecov-console', if RUBY_VERSION < '2.0.0' then '< 0.4.0' end
1414

0 commit comments

Comments
 (0)