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

When loading an empty yml file with YAML.load_file it returns false. This behavior feels a bit strange to me and I would expect to get an empty Hash instead. I...

Perhaps I'm beating the dead horse, in any case, I was curious to see what happens when I use `YAML.to_json` instead the standard `JSON` library. It seems the `Psych` version...

Dear Team, After update my system Sierra To High Sierra(10.13.4) & Xcode(9.3), i am gatting error when try to create pod file. 1. My current gen list is :---------- bigdecimal...

Hi, When I try to parse the following YAML snippet: ``` yaml - indentation 2 spaces - indentation 2 spaces - indentation 0 space ``` It fails with libyaml with...

I encountered the confusing behavior described below because I didn't realize that one couldn't merge arrays, only maps. Perhaps we should instead make the parser more strict and throw an...

Original pull request: https://github.com/ruby/psych/pull/325 @knugie Your changes was different behavior with bundler behavior: https://github.com/bundler/bundler/blob/master/lib/bundler/yaml_serializer.rb#L8 There is no time to coordinate this specification for Ruby 2.5.0. I try to this next...

(Redirected from https://bugs.ruby-lang.org/issues/12960?next_issue_id=12959 .) New visitor class to create custom object intead of Hash. It creates custom object according to context (= last mapping key). * Enables data access like...

```ruby Raven.delay.capture_message('feedback', params) # IOError: uninitialized stream ``` ## params ```yaml --- !ruby/hash:ActiveSupport::HashWithIndifferentAccess file: !ruby/object:ActionDispatch::Http::UploadedFile tempfile: !ruby/marshalable:Tempfile :__v2__: - :@unlinked - :@mode - :@tmpfile - :@opts ? - false -...

There are times when we need to load a YAML file but for various reasons, we do _not want or care about the serialization/native dataclass conversions_. We want to load...

### Steps to reproduce I have created an executable test for this bug: https://gist.github.com/ianks/ba1f7175754780168c2a6618f13c95ec I did not know whether to report this to Psych or Rails, just let me know...