psych
psych copied to clipboard
A libyaml wrapper for Ruby
The [beaker](http://github.com/puppetlabs/beaker/) testing library serializes a YAML file representing the configuration for a prior test run. That library can contain `AWS::Core::Data` objects (see http://docs.aws.amazon.com/AWSRubySDK/latest/AWS/Core/Data.html). For example, a snippet might look...
Given the following Ruby script: ```ruby require 'yaml' puts YAML::VERSION text =
Looks like the main documentation is missing doc on how to (de)serialize custom classes by implementing `init_with` and `encode_with`. Maybe @BurdetteLamar could help?
This occured to me while testing this option without the docs in front of me; it didn't work because I thought the option was named `symbolize_keys` (and only one day...
I could not find documentation on this behaviour so I thought it would be better to share about it and be told I'm wrong than to keep to myself. In...
Migrating https://bugs.ruby-lang.org/issues/13615. ## Description When the input has a byte order mark, the YAML parser stops processing the input upon seeing the first newline. I believe this is a violation...
We upgraded Rubocop from 0.64.0 to 0.65.0. This added a dependency on psych 3.1.0. The tests for our app on Ruby 2.5.3 and Rails 4.2.11 started failing in CircleCI with:...
apologies if this is a ridiculous question, but I'm just wondering if it's possible to access the contents of comments when parsing YAML? I know that comments are of course...
In certain cases, MRI Ruby Psych and JRuby Psych will return different results for the same string, even if both of them are in the same version. For example, this...
Not doing so causes parsers that follow the yaml 1.1 spec (crazy though it might be), to load certain unquoted mac addresses as integers. IMO https://github.com/ruby/psych/issues/265 wasn't actually a bug....