From c32fea5f8bb959c7416d6d7bdd24cdef950ee67b Mon Sep 17 00:00:00 2001 From: Antoine Cotten Date: Fri, 29 Jul 2016 19:05:04 +0200 Subject: [PATCH] Cap rake and json_pure versions on Ruby < 2.0 --- Gemfile | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/Gemfile b/Gemfile index fde04aa..9fcb784 100644 --- a/Gemfile +++ b/Gemfile @@ -6,8 +6,21 @@ else gem 'puppet', :require => false end -gem 'puppetlabs_spec_helper', :require => false +## begin compatibility +# https://github.com/bundler/bundler/issues/4420 + # https://github.com/rspec/rspec-core/issues/1864 -gem 'rspec', '< 3.2.0', {"platforms"=>["ruby_18"]} -gem 'rspec-puppet', '~> 2.1.0', :require => false -gem 'metadata-json-lint', :require => false +gem 'rspec', '< 3.2.0', :require => false + +# rake 11.0+ requires ruby 1.9+ +gem 'rake', '< 11.0.0', :require => false + +# json 2.0+ requires ruby 2.0+ +gem 'json', '< 2.0.0', :require => false +gem 'json_pure', '< 2.0.0', :require => false + +## end compatibility + +gem 'puppetlabs_spec_helper', :require => false +gem 'rspec-puppet', :require => false +gem 'metadata-json-lint', :require => false