* ext/psych/lib/psych/visitors/yaml_tree.rb: only emit warnings when
-w is enabled. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
dec4e1cd2d
commit
4616913dc5
@ -1,3 +1,8 @@
|
|||||||
|
Thu May 16 01:25:07 2013 Aaron Patterson <aaron@tenderlovemaking.com>
|
||||||
|
|
||||||
|
* ext/psych/lib/psych/visitors/yaml_tree.rb: only emit warnings when
|
||||||
|
-w is enabled.
|
||||||
|
|
||||||
Wed May 15 18:58:17 2013 Koichi Sasada <ko1@atdot.net>
|
Wed May 15 18:58:17 2013 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
* gc.c (newobj): rename to `newobj_of' and accept additional
|
* gc.c (newobj): rename to `newobj_of' and accept additional
|
||||||
|
@ -50,7 +50,9 @@ module Psych
|
|||||||
def self.new emitter = nil, ss = nil, options = nil
|
def self.new emitter = nil, ss = nil, options = nil
|
||||||
return super if emitter && ss && options
|
return super if emitter && ss && options
|
||||||
|
|
||||||
warn "This API is deprecated, please pass an emitter, scalar scanner, and options or call #{self.class}.create() (#{caller.first})"
|
if $VERBOSE
|
||||||
|
warn "This API is deprecated, please pass an emitter, scalar scanner, and options or call #{self.class}.create() (#{caller.first})"
|
||||||
|
end
|
||||||
create emitter, ss
|
create emitter, ss
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user