From 9d16343c79299c28bdff05655564eb1c1e2360eb Mon Sep 17 00:00:00 2001 From: Joseph Herlant Date: Tue, 24 Jan 2017 19:07:20 -0800 Subject: [PATCH] Fix wrong number of arguments (5 for 1..3) for puppet < 4 and ruby > 2 --- skeleton/Gemfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skeleton/Gemfile b/skeleton/Gemfile index 09e52ad..256c27c 100644 --- a/skeleton/Gemfile +++ b/skeleton/Gemfile @@ -8,7 +8,7 @@ group :test do gem 'rspec-core', '< 3.2.0' if RUBY_VERSION < '1.9' gem 'rspec-puppet' gem 'rspec-puppet-facts' - gem 'rubocop', if RUBY_VERSION < '2.0.0' then '< 0.42.0' end + 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 gem 'simplecov', '>= 0.11.0' gem 'simplecov-console', if RUBY_VERSION < '2.0.0' then '< 0.4.0' end