Bug #5186

Psych noisy parsing valid node

Added by Thomas Sawyer over 2 years ago. Updated over 2 years ago.

[ruby-core:38915]
Status:Closed
Priority:Normal
Assignee:Aaron Patterson
Category:lib
Target version:1.9.3
ruby -v:ruby 1.9.3dev (2011-07-03 trunk 32372) [x86_64-linux] Backport:

Description

Psych makes a lot of noise over perfectly valid value.

$DEBUG = true
YAML.load('--- 1.1.1')
Exception ArgumentError' at /usr/local/lib/ruby/1.9.1/psych/scalar_scanner.rb:71 - invalid value for Integer(): "1.1.1"
Exception
ArgumentError' at /usr/local/lib/ruby/1.9.1/psych/scalar_scanner.rb:72 - invalid value for Float(): "1.1.1"
=> "1.1.1"

History

#1 Updated by Aaron Patterson over 2 years ago

  • Status changed from Open to Closed
  • Assignee set to Aaron Patterson
  • % Done changed from 0 to 100

Fixed in r32957

Also available in: Atom PDF