[MacRuby-devel] [MacRuby] #666: yaml is broken for specific string, array and hash objects

MacRuby ruby-noreply at macosforge.org
Tue Apr 27 00:01:50 PDT 2010


#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/>



More information about the MacRuby-devel mailing list