[前][次][番号順一覧][スレッド一覧]

ruby-changes:15177

From: tenderlove <ko1@a...>
Date: Fri, 26 Mar 2010 12:33:28 +0900 (JST)
Subject: [ruby-changes:15177] Ruby:r27057 (trunk): * lib/yaml/encoding.rb: YAML.encode, YAML.decode are deprecated.

tenderlove	2010-03-26 12:33:08 +0900 (Fri, 26 Mar 2010)

  New Revision: 27057

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=27057

  Log:
    * 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.

  Modified files:
    trunk/ChangeLog
    trunk/lib/yaml/encoding.rb
    trunk/lib/yaml/stringio.rb
    trunk/lib/yaml/ypath.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 27056)
+++ ChangeLog	(revision 27057)
@@ -1,3 +1,11 @@
+Fri Mar 26 12:29:28 2010  Aaron Patterson <aaron@t...>
+
+	* 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@a...>
 
 	* ext/tk/extconf.rb: fix [ruby-core:28901] [Bug #2997].
Index: lib/yaml/ypath.rb
===================================================================
--- lib/yaml/ypath.rb	(revision 27056)
+++ lib/yaml/ypath.rb	(revision 27057)
@@ -2,6 +2,8 @@
 # YAML::YPath
 #
 
+warn "#{caller[0]}: YAML::YPath is deprecated" if $VERBOSE
+
 module YAML
 
     class YPath
Index: lib/yaml/encoding.rb
===================================================================
--- lib/yaml/encoding.rb	(revision 27056)
+++ lib/yaml/encoding.rb	(revision 27057)
@@ -8,6 +8,7 @@
 	# 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 @@
 	# 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*')
Index: lib/yaml/stringio.rb
===================================================================
--- lib/yaml/stringio.rb	(revision 27056)
+++ lib/yaml/stringio.rb	(revision 27057)
@@ -1,3 +1,5 @@
+warn "#{caller[0]}: yaml/stringio is deprecated" if $VERBOSE
+
 #
 # Limited StringIO if no core lib is available
 #

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]