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

ruby-changes:32022

From: zzak <ko1@a...>
Date: Tue, 10 Dec 2013 04:56:52 +0900 (JST)
Subject: [ruby-changes:32022] zzak:r44101 (trunk): * ext/openssl/lib/openssl/digest.rb: Deprecate OpenSSL::Digest::Digest

zzak	2013-12-10 04:56:45 +0900 (Tue, 10 Dec 2013)

  New Revision: 44101

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

  Log:
    * ext/openssl/lib/openssl/digest.rb: Deprecate OpenSSL::Digest::Digest
      [Fixes GH-446] https://github.com/ruby/ruby/pull/446

  Modified files:
    trunk/ChangeLog
    trunk/ext/openssl/lib/openssl/digest.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 44100)
+++ ChangeLog	(revision 44101)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Dec 10 04:55:36 2013  Zachary Scott  <e@z...>
+
+	* ext/openssl/lib/openssl/digest.rb: Deprecate OpenSSL::Digest::Digest
+	  [Fixes GH-446] https://github.com/ruby/ruby/pull/446
+
 Tue Dec 10 00:41:42 2013  Kazuki Tsujimoto  <kazuki@c...>
 
 	* ext/thread/thread.c: [DOC] add call-seq alias for Queue#enq, #<<, etc.
Index: ext/openssl/lib/openssl/digest.rb
===================================================================
--- ext/openssl/lib/openssl/digest.rb	(revision 44100)
+++ ext/openssl/lib/openssl/digest.rb	(revision 44101)
@@ -59,15 +59,15 @@ module OpenSSL https://github.com/ruby/ruby/blob/trunk/ext/openssl/lib/openssl/digest.rb#L59
       const_set(name, klass)
     }
 
-    # This class is only provided for backwards compatibility.
+    # Deprecated.
     #
-    # Use OpenSSL::Digest in the future.
+    # This class is only provided for backwards compatibility.
     class Digest < Digest # :nodoc:
       # Deprecated.
       #
       # See OpenSSL::Digest.new
       def initialize(*args)
-        # add warning
+        warn('Digest::Digest is deprecated; use Digest')
         super(*args)
       end
     end

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

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