* lib/yaml/encoding.rb: YAML.encode, YAML.decode are deprecated.
* lib/yaml/stringio.rb: yaml/stringio.rb is deprecated. * lib/yaml/ypath.rb: YAML::YPath is deprecated. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27057 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9e415266a8
commit
e959fda8ff
@ -1,3 +1,11 @@
|
|||||||
|
Fri Mar 26 12:29:28 2010 Aaron Patterson <aaron@tenderlovemaking.com>
|
||||||
|
|
||||||
|
* lib/yaml/encoding.rb: YAML.encode, YAML.decode are deprecated.
|
||||||
|
|
||||||
|
* lib/yaml/stringio.rb: yaml/stringio.rb is deprecated.
|
||||||
|
|
||||||
|
* lib/yaml/ypath.rb: YAML::YPath is deprecated.
|
||||||
|
|
||||||
Fri Mar 26 04:52:19 2010 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
Fri Mar 26 04:52:19 2010 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
|
||||||
|
|
||||||
* ext/tk/extconf.rb: fix [ruby-core:28901] [Bug #2997].
|
* ext/tk/extconf.rb: fix [ruby-core:28901] [Bug #2997].
|
||||||
|
@ -8,6 +8,7 @@ module YAML
|
|||||||
# Escape the string, condensing common escapes
|
# Escape the string, condensing common escapes
|
||||||
#
|
#
|
||||||
def YAML.escape( value, skip = "" )
|
def YAML.escape( value, skip = "" )
|
||||||
|
warn "#{caller[0]}: YAML.escape is deprecated" if $VERBOSE
|
||||||
value.gsub( /\\/, "\\\\\\" ).
|
value.gsub( /\\/, "\\\\\\" ).
|
||||||
gsub( /"/, "\\\"" ).
|
gsub( /"/, "\\\"" ).
|
||||||
gsub( /([\x00-\x1f])/ ) do
|
gsub( /([\x00-\x1f])/ ) do
|
||||||
@ -19,6 +20,7 @@ module YAML
|
|||||||
# Unescape the condenses escapes
|
# Unescape the condenses escapes
|
||||||
#
|
#
|
||||||
def YAML.unescape( value )
|
def YAML.unescape( value )
|
||||||
|
warn "#{caller[0]}: YAML.unescape is deprecated" if $VERBOSE
|
||||||
value.gsub( /\\(?:([nevfbart\\])|0?x([0-9a-fA-F]{2})|u([0-9a-fA-F]{4}))/ ) {
|
value.gsub( /\\(?:([nevfbart\\])|0?x([0-9a-fA-F]{2})|u([0-9a-fA-F]{4}))/ ) {
|
||||||
if $3
|
if $3
|
||||||
["#$3".hex ].pack('U*')
|
["#$3".hex ].pack('U*')
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
warn "#{caller[0]}: yaml/stringio is deprecated" if $VERBOSE
|
||||||
|
|
||||||
#
|
#
|
||||||
# Limited StringIO if no core lib is available
|
# Limited StringIO if no core lib is available
|
||||||
#
|
#
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
# YAML::YPath
|
# YAML::YPath
|
||||||
#
|
#
|
||||||
|
|
||||||
|
warn "#{caller[0]}: YAML::YPath is deprecated" if $VERBOSE
|
||||||
|
|
||||||
module YAML
|
module YAML
|
||||||
|
|
||||||
class YPath
|
class YPath
|
||||||
|
Loading…
x
Reference in New Issue
Block a user