Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serialises nothing useful when running in a Rails environment #15

Open
hakanai opened this issue May 11, 2016 · 0 comments
Open

Serialises nothing useful when running in a Rails environment #15

hakanai opened this issue May 11, 2016 · 0 comments

Comments

@hakanai
Copy link

hakanai commented May 11, 2016

When using the gem by itself, everything seems fine:

$ irb
irb(main):001:0> require 'syck'
=> true
irb(main):002:0> Syck::VERSION
=> "1.0.5"
irb(main):003:0> Syck.dump({'a'=>1,'b'=>2})
=> "--- \na: 1\nb: 2\n"
irb(main):004:0> {'a'=>1,'b'=>2}.to_yaml
=> "--- \na: 1\nb: 2\n"

Yet somehow, when running alongside Rails, it serialises nothing other than the hash itself:

$ script/rails console
Loading development environment (Rails 3.2.22.2)
irb(main):001:0> Syck::VERSION
=> "1.0.5"
irb(main):002:0>  Syck.dump({'a'=>1,'b'=>2})
=> "--- {}\n\n"
irb(main):003:0> {'a'=>1,'b'=>2}.to_yaml
=> "--- {}\n\n"

These are both using syck 1.1.0, but the version is reported as 1.0.5 for some reason.

Running actual 1.0.5, everything works fine again, so I guess this is a regression in 1.1.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant