Permalink
Browse files

Force ruby 2 to install json 2

  • Loading branch information...
1 parent dff1fae commit dc7417d5049b1809cea214314c15dd93a5dd964f @amatsuda amatsuda committed Nov 22, 2016
Showing with 5 additions and 1 deletion.
  1. +5 −1 Gemfile
View
@@ -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

0 comments on commit dc7417d

Please sign in to comment.