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

If I call `Psych.safe_load` on some YAML that contains symbol keys, all the symbol keys are accepted by default: ``` > YAML.safe_load(":yes: 1", permitted_classes: [Symbol]) => {:yes=>1} ``` They are...

replication steps: ``` ruby -ryaml -e "a = YAML.load('servers: ::ffff:10.10.10.1'); puts a; puts a['servers']" {"servers"=>:":ffff:10.10.10.1"} :ffff:10.10.10.1 ``` expected: ``` {"servers"=>"::ffff:10.10.10.1"} ::ffff:10.10.10.1 ``` actual result: ``` {"servers"=>:":ffff:10.10.10.1"} :ffff:10.10.10.1 ``` Environment: ```...

Hello, I'm working on a company device behind a corporate firewall that seems to be posing some SSL issues (as indicated through the terminal) Using Ruby 3.2.2 and Rails 7.1.2....

It seems that only `unsafe_load` defaults to `false` for `fallback` - the other methods default to `nil`. I assume that ideally `unsafe_load` should be changed but looking over #358 &...

Good day, I have coordinate objects in protobuf which have a `.y` attribute defined, but rely on `method_missing` to trigger calls to C. Kernel.y intercepts the message and gives me...

Is it intentional for the following Ruby code to raise `FrozenError` ? ```ruby Psych.safe_load(

This change moves the responsibility of safely loading a YAML tree from an internal detail of `Psych.safe_load` into `Psych::Nodes::Node`. The advantage of this is that you can now more easily...

```ruby require "psych" require "singleton" class A include Singleton end YAML.unsafe_load(A.instance.to_yaml ``` result: ``` /Users/cody/.gem/ruby/3.1.3/gems/psych-5.1.1/lib/psych/visitors/to_ruby.rb:408:in `revive': private method `allocate' called for A:Class (NoMethodError) s = register(node, klass.allocate) ^^^^^^^^^ from /Users/cody/.gem/ruby/3.1.3/gems/psych-5.1.1/lib/psych/visitors/to_ruby.rb:215:in...

In #613 and #647 I exposed settings in SnakeYAML Engine for limiting code points, aliases, recursive keys, and duplicate keys. I was able to add one test that worked, for...

JRuby

This is an issue branching off from https://github.com/ruby/psych/pull/613#issuecomment-1709239243. We're experimenting migrating a Rails app we have to latest JRuby (9.4.3.0), an app that has some large [VCR](https://github.com/vcr/vcr) fixtures. Initially we...