summaryrefslogtreecommitdiff
path: root/Gemfile
diff options
context:
space:
mode:
authorFlorian Frank <flori@ping.de>2016-09-23 18:37:50 +0300
committerFlorian Frank <flori@ping.de>2016-09-23 21:43:38 +0300
commit7e240ed5765867bfbdd166435f941a4cebed8cd8 (patch)
tree31e381d00a2c47a513143ba723847140fd27b7da /Gemfile
parent8c7eb9e93916f2d863fc9ead9422427e243a5956 (diff)
downloadjson-7e240ed5765867bfbdd166435f941a4cebed8cd8.tar.gz
Merge decimal_class patch by Michael Jaschob
Also: - Avoid some issues with bundler - Avoid some issues with jruby
Diffstat (limited to 'Gemfile')
-rw-r--r--Gemfile13
1 files changed, 10 insertions, 3 deletions
diff --git a/Gemfile b/Gemfile
index 51ff10a..747bc71 100644
--- a/Gemfile
+++ b/Gemfile
@@ -2,8 +2,15 @@
source 'https://rubygems.org'
-gemspec :name => 'json'
-gemspec :name => 'json_pure'
-gemspec :name => 'json-java'
+case ENV['JSON']
+when 'ext', nil
+ if ENV['RUBY_ENGINE'] == 'jruby'
+ gemspec :name => 'json', :path => 'java'
+ else
+ gemspec :name => 'json'
+ end
+when 'pure'
+ gemspec :name => 'json_pure'
+end
gem 'simplecov'