From 29311642cef846c655d77cbdb051a0705fbfa6e2 Mon Sep 17 00:00:00 2001 From: Philipp Dallig Date: Sun, 7 Aug 2016 14:53:07 +0200 Subject: [PATCH] json_pure >= 2.0 has no support for ruby < 2.0 --- Gemfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Gemfile b/Gemfile index e951533c..7f3a74e6 100644 --- a/Gemfile +++ b/Gemfile @@ -7,6 +7,10 @@ if RUBY_VERSION =~ /^1\.8\./ gem 'nokogiri', '~> 1.5.0' end +if RUBY_VERSION =~ /^1\.9\./ or RUBY_VERSION =~ /^1\.8\./ + gem 'json_pure', '< 2.0.0' +end + gem 'puppet', ENV.key?('PUPPET_VERSION') ? "~> #{ENV['PUPPET_VERSION']}.0" : '>= 2.7' gem 'rspec-puppet', '~> 2.0' gem 'puppetlabs_spec_helper', '>= 0.1.0'