[MacRuby] #1380: YAML problems in recent nightly builds
#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/>
#1380: YAML problems in recent nightly builds ------------------------------------+--------------------------------------- Reporter: mrada@… | Owner: lsansonetti@… Type: defect | Status: new Priority: blocker | Milestone: Component: MacRuby | Keywords: ------------------------------------+--------------------------------------- Comment(by watson1978@…): It seems there is whitespace immediately after 'description:' and the output is changed. {{{ require 'yaml' puts "description: \nHotCocoa is ...".to_yaml puts "description:\nHotCocoa is ...".to_yaml }}} {{{ $ ruby19 test_yaml.rb --- |- description: HotCocoa is ... --- |- description: HotCocoa is ... $ macruby test_yaml.rb --- "description: \nHotCocoa is ..." --- |- description: HotCocoa is ... }}} -- Ticket URL: <http://www.macruby.org/trac/ticket/1380#comment:1> MacRuby <http://macruby.org/>
#1380: YAML problems in recent nightly builds ------------------------------------+--------------------------------------- Reporter: mrada@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: Component: MacRuby | Resolution: fixed Keywords: | ------------------------------------+--------------------------------------- Changes (by watson1978@…): * status: new => closed * resolution: => fixed Comment: To the same behavior as CRuby, it looks like needs many modified. [[BR]] so, I reverted my changing. -- Ticket URL: <http://www.macruby.org/trac/ticket/1380#comment:2> MacRuby <http://macruby.org/>
#1380: YAML problems in recent nightly builds ------------------------------------+--------------------------------------- Reporter: mrada@… | Owner: lsansonetti@… Type: defect | Status: closed Priority: blocker | Milestone: Component: MacRuby | Resolution: fixed Keywords: | ------------------------------------+--------------------------------------- Comment(by mrada@…): Thank you, Watson! -- Ticket URL: <http://www.macruby.org/trac/ticket/1380#comment:3> MacRuby <http://macruby.org/>
participants (1)
-
MacRuby