#1418 ✓resolved
David R. MacIver

dm-types interacts badly with JSON gem

Reported by David R. MacIver | September 28th, 2010 @ 07:02 AM | in 1.1

In that it basically prevents anything from working correctly. The attached file when run will blow up with:

/opt/ruby1.8/lib/ruby/gems/1.8/gems/json-1.4.6/lib/json/common.rb:65: warning: already initialized constant State
/opt/ruby1.8/lib/ruby/gems/1.8/gems/json-1.4.6/lib/json/common.rb:66: warning: already initialized constant SAFE_STATE_PROTOTYPE
/opt/ruby1.8/lib/ruby/gems/1.8/gems/json-1.4.6/lib/json/common.rb:67: warning: already initialized constant FAST_STATE_PROTOTYPE
/opt/ruby1.8/lib/ruby/gems/1.8/gems/json-1.4.6/lib/json/common.rb:74: warning: already initialized constant PRETTY_STATE_PROTOTYPE
/opt/ruby1.8/lib/ruby/gems/1.8/gems/json-1.4.6/lib/json/pure.rb:76: warning: already initialized constant JSON_LOADED
/opt/ruby1.8/lib/ruby/gems/1.8/gems/json-1.4.6/lib/json/pure/generator.rb:318:in `to_json': wrong argument type JSON::Pure::Generator::State (expected Data) (TypeError)
    from /opt/ruby1.8/lib/ruby/gems/1.8/gems/json-1.4.6/lib/json/pure/generator.rb:318:in `json_transform'
    from /opt/ruby1.8/lib/ruby/gems/1.8/gems/json-1.4.6/lib/json/pure/generator.rb:315:in `each'
    from /opt/ruby1.8/lib/ruby/gems/1.8/gems/json-1.4.6/lib/json/pure/generator.rb:315:in `json_transform'
    from /opt/ruby1.8/lib/ruby/gems/1.8/gems/json-1.4.6/lib/json/pure/generator.rb:302:in `to_json'
    from dm_types_and_json.rb:16

Comments and changes to this ticket

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 »

Attachments

Tags

Referenced by

Pages