imcompatibility with Ruby-1.8.6 in YAML parsing
-----------------------------------------------
Key: JRUBY-3263
URL: http://jira.codehaus.org/browse/JRUBY-3263
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.1.5
Environment: $ jruby --version
jruby 1.1.5 (ruby 1.8.6 patchlevel 114) (2008-11-03 rev 7996) [amd64-java]
Reporter: Mikael Lammentausta
Priority: Minor
YAML parser cannot handle the "example.com:" in the YAML file. Specifically,
the problem is with the character ":"
File: config.yml
------------------------------
production:
ABQIAAAAinq15RDnRyoOaQwM_PoC4RTJQa0g3IQ9GZqIMmInSLzwtGDKaBTPoBdSu0WQaPTIv1sXhVRK0Kolfg
example.com:
ABQIAAAAzMUFFnT9uH0Sfg98Y4kbhGFJQa0g3IQ9GZqIMmInSLrthJKGDmlRT98f4j135zat56yjRKQlWnkmod3TB
------------------------------
Code (debug.rb)
require 'yaml'
puts YAML.load_file('config.yml')['production']
Output:
$ ruby debug.rb
ABQIAAAAinq15RDnRyoOaQwM_PoC4RTJQa0g3IQ9GZqIMmInSLzwtGDKaBTPoBdSu0WQaPTIv1sXhVRK0Kolfg
example.comABQIAAAAzMUFFnT9uH0Sfg98Y4kbhGFJQa0g3IQ9GZqIMmInSLrthJKGDmlRT98f4j135zat56yjRKQlWnkmod3TB
$ jruby debug.rb
debug.rb:42: syntax error:ScannerException null we had this mapping values are
not allowed here (ArgumentError)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
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