psych
psych copied to clipboard
A libyaml wrapper for Ruby
When psych dump object to yaml file, I hope psych can add indentation for array element, for example: ``` yaml parent: - child - child ``` And yet it is:...
"found undefined tag handle while parsing a node at line 21 column 5 (Psych::SyntaxError)" I got this error on parsing unity3d prefab file with parse_stream method. ``` Psych.parse_stream(yaml, filename: path)...
Two issues: ___ **First:** Psych currently embeds/vendors libyaml 0.2.1. Current version is 0.2.4. In my fork, I copied the libyaml code, adjusted version info in ext/psych/yaml/config.h, and only added the...
Hello ruby maintainers of psych-yaml, I may have found a small bug. Perhaps it is not a "real" bug, but the error reporting by psych was strange still, so I...
There's practically zero documentation for this library. For example, I'm looking for serialization routines and possibly the tree traverser that would allow me to craft custom result tree. This link...
According to the [documentation](https://www.rubydoc.info/gems/psych/3.1.0/Psych.dump) line_width parameter has default value 0. But if it passed explicit method has a different behaviour. ```ruby > YAML.dump({ "q" => 1 }) => "---\nq: 1\n"...
Problem | (<unknown>): did not find expected key while parsing a block mapping at line 13 column 7
I don't get it. Where is the wrong situation? -=-=-- (): did not find expected key while parsing a block mapping at line 13 column 7 Here is the config...
I'm using raml parsers (brujula, raml-rb), which are apparently using psych. Both gems show same error now, though 2 days ago everything was working just fine. Could you please take...
``` > YAML.unsafe_load(YAML.dump(Hash.new(false))).default => nil ``` This is particularly troublesome since the built in `Set` class uses a `Hash` internally with a default of `false`. Ideally if a `Hash` has...
### Steps to reproduce ```ruby require "psych" require "time" require "minitest/autorun" class YearTenThousandTest < Minitest::Test def test_year_ten_thousand time = Time.parse("10000-01-01 00:00:00") yaml_string = Psych.dump(time) yaml_time = Psych.load(yaml_string) assert_equal yaml_time, time...