From dc7417d5049b1809cea214314c15dd93a5dd964f Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Tue, 22 Nov 2016 21:40:56 +0900 Subject: [PATCH] Force ruby 2 to install json 2 --- Gemfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 4c0b2fd1..b1476845 100644 --- a/Gemfile +++ b/Gemfile @@ -17,7 +17,6 @@ group :test do end platforms :ruby_18, :ruby_19 do gem "mime-types", "~> 1.25" - gem "json", "~> 1.8" gem "addressable", "~> 2.3.0" end platforms :ruby_18, :ruby_19, :ruby_20, :ruby_21 do @@ -32,6 +31,11 @@ group :test do gem "rubocop", "~> 0.41.0" gem "test-unit" end + if RUBY_VERSION.start_with? '1.' + gem "json", "~> 1.8" + else + gem "json", "~> 2.0" + end end gemspec