Last active
December 14, 2015 01:38
-
-
Save tolsen/5007366 to your computer and use it in GitHub Desktop.
jruby json gem dominates
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ jruby --version | |
jruby 1.7.2.dev (1.9.3p327) 2013-01-18 fffffff on Java HotSpot(TM) 64-Bit Server VM 1.7.0_07-b10 [darwin-x86_64] | |
$ gem list json | |
*** LOCAL GEMS *** | |
json (1.7.7 java) | |
$ irb | |
jruby-1.7.2.dev :001 > require 'json' | |
=> true | |
jruby-1.7.2.dev :002 > JSON::VERSION | |
=> "1.7.5" | |
jruby-1.7.2.dev :003 > | |
$ bundle exec rails c | |
Loading development environment (Rails 3.2.12) | |
jruby-1.7.2.dev :001 > JSON::VERSION | |
=> "1.7.7" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Behavior appears to be that jruby's json gem takes precedence except when using Rails/bundler.
Note that json is set to 1.7.7 in my Gemfile.lock