diff options
author | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-12-09 19:56:45 +0000 |
---|---|---|
committer | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-12-09 19:56:45 +0000 |
commit | 99e04c1345df4e0dd988ea152adb0c5ea1308a5a (patch) | |
tree | 5d26df981b1ec003527443ad987b98967b1288e9 /ext | |
parent | 062845c170a80908446899c206326c4012be248d (diff) | |
download | ruby-99e04c1345df4e0dd988ea152adb0c5ea1308a5a.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 'ext')
-rw-r--r-- | ext/openssl/lib/openssl/digest.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/openssl/lib/openssl/digest.rb b/ext/openssl/lib/openssl/digest.rb index 80b58af5da..5b3b06460c 100644 --- a/ext/openssl/lib/openssl/digest.rb +++ b/ext/openssl/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 |