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

``` ruby # coding: utf-8 require 'yaml' h = {name: '李'} YAML.dump(h, File.new('out.yml', 'w:utf-8')) ``` On Ruby 2.2.1, fails with: `Encoding::UndefinedConversionError: "\xE6" from ASCII-8BIT to UTF-8`

i noticed you cannot deep merge keys. ``` defaults: &defaults parent: nested_one: foo nested_two: bar development:

This change causes parse_time function to return a Ruby Time object with an offset specified in the parsed YAML. I've been playing with Jekyll which leverages Pysch for parsing YAML...

See #254. This code was not ported to the Java stuff. Here's my attempt at a patch, but it causes out-of-memory errors for some reason (i.e. it's broken in a...

JRuby

If I install 2.0.12, it breaks https://github.com/flavio/jump; 2.0.8 works fine, though. Here's an illustration of the problem (note that it's _undefined method_, not _wrong number of arguments_: ``` $ gem...

Surprisingly, `load_stream` doesn't handle streams but loads all docs in an IO object at once, and only _then_ iterates on the result. This results in much latency as well as...

This causes the folded style to not apply unless `line_width:` is passed explicitly: ``` console > s = 'asjfal sf;lkasfj;aslkfaj slfkasfkajf a;slkfjaslkfaslkfj aslkfjaslkf asklfj askl fjaklsfj aslkfjaslfjaslkfjlkffjsa' > Psych.dump(s, line_width:...

Here's a quick script to reproduce the issue: ``` ruby require 'tempfile' require 'psych' class Foo def initialize @tf = Tempfile.new('foo') end end f = Foo.new puts f.to_yaml ``` Then...

You know the ones... "mesg" and "bt" or "backtrace". I assume you have to go at them directly because they're not settable in MRI, but neither JRuby nor Rubinius have...

For #216 and #217, @jemc modified Hash and String serialization to only include instance vars for subclasses. However, this still causes problems with Rubinius, since the subclass would still appear...