Argument Error when loading a YAML file that contains an asterisk character.
----------------------------------------------------------------------------

                 Key: JRUBY-2409
                 URL: http://jira.codehaus.org/browse/JRUBY-2409
             Project: JRuby
          Issue Type: Bug
    Affects Versions: JRuby 1.1
         Environment: MAC OSX Leopard, JDK 1.5.0_13, JRUBY 1.1, ruby 1.8.6 
(2008-04-18 rev 6423) [i386-jruby1.1+]
            Reporter: Justin Grammens
            Assignee: Thomas E Enebo
         Attachments: asterisk.yml, load.rb, noasterisk.yml

I have a simple YML file that I am trying to load that contains asterisks. It 
works fine in Ruby 1.8.6, but if I try and load it with JRuby I get the 
following exception with that test case. 

ScannerException while scanning an alias we had this expected alphabetic or 
numeric character, but found something else...

Please see the attached files that run the test and the two example yml files, 
one that contains asterisks and another that does not.

bernie:jrubytest justin$ ruby -v
ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-darwin8.9.1]
bernie:jrubytest justin$ spec load.rb
..

Finished in 0.006037 seconds

2 examples, 0 failures

bernie:jrubytest justin$ jruby -v
ruby 1.8.6 (2008-04-18 rev 6423) [i386-jruby1.1+]

bernie:jrubytest justin$ jruby -S spec load.rb
F.

1)
ArgumentError in 'when first created tries to parse a YML file with asterisks 
successfully'
ScannerException while scanning an alias we had this expected alphabetic or 
numeric character, but found something else...


Finished in 0.133 seconds

2 examples, 1 failure

-- 
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


Reply via email to