Sha256: 4485790ce538a74e5b007d370c5007373cddeeb5ab47e195ea562cac75fca5e0

Contents?: true

Size: 968 Bytes

Versions: 22

Compression:

Stored size: 968 Bytes

Contents

# frozen_string_literal: false
#--
# = Ruby-space predefined Digest subclasses
#
# = Info
# 'OpenSSL for Ruby 2' project
# Copyright (C) 2002  Michal Rokos <m.rokos@sh.cvut.cz>
# All rights reserved.
#
# = Licence
# This program is licensed under the same licence as Ruby.
# (See the file 'LICENCE'.)
#++

module OpenSSL
  class Digest
    # Deprecated.
    #
    # This class is only provided for backwards compatibility.
    class Digest < Digest # :nodoc:
      # Deprecated.
      #
      # See OpenSSL::Digest.new
      def initialize(*args)
        warn('Digest::Digest is deprecated; use Digest')
        super(*args)
      end
    end

  end # Digest

  # Returns a Digest subclass by +name+.
  #
  #   require 'openssl'
  #
  #   OpenSSL::Digest("MD5")
  #   # => OpenSSL::Digest::MD5
  #
  #   Digest("Foo")
  #   # => NameError: wrong constant name Foo

  def Digest(name)
    OpenSSL::Digest.const_get(name)
  end

  module_function :Digest

end # OpenSSL

Version data entries

22 entries across 22 versions & 7 rubygems

Version Path
logstash-filter-csharp-0.2.1 vendor/bundle/jruby/2.3.0/gems/jruby-openssl-0.9.16-java/lib/jopenssl23/openssl/digest.rb
logstash-filter-csharp-0.2.0 vendor/bundle/jruby/2.3.0/gems/jruby-openssl-0.9.16-java/lib/jopenssl23/openssl/digest.rb
mrcooper-logstash-output-azuresearch-0.2.2 vendor/jruby/2.5.0/gems/jruby-openssl-0.9.16-java/lib/jopenssl23/openssl/digest.rb
logstash-output-icinga-1.1.0 vendor/jruby/2.3.0/gems/jruby-openssl-0.9.16-java/lib/jopenssl23/openssl/digest.rb
logstash-filter-csharp-0.1.0 vendor/bundle/jruby/2.3.0/gems/jruby-openssl-0.9.16-java/lib/jopenssl23/openssl/digest.rb
ivanvc-logstash-input-s3-3.1.1.4 vendor/local/gems/jruby-openssl-0.9.16-java/lib/jopenssl23/openssl/digest.rb
ivanvc-logstash-input-s3-3.1.1.3 vendor/local/gems/jruby-openssl-0.9.16-java/lib/jopenssl23/openssl/digest.rb
ivanvc-logstash-input-s3-3.1.1.2 vendor/local/gems/jruby-openssl-0.9.16-java/lib/jopenssl23/openssl/digest.rb
jruby-openssl-0.9.18-java lib/jopenssl23/openssl/digest.rb
logstash-filter-delta-1.1.0 vendor/bundle/jruby/2.2.0/gems/jruby-openssl-0.9.16-java/lib/jopenssl23/openssl/digest.rb
logstash-filter-delta-1.0.1 vendor/bundle/jruby/2.2.0/gems/jruby-openssl-0.9.16-java/lib/jopenssl23/openssl/digest.rb
logstash-filter-base64-1.0.4 vendor/bundle/jruby/2.2.0/gems/jruby-openssl-0.9.16-java/lib/jopenssl23/openssl/digest.rb
logstash-filter-base64-1.0.3 vendor/bundle/jruby/2.2.0/gems/jruby-openssl-0.9.16-java/lib/jopenssl23/openssl/digest.rb
logstash-filter-delta-1.0.0 vendor/bundle/jruby/2.2.0/gems/jruby-openssl-0.9.16-java/lib/jopenssl23/openssl/digest.rb
logstash-filter-base64-1.0.2 vendor/bundle/jruby/2.3.0/gems/jruby-openssl-0.9.16-java/lib/jopenssl23/openssl/digest.rb
logstash-filter-base64-1.0.1 vendor/bundle/jruby/2.3.0/gems/jruby-openssl-0.9.16-java/lib/jopenssl23/openssl/digest.rb
logstash-filter-base64-1.0.0 vendor/bundle/jruby/2.3.0/gems/jruby-openssl-0.9.16-java/lib/jopenssl23/openssl/digest.rb
jruby-openssl-0.9.17-java lib/jopenssl23/openssl/digest.rb
jruby-openssl-0.9.16-java lib/jopenssl23/openssl/digest.rb
jruby-openssl-0.9.15-java lib/jopenssl23/openssl/digest.rb