Permalink
Browse files

Specify different versions of json gem

1 parent 246fe40 commit 8e71cfcc6ce9c1f2160f5f0c1f694f379bf3996b @rwz rwz committed Jan 12, 2017
Showing with 7 additions and 2 deletions.
  1. +7 −2 Gemfile
View
@@ -3,8 +3,13 @@ source 'https://rubygems.org'
gem 'rake', '~> 10.5'
gem 'yard', '>= 0.8'
-gem 'json', '~> 2.0', :require => nil
-gem 'json_pure', '~> 2.0', :require => nil
+if RUBY_VERSION > '2.0'
+ gem 'json', '~> 2.0', :require => nil
+ gem 'json_pure', '~> 2.0', :require => nil
+else
+ gem 'json', '~> 1.8', :require => nil
+ gem 'json_pure', '~> 1.8', :require => nil
+end
group :development do
gem 'benchmark-ips'

0 comments on commit 8e71cfc

Please sign in to comment.