JRuby does not handle '@' sign in YAML file correctly.
------------------------------------------------------
Key: JRUBY-3111
URL: http://jira.codehaus.org/browse/JRUBY-3111
Project: JRuby
Issue Type: Bug
Environment: Mac OS X and Ubuntu 8.10
Reporter: Joe Athman
Assignee: Thomas E Enebo
JRuby doesn't seem to be able to handle an '@' sign as the first character of a
value in a yaml key/value pair. Here's a simple example. This came up from my
use of the sms-fu plugin which keeps a list of wireless carrier domains.
JRUBY
arthman:~ jjathman$ jruby -v
jruby 1.1.5 (ruby 1.8.6 patchlevel 114) (2008-11-04 rev 8001) [x86_64-java]
arthman:~ jjathman$ jirb
irb(main):001:0> require 'yaml'
=> true
irb(main):002:0> YAML.load("foo: @bar")
ArgumentError: syntax error:ScannerException while scanning for the next token
we had this found character @(64) that cannot start any token
from (irb):3
from /Users/jjathman/jruby/lib/ruby/1.8/irb.rb:150:in `eval_input'
from /Users/jjathman/jruby/lib/ruby/1.8/irb.rb:259:in `signal_status'
from /Users/jjathman/jruby/lib/ruby/1.8/irb.rb:147:in `eval_input'
from /Users/jjathman/jruby/lib/ruby/1.8/irb.rb:146:in `eval_input'
from /Users/jjathman/jruby/lib/ruby/1.8/irb.rb:70:in `start'
from /Users/jjathman/jruby/lib/ruby/1.8/irb.rb:69:in `catch'
from /Users/jjathman/jruby/lib/ruby/1.8/irb.rb:69:in `start'
from /Users/jjathman/jruby/bin/jirb:19
irb(main):003:0>
MRI
arthman:~ jjathman$ ruby -v
ruby 1.8.6 (2008-03-03 patchlevel 114) [universal-darwin9.0]
arthman:~ jjathman$ irb
>> require 'yaml'
=> true
>> YAML.load("foo: @bar")
=> {"foo"=>"@bar"}
>>
--
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