mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
2 changed files with 8 additions and 1 deletions
|
@ -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>
|
||||
|
||||
* 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
|
||||
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
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue