Displaying 3 results from an estimated 3 matches for "quick_emit".
2007 Oct 07
1
How to store a Mechanize object in the database?
...sr/lib/ruby/1.8/yaml/rubytypes.rb:16:in `map''
from /usr/lib/ruby/1.8/yaml/rubytypes.rb:16:in `to_yaml''
from /usr/lib/ruby/1.8/yaml.rb:387:in `call''
from /usr/lib/ruby/1.8/yaml.rb:387:in `emit''
from /usr/lib/ruby/1.8/yaml.rb:387:in `quick_emit''
from /usr/lib/ruby/1.8/yaml/rubytypes.rb:15:in `to_yaml''
from /usr/lib/ruby/1.8/yaml/rubytypes.rb:18:in `node_export''
from /usr/lib/ruby/1.8/yaml/rubytypes.rb:18:in `add''
from /usr/lib/ruby/1.8/yaml/rubytypes.rb:18:in `to_yaml'...
2010 Feb 25
0
Bundle install error involving hash range errors
...=> "prerelease"
I got the following error:
Installing mongoid (2.0.0.pre) from git://github.com/durran/mongoid.git
(at prerelease) /usr/lib/ruby/1.8/yaml.rb:389:in `hash'': no implicit
conversion from nil to integer (TypeError)
from /usr/lib/ruby/1.8/yaml.rb:389:in `quick_emit''
Patching /usr/bin/bundle with this fixed the issue:
require ''rubygems''
class Gem::Specification
def hash
# one way to produce a Fixnum hash
super.hash
end
end
Thanks to this link:
http://rubyforge.org/tracker/index.php?func=detail&aid=26958&group_i...
2011 Mar 29
0
Issue / code smell in AssociationProxy
...raises the following exception:
TypeError: wrong argument type nil (expected Data)
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/
lib/ruby/1.8/yaml.rb:391:in `emit''
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/
lib/ruby/1.8/yaml.rb:391:in `quick_emit''
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/
lib/ruby/1.8/yaml/rubytypes.rb:15:in `to_yaml''
Now to the point: tracing the code path lead me to
AssociationProxy#method_missing which for 2.3.x or 3.0.x is very
similar:
def method_missing(method, *a...