#1137 ✓resolved
kristian

dm-serializer misses json gem

Reported by kristian | November 29th, 2009 @ 10:14 PM | in 0.10.2

with an empty GEM_HOME, i.e. only extlib and dm-core, dm-serializer, you can not require 'dm-serializer':

jruby -e require('rubygems');require('dm-core');require('dm-serializer');"

file:/home/kristian/.m2/repository/org/jruby/jruby-complete/1.4.0/jruby-complete-1.4.0.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in require': no such file to load -- json (LoadError)

Comments and changes to this ticket

  • Dan Kubb (dkubb)

    Dan Kubb (dkubb) November 30th, 2009 @ 02:23 AM

    @kristian: I've added json_pure as a dependency on dm-serializer which should solve this problem by ensuring that some version of json is installed on the system. MRI has the "json" gem, and JRuby has the "json-ruby" gem if people would like to compile native versions for their platforms.

    The plan (from http://jira.codehaus.org/browse/JRUBY-1767) is to eventually merge json-ruby into the json package so that JRuby users can use a single command to install json support. Once this happens I will likely change the dependency from "json_pure" to "json" provided all of our target systems support it. (I say "likely" here, because I don't know when this will happen, and by the time it does we may have expanded the target systems to include Rubinius, MacRuby, IronRuby or other systems, some of which may not support the native json gem)

  • Dan Kubb (dkubb)

    Dan Kubb (dkubb) November 30th, 2009 @ 02:24 AM

    • State changed from “unconfirmed” to “resolved”

    (from [7d167c874f4368f278eb91d62760d911ff5abfa2]) [dm-serializer] Added json_pure as a required dependency

    • If native json gem is not installed, then json_pure will be used as a fallback.

    [#1137 state:resolved] http://github.com/datamapper/dm-more/commit/7d167c874f4368f278eb91d...

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket

Referenced by

Pages