Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.6
-
Fix Version/s: JRuby 1.6.1
-
Component/s: Ruby 1.9.2
-
Labels:None
-
Environment:jruby 1.6.0 (ruby 1.9.2 patchlevel 136) (2011-03-15 f3b6154) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_22) [darwin-x86_64-java]
-
Number of attachments :
Description
With a ruby-DSL gemspec that has a particular (legal) arrangement of lines, bundler's DSL's gemspec method will fail under JRuby 1.6.0 in 1.9 mode. There is a minimal test case and sample output in this gist:
https://gist.github.com/898413
The same project works fine under MRI 1.8.7, 1.9.2, and JRuby 1.6.0 in 1.8 mode.
The ultimate problem seems to be in JRuby's 1.9-mode YAML parser, which is throwing an exception that either rubygems or bundler doesn't expect.
There are some bad YAML files out there. Can you figure out which gem is causing this? Almost every case we've found where YAML broke under our 1.9 parser were actually not valid YAML 1.1. We'd rather not switch back to the more permissive (and more broken) 1.0-ish-sorta "syck" port we run in 1.8 mode.