olbrich/ruby-units — Issue #23: Issue with YAML::load and rails 3.1.1
Author: canimus
Created: 2011-10-12 21:06:51+00:00
State: open

When using the ruby-units 1.3.1 gem and trying to use the YAML::load in the rails console I got an error message with the following information:

ArgumentError: wrong number of arguments (2 for 1)
from /Users/herminio/.rvm/gems/ruby-1.9.2-p290/gems/ruby-units-1.3.1/lib/ruby_units/time.rb:14:in `at'
from /Users/herminio/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych/scalar_scanner.rb:91:in `parse_time'
from /Users/herminio/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych/scalar_scanner.rb:42:in `tokenize'
from /Users/herminio/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:46:in `visit_Psych_Nodes_Scalar'
from /Users/herminio/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych/visitors/visitor.rb:6:in `accept'
from /Users/herminio/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:16:in `accept'
from /Users/herminio/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:205:in `block in visit_Psych_Nodes_Mapping'
from /Users/herminio/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:190:in `each'
from /Users/herminio/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:190:in `each_slice'
from /Users/herminio/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:190:in `visit_Psych_Nodes_Mapping'
from /Users/herminio/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych/visitors/visitor.rb:7:in `accept'
from /Users/herminio/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych/visitors/to_ruby.rb:16:in `accept'
from /Users/herminio/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych/nodes/node.rb:25:in `to_ruby'
from /Users/herminio/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych.rb:107:in `load'
from (irb):14