psych icon indicating copy to clipboard operation
psych copied to clipboard

A libyaml wrapper for Ruby

Results 138 psych issues
Sort by recently updated
recently updated
newest added

I have a rails model with coords, and when dumped to yml the `y` is rendered incorrectly. For example, ``` >> puts Coord.new(x: 13, y: 12).attributes.to_yaml --- id: x: 13...

Currently if the key in the Hash is a symbol (e.g. h = {a: 1}), to_yaml will generate `:a: 1`. ``` irb(main):003:0> require 'yaml' irb(main):003:0> puts({a: 1, b: 'ruby'}.to_yaml) ---...

For about the past month the JRuby runs in CI have been failing: https://github.com/ruby/psych/actions/workflows/ubuntu-jruby.yml I have not looked into any of the failures but I suspect a couple things: *...

I removed the bundled source of libyaml at https://github.com/ruby/psych/pull/541 But we can't install psych with static link of libyaml source like `gem i psych -- --with-libyaml-source-dir`.

This pull request addresses an issue with 4 byte unicode characters. It uses code from a pr which was filed against **tarantool** in response to https://github.com/tarantool/tarantool/issues/4090. I'm well aware that...

Would it be possible to implement a `sort_keys` option to ensure that the resulting yaml will be consistently sorted? Other yaml implementations such as python's have it.

YAML.safe_load will raise an exception when you try to load text that happens to contain a sequence of numbers that looks like a date but is not: ``` s="2016-02-31" YAML.safe_load(s.to_yaml)...

Currently this library relies on class names in order to instantiate objects while unmarshaling, even if you have explicitly registered a tag via `add_tag`. Consequently, nameless classes do not properly...

A string of digits separated by comma (without quotes) is evaluated as integer. Is it intentional? ``` irb(main):001:0> Psych.load("key: 123,456") => {"key"=>123456} irb(main):002:0> Psych.load("key: 123456,7890") => {"key"=>1234567890} ``` I understand...

Strings are quoted if they begin with a dash. This is causing issues for an external parser I'm forced to use and inquiring because of the difference in behaviour with...