[MacRuby] #1380: YAML problems in recent nightly builds

MacRuby ruby-noreply at macosforge.org
Sun Aug 21 00:06:37 PDT 2011


#1380: YAML problems in recent nightly builds
------------------------------------+---------------------------------------
 Reporter:  mrada@…                 |       Owner:  lsansonetti@…        
     Type:  defect                  |      Status:  new                  
 Priority:  blocker                 |   Milestone:                       
Component:  MacRuby                 |    Keywords:                       
------------------------------------+---------------------------------------
 rubygems can no longer parse gem specs if they contain strings that were
 assigned from a here doc.

 Example:
 {{{
   s.description   = <<-EOS
 HotCocoa is a Cocoa mapping library for MacRuby.  It simplifies the use of
 complex Cocoa classes using DSL techniques.
   EOS
 }}}

 That example worked fine about a week ago. The gem will build without
 error, but it will not install and I will get the following error:

 {{{
 scanning error encountered during parsing: could not find expected ':'
 (line 65, column 0), context while scanning a simple key (line 64, column
 0)
 }}}

 If I unpack the gem and look at the decompressed metadata.gz, I find these
 at lines 64-66:

 {{{
 description: |
 HotCocoa is a Cocoa mapping library for MacRuby.  It simplifies the use of
 complex Cocoa classes using DSL techniques.
 email:
 }}}

 If I change the gem spec to not use a here doc then the gem builds and
 installs properly.

 {{{
   s.description   = <<'
 HotCocoa is a Cocoa mapping library for MacRuby.  It simplifies the use of
 complex Cocoa classes using DSL techniques.
   '
 }}}

 And in the unpacked metadata.gz I see the following:

 {{{
 description: "\nHotCocoa is a Cocoa mapping library for MacRuby.  It
 simplifies the
   use of complex Cocoa classes using DSL techniques.\n  "
 email:
 }}}

 This broke pretty much all of my projects since I always use here docs for
 the description of the gem.

-- 
Ticket URL: <http://www.macruby.org/trac/ticket/1380>
MacRuby <http://macruby.org/>



More information about the macruby-tickets mailing list