[MacRuby] #666: yaml is broken for specific string, array and hash objects
#666: yaml is broken for specific string, array and hash objects ----------------------------+----------------------------------------------- Reporter: jazzbox@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: MacRuby 0.6 Component: MacRuby | Keywords: yaml ----------------------------+----------------------------------------------- {{{ $ macruby -r "yaml" -e "p NSString.new.to_yaml" }}} gives {{{ "--- !ruby/object:String {}\n" }}} NSString objects are often returned from calls to Cocoa functions! Same with array: {{{ $ macruby -r "yaml" -e 'framework "Cocoa"; framework "CalendarStore"; p CalCalendarStore.defaultCalendarStore.calendars.map {|c| c.title}.to_yaml' }}} {{{ "--- !ruby/object:Array {}\n" }}} I haven't tested hash, but I think, there will be the same problem. -- Ticket URL: <http://www.macruby.org/trac/ticket/666> MacRuby <http://macruby.org/>
#666: yaml is broken for specific string, array and hash objects ----------------------------+----------------------------------------------- Reporter: jazzbox@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: MacRuby 0.6 Component: MacRuby | Keywords: yaml ----------------------------+----------------------------------------------- Comment(by joshua.ballanco@…): YAML is a tool of the devil! ;-) -- Ticket URL: <http://www.macruby.org/trac/ticket/666#comment:1> MacRuby <http://macruby.org/>
#666: yaml is broken for specific string, array and hash objects ----------------------------+----------------------------------------------- Reporter: jazzbox@… | Owner: lsansonetti@… Type: defect | Status: new Priority: major | Milestone: MacRuby 0.6 Component: MacRuby | Keywords: yaml ----------------------------+----------------------------------------------- Comment(by lsansonetti@…): I would love to fix this bug but I'm too scared of the consequences! Maybe the bug wants to stay alive. -- Ticket URL: <http://www.macruby.org/trac/ticket/666#comment:2> MacRuby <http://macruby.org/>
#666: yaml is broken for specific string, array and hash objects ----------------------------+----------------------------------------------- Reporter: jazzbox@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: major | Milestone: MacRuby 0.6 Component: MacRuby | Resolution: fixed Keywords: yaml | ----------------------------+----------------------------------------------- Changes (by martinlagardette@…): * status: new => closed * resolution: => fixed Comment: Well I'll be damned if this bug is still around after r3967 ! Let's pray for me! -- Ticket URL: <http://www.macruby.org/trac/ticket/666#comment:3> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby