
dm-serializer requires the json gem, when it is bundled with Ruby 1.9.1-rc1
Reported by Postmodern | January 17th, 2009 @ 10:25 PM
When I was trying to require dm-serializer 0.9.9 in my code with Ruby 1.9.1-rc1, I noticed it was failing to require 'json' and 'json_pure'. This is because dm-serializer/lib/dm-serializer/to_json.rb attempts to load 'json' or 'json_pure' as RubyGems using the 'gem' method. With Ruby 1.9.1-rc1, json is now bundled along with Ruby.
Comments and changes to this ticket
-
Dan Kubb (dkubb) January 27th, 2009 @ 12:23 AM
- Assigned user changed from Dan Kubb (dkubb) to Xavier Shay
-
Xavier Shay January 27th, 2009 @ 11:07 AM
- State changed from unconfirmed to accepted
dan I'll have to chat to you on IRC about the ins and outs of the gem method
-
Xavier Shay June 19th, 2009 @ 08:13 PM
Fixed in http://github.com/xaviershay/dm-more/tree/776-ruby19-no-json-gem
Tested with multiruby against v1_8_6_339 (with gem) and v1_9_1_rc2 (without gem)
An unknown is can we specify a GEM_DEPENDENCIES for just 1.8.6? I'm trying to find out more about rubygems to see if this is possible.
-
Dan Kubb (dkubb) June 23rd, 2009 @ 12:30 AM
- State changed from accepted to resolved
(from [584de71628d69a98f284f64b5208a440ad557369]) [dm-serializer] Remove 'gem' usage so that it can use ruby1.9's bundled json version
[#776 state:resolved] http://github.com/datamapper/dm-more/commit/584de71628d69a98f284f64...
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.
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
-
776 dm-serializer requires the json gem, when it is bundled with Ruby 1.9.1-rc1 [#776 state:resolved] http://github.com/datamapper/dm-mo...