File tree Expand file tree Collapse file tree 2 files changed +11
-13
lines changed Expand file tree Collapse file tree 2 files changed +11
-13
lines changed Original file line number Diff line number Diff line change 14
14
15
15
module OpenSSL
16
16
class Cipher
17
- # This class is only provided for backwards compatibility. Use OpenSSL::Cipher in the future.
18
- class Cipher < Cipher
19
- # add warning
20
- end
17
+
18
+ # Deprecated.
19
+ #
20
+ # This class is only provided for backwards compatibility.
21
+ # Use OpenSSL::Cipher.
22
+ class Cipher < Cipher ; end
23
+ deprecate_constant :Cipher
21
24
end # Cipher
22
25
end # OpenSSL
Original file line number Diff line number Diff line change 14
14
15
15
module OpenSSL
16
16
class Digest
17
+
17
18
# Deprecated.
18
19
#
19
20
# This class is only provided for backwards compatibility.
20
- class Digest < Digest # :nodoc:
21
- # Deprecated.
22
- #
23
- # See OpenSSL::Digest.new
24
- def initialize ( *args )
25
- warn ( 'Digest::Digest is deprecated; use Digest' )
26
- super ( *args )
27
- end
28
- end
21
+ # Use OpenSSL::Digest instead.
22
+ class Digest < Digest ; end # :nodoc:
23
+ deprecate_constant :Digest
29
24
30
25
end # Digest
31
26
You can’t perform that action at this time.
0 commit comments