Skip to content

Instantly share code, notes, and snippets.

@tolsen
Last active December 14, 2015 01:38
Show Gist options
  • Save tolsen/5007366 to your computer and use it in GitHub Desktop.
Save tolsen/5007366 to your computer and use it in GitHub Desktop.
jruby json gem dominates
$ 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"
@tolsen
Copy link
Author

tolsen commented Feb 21, 2013

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment