"gem build" results in bogus gemspec in --1.9 mode
--------------------------------------------------
Key: JRUBY-5915
URL: https://jira.codehaus.org/browse/JRUBY-5915
Project: JRuby
Issue Type: Bug
Components: Ruby 1.9.2
Affects Versions: JRuby 1.6.3
Environment: RVM, OS X 10.6.8, JVM 1.6.0_26-b03-384-10M3425, RubyGems
1.5.1 and 1.8.5
Reporter: Ian Dees
Assignee: Thomas E Enebo
Attachments: bad.txt, good.txt
Here's a working {{gem build}}:
{noformat}
$ export JRUBY_OPTS=--1.8
$ gem build bitescript.gemspec
$ gem install bitescript-0.0.9.gem
{noformat}
...and here's a broken one:
{noformat}
$ export JRUBY_OPTS=--1.9
$ gem build bitescript.gemspec
$ gem install bitescript-0.0.9.gem
ERROR: While executing gem ... (ArgumentError)
syntax error in "<reader>", line 1, column 5:
--- %YAML 1.1
^
{noformat}
The only difference between the gems is the contents of metadata.gz. The one
built with 1.9 (see attached bad.txt) starts with the text {{%YAML 1.1}} and
has superfluous exclamation points in nearly every line. The one built with
1.8 (see attached good.txt) does not have either of these things.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email