summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-03-26 03:33:08 +0000
committertenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-03-26 03:33:08 +0000
commite959fda8ff3a45cb60d8fc0459e5de15df9c3c0a (patch)
treec17dded952426018126603ddb83578f070d8ed6d
parent9e415266a8f373d6752f775ea4a63bf443847d08 (diff)
* 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
-rw-r--r--ChangeLog8
-rw-r--r--lib/yaml/encoding.rb2
-rw-r--r--lib/yaml/stringio.rb2
-rw-r--r--lib/yaml/ypath.rb2
4 files changed, 14 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 993e5f2d0d..ac4ee2a65f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
* ext/tk/extconf.rb: fix [ruby-core:28901] [Bug #2997].
diff --git a/lib/yaml/encoding.rb b/lib/yaml/encoding.rb
index 98e83c3853..0a1b1fce24 100644
--- a/lib/yaml/encoding.rb
+++ b/lib/yaml/encoding.rb
@@ -8,6 +8,7 @@ module YAML
# Escape the string, condensing common escapes
#
def YAML.escape( value, skip = "" )
+ warn "#{caller[0]}: YAML.escape is deprecated" if $VERBOSE
value.gsub( /\\/, "\\\\\\" ).
gsub( /"/, "\\\"" ).
gsub( /([\x00-\x1f])/ ) do
@@ -19,6 +20,7 @@ module YAML
# Unescape the condenses escapes
#
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}))/ ) {
if $3
["#$3".hex ].pack('U*')
diff --git a/lib/yaml/stringio.rb b/lib/yaml/stringio.rb
index b0fda19e28..147caf0bcd 100644
--- a/lib/yaml/stringio.rb
+++ b/lib/yaml/stringio.rb
@@ -1,3 +1,5 @@
+warn "#{caller[0]}: yaml/stringio is deprecated" if $VERBOSE
+
#
# Limited StringIO if no core lib is available
#
diff --git a/lib/yaml/ypath.rb b/lib/yaml/ypath.rb
index 81348ca043..470163557d 100644
--- a/lib/yaml/ypath.rb
+++ b/lib/yaml/ypath.rb
@@ -2,6 +2,8 @@
# YAML::YPath
#
+warn "#{caller[0]}: YAML::YPath is deprecated" if $VERBOSE
+
module YAML
class YPath