Skip to content


Subversion checkout URL

You can clone with
Download ZIP


YAML weirdness #474

glebm opened this Issue · 6 comments

4 participants


Update Turned out to be a Psych (pure ruby only, so works fine in MRI, but not jruby) bug, ticketed here tenderlove/psych#109
Close or keep open until fixed as you see fit!

jruby 1.7.1

> "1.".to_yaml
ArgumentError: invalid value for Float(): "1."
from org/jruby/ `Float'
from /Users/glebm/.rvm/rubies/jruby-1.7.1/lib/ruby/1.9/psych/scalar_scanner.rb:99:in `tokenize'
from /Users/glebm/.rvm/rubies/jruby-1.7.1/lib/ruby/1.9/psych/visitors/yaml_tree.rb:246:in `visit_String'
from org/jruby/ `__send__'
from org/jruby/ `send'
from /Users/glebm/.rvm/rubies/jruby-1.7.1/lib/ruby/1.9/psych/visitors/yaml_tree.rb:104:in `accept'
from /Users/glebm/.rvm/rubies/jruby-1.7.1/lib/ruby/1.9/psych/visitors/yaml_tree.rb:68:in `push'
from /Users/glebm/.rvm/rubies/jruby-1.7.1/lib/ruby/1.9/psych.rb:244:in `dump'
from /Users/glebm/.rvm/rubies/jruby-1.7.1/lib/ruby/1.9/psych/core_ext.rb:14:in `psych_to_yaml'
from (irb):5:in `evaluate'
from org/jruby/ `eval'
from org/jruby/ `loop'
from org/jruby/ `catch'
from org/jruby/ `catch'
from /Users/glebm/.rvm/rubies/jruby-1.7.1/bin/irb:13:in `(root)'
@glebm glebm referenced this issue in tenderlove/psych

"1.".to_yaml #109


Psych fixed by tenderlove/psych@cf82e48
Now jruby needs to be updated


We'll wait for the Psych release.


Just ran into this today.
Any news when this fix will be pulled into jruby?

@BanzaiMan BanzaiMan was assigned

@rb2k We are waiting for the Psych release that contains the fix.


Ran into this when passing a hash, that contain keys ending with ".", as a parameter to delayed_job.

$ jruby -v -rpsych -e 'puts "1.".to_yaml'
jruby (1.9.3p392) 2013-09-02 89101e0 on Java HotSpot(TM) 64-Bit Server VM 1.7.0_25-b15 [darwin-x86_64]
--- '1.'
@BanzaiMan BanzaiMan closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.