* ext/openssl/lib/openssl/digest.rb: Deprecate OpenSSL::Digest::Digest

[Fixes GH-446] https://github.com/ruby/ruby/pull/446


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
zzak 2013-12-09 19:56:45 +00:00
parent 062845c170
commit 99e04c1345
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
Tue Dec 10 04:55:36 2013 Zachary Scott <e@zzak.io>
* 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@callcc.net>
* ext/thread/thread.c: [DOC] add call-seq alias for Queue#enq, #<<, etc.

View File

@ -59,15 +59,15 @@ module OpenSSL
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