ruby-changes:15331
From: naruse <ko1@a...>
Date: Mon, 5 Apr 2010 11:43:04 +0900 (JST)
Subject: [ruby-changes:15331] Ruby:r27219 (trunk): Don't warn when YAML.quick_emit is called by Object#to_yaml.
naruse 2010-04-05 11:42:37 +0900 (Mon, 05 Apr 2010) New Revision: 27219 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27219 Log: Don't warn when YAML.quick_emit is called by Object#to_yaml. Modified files: trunk/ext/syck/lib/syck.rb Index: ext/syck/lib/syck.rb =================================================================== --- ext/syck/lib/syck.rb (revision 27218) +++ ext/syck/lib/syck.rb (revision 27219) @@ -397,7 +397,9 @@ # Allocate an Emitter if needed # def self.quick_emit( oid, opts = {}, &e ) - warn "#{caller[0]}: YAML.quick_emit is deprecated" if $VERBOSE + if $VERBOSE && /syck\/rubytypes\.rb:\d+:in `to_yaml'/ !~ caller[0] + warn "#{caller[0]}: YAML.quick_emit is deprecated" + end out = if opts.is_a? Emitter opts -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/