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 19:38:00 +0300
commit1d00c8da715eec2e56e2602b001c28f33c32c046 (patch)
tree635555280cd0cc645d71937efa284124e9c2983c /Gemfile
parent8c7eb9e93916f2d863fc9ead9422427e243a5956 (diff)
downloadjson-1d00c8da715eec2e56e2602b001c28f33c32c046.tar.gz
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'