dtao / safe_yaml

Parse YAML safely
MIT License
217 stars 63 forks source link

Correctly parse 0 as a Fixnum #39

Closed jackbot closed 11 years ago

jackbot commented 11 years ago

I had a bit of an issue when parsing a simple array of integers in that 0 would always return a string:

yaml = [0, 1].to_yaml
YAML.load(yaml)
 => ["0", 1]
dtao commented 11 years ago

@jackbot: Can't believe I let that bug slip in! Thanks for the fix.

jackbot commented 11 years ago

No problemo! :)