#666: yaml is broken for specific string, array and hash objects
----------------------------+-----------------------------------------------
 Reporter:  jazz...@…       |       Owner:  lsansone...@…        
     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/>

_______________________________________________
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel

Reply via email to