norman/unidecoder — pull request #7 by blackwinter (2013-07-02 09:16:15+00:00)
Title: Fix Psych::SyntaxError and other data issues

Psych (the new YAML parser in Ruby 1.9+) cannot parse some of the data files:

x00: "found unknown escape character while parsing a quoted scalar at line 2 column 3"
x02: "found character that cannot start any token while scanning for the next token at line 189 column 3"
x09: Psych interprets string matching `/^on$/i` as `true`
x0a: ditto
x0f: Syck interprets ".5" as string, not float 0.5
x22: "did not find expected alphabetic or numeric character while scanning an alias at line 25 column 3"

Tested on Ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux] with both Syck and Psych and on Ruby 2.0.0p247 (2013-06-27 revision 41672) [x86_64-linux] with Psych (Syck has been removed in Ruby 2.0).

Related issue: #6.