Issue #7568 has been reported by anshul (Anshul Khandelwal). ---------------------------------------- Bug #7568: Yaml fails to encode zero date string. https://bugs.ruby-lang.org/issues/7568 Author: anshul (Anshul Khandelwal) Status: Open Priority: Normal Assignee: Category: Target version: ruby -v: ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-linux] "0000-00-00 00:00:00".to_yaml fails with an ArgumentError. Reproducing steps In irb type, require 'yaml' "0000-00-00 00:00:00".to_yaml What was expected => "--- '0000-00-00 00:00:00'\n" What happened ArgumentError: argument out of range from /usr/local/rbenv/versions/1.9.3-p327/lib/ruby/1.9.1/psych/scalar_scanner.rb:111:in `utc'
on 2012-12-15 13:10
on 2012-12-16 04:53
Issue #7568 has been updated by charliesome (Charlie Somerville). Status changed from Open to Assigned Assignee set to tenderlovemaking (Aaron Patterson) =begin This was fixed in r37288. It might be worth backporting the fix to 1.9.3. Thoughts tenderlove? =end ---------------------------------------- Bug #7568: Yaml fails to encode zero date string. https://bugs.ruby-lang.org/issues/7568#change-34774 Author: anshul (Anshul Khandelwal) Status: Assigned Priority: Normal Assignee: tenderlovemaking (Aaron Patterson) Category: Target version: ruby -v: ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-linux] "0000-00-00 00:00:00".to_yaml fails with an ArgumentError. Reproducing steps In irb type, require 'yaml' "0000-00-00 00:00:00".to_yaml What was expected => "--- '0000-00-00 00:00:00'\n" What happened ArgumentError: argument out of range from /usr/local/rbenv/versions/1.9.3-p327/lib/ruby/1.9.1/psych/scalar_scanner.rb:111:in `utc'
on 2012-12-19 19:07
On Sun, Dec 16, 2012 at 12:53:14PM +0900, charliesome (Charlie Somerville) wrote: > > Issue #7568 has been updated by charliesome (Charlie Somerville). > > Status changed from Open to Assigned > Assignee set to tenderlovemaking (Aaron Patterson) > > =begin > This was fixed in r37288. > > It might be worth backporting the fix to 1.9.3. Thoughts tenderlove? Ya, I can submit a backport ticket. I need to figure out which commits should go in to a bugfix release of psych. The alternative is just to release a new version of the gem, and we don't need to backport anything.
on 2012-12-20 15:40
On Wed, Dec 19, 2012 at 3:06 PM, Aaron Patterson <tenderlove@ruby-lang.org> wrote: > > Ya, I can submit a backport ticket. I need to figure out which commits > should go in to a bugfix release of psych. The alternative is just to > release a new version of the gem, and we don't need to backport > anything. > The problem with that approach is on a new patchlevel release the user will get "downgraded" to a previous version of the gem, where the problem exists.
on 2012-12-22 01:00
On Thu, Dec 20, 2012 at 11:40:10PM +0900, Luis Lavena wrote: > will get "downgraded" to a previous version of the gem, where the > problem exists. Good point. I'll figure out the appropriate backport requests. :-)
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.