Skip to content

Commit

Permalink
Force ruby 2 to install json 2
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda committed Dec 25, 2016
1 parent dff1fae commit dc7417d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.