Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Time parsing from string fails #171

Closed
bvanbruijnsvoort opened this Issue · 0 comments

1 participant

@bvanbruijnsvoort

[2] pry(main)> "2013-10-31T10:40:07-000000000000033".to_yaml
NoMethodError: undefined method []' for nil:NilClass
from /opt/boxen/rbenv/versions/1.9.3-p392/lib/ruby/gems/1.9.1/gems/psych-2.0.1/lib/psych/scalar_scanner.rb:137:in
parse_time'

Time parsing from above string fails. Should be treated as normal string data when it is no valid Time format.

@tenderlove tenderlove referenced this issue from a commit in ruby/ruby
@tenderlove * ext/psych/lib/psych/scalar_scanner.rb: fix regexp for matching TIME
  strings.
* test/psych/test_date_time.rb: test for change.
  Fixes: tenderlove/psych#171

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
725d6f4
@mmasaki mmasaki referenced this issue from a commit in mmasaki/ruby
@tenderlove * ext/psych/lib/psych/scalar_scanner.rb: fix regexp for matching TIME
  strings.
* test/psych/test_date_time.rb: test for change.
  Fixes: tenderlove/psych#171

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
b66ce22
@tenderlove tenderlove referenced this issue from a commit in tenderlove/ruby
@tenderlove * ext/psych/lib/psych/scalar_scanner.rb: fix regexp for matching TIME
  strings.
* test/psych/test_date_time.rb: test for change.
  Fixes: tenderlove/psych#171

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43863 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
3d6b999
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.