psych
psych copied to clipboard
A libyaml wrapper for Ruby
Produces an 'ArgumentError: invalid value for Integer() YAML version 3.1.0.
Fix ruby/psych#572
```sh-session $ ruby -rdate -rpsych \ -e 'di = Date.new(1000, 1, 1, Date::ITALY)' \ -e 'dg = Date.new(1000, 1, 1, Date::GREGORIAN)' \ -e 'puts Psych.dump([di, dg]), di == dg' ---...
When parsing this yaml ``` key_one: inner: - value1 - value2 key_two: inner: - value1 - value2 ``` the error message ``` Psych::SyntaxError: (/tmp/oops.yaml): did not find expected key while...
Preserving comments in YAML files is a general problem many automation tools have. The general problem is that you have some YAML file say: ``` # the answer - universe:...
Psych does not complain or raise an error when it encounters a duplicate key. Instead, it happily overwrites the previous value of the key. This is in contrast to the...
The [YAML spec](https://yaml.org/spec/1.1/#id859497) is extremely clear that duplicate keys are forbidden. A few examples: > an unordered association of unique keys to values and: > keys are unordered and must...
This PR is just some experiment to proof that https://github.com/jruby/ruby-maven/pull/2 fixes: * Issue reported at https://github.com/ruby/psych/issues/479#issuecomment-785469484, where jruby tests fail to even get started in CI (`bundle install` fails). *...
This PR concerns primarily the high-level interface: - Added introductory material, with links to the spec and Ruby cookbook at yaml.org. - Modified high-level API discussion, with new examples and...
Hello! Since I pulled Ruby master yesterday I'm unable to configure or run make successfully due to an error that the digest file is missing. This only happens when libyaml...