diff options
author | zzak <zzak@ruby-lang.org> | 2013-12-09 19:56:45 +0000 |
---|---|---|
committer | zzak <zzak@ruby-lang.org> | 2013-12-09 19:56:45 +0000 |
commit | 769283fbdad9488331c80d385d40b2d5466313b3 (patch) | |
tree | 4ae3414a3139e5a29187135a352e4996784e2898 /lib/openssl | |
parent | d9b1871a10bff6839a2c7df8af7abfb4d9e60bc8 (diff) | |
download | ruby-openssl-history-769283fbdad9488331c80d385d40b2d5466313b3.tar.gz |
* 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
Diffstat (limited to 'lib/openssl')
-rw-r--r-- | lib/openssl/digest.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/openssl/digest.rb b/lib/openssl/digest.rb index 80b58af..5b3b064 100644 --- a/lib/openssl/digest.rb +++ b/lib/openssl/digest.rb @@ -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 |