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 test using Capybara, RSpec, VCR and I get the following error: ``` 2) Cancelling accounts Should notify the user that the account has been cancelled Failure/Error: @subscription.save_with_payment...

This is a feature request. I like symbols. An argument could be made about object duplication and so on, but I just like them because they are easier to type....

I ran into this issue with psych 1.3.4 with ActiveRecord models where string attributes contained something that 'looks like' YAML. ``` item = Item.last item.description = %{- a\n2013-04-08 11:45:33} item.to_yaml...

I cannot find a way to ensure that my custom classes will anchor properly (not duplicate when the same object exists in two locations) when converted to yaml through encode_with...

I noticed today that an undefined tag appears to be simply thrown away. ``` ruby o = YAML.load('--- !foo "something"') #=> "something" o.class #=> String ``` I actually expected it...

Anyway to access information about the source of YAML when defining a type? I have a case where I want to know if the source was a file and what...

I tried running some script which parses some YAML file using aliases, and due to a recent psych being installed it fails like: ``` $ ruby -ryaml -e 'p YAML.load_file...

YAML files produced by `dump` are not linter friendly. Example `dumped.yaml` is attached. ```ruby require 'psych' loaded = Psych.load_file('feature_flags.yaml') #puts loaded #puts Psych.methods File.write 'dumped.yaml', Psych.dump(loaded) ``` ```bash $ yamllint...

Currently, it appears the JRuby Psych extension does not configure the SnakeYaml [`LoaderOptions`](https://bitbucket.org/snakeyaml/snakeyaml/src/master/src/main/java/org/yaml/snakeyaml/LoaderOptions.java) or allow the user to override them somehow. The parser seems to be constructed at https://github.com/ruby/psych/blob/a565e1fcec3dad4de7e753b9c3e113c7ed1a22a4/ext/java/org/jruby/ext/psych/PsychParser.java#L195-L201 There...