Sha256: 08d32cb5edc5185c6f46c46e1e73cf9bb9c31888771a6ebfa0e3fad28802a64c

Contents?: true

Size: 389 Bytes

Versions: 13

Compression:

Stored size: 389 Bytes

Contents

require 'oauth/signature/base'

module OAuth::Signature
  class PLAINTEXT < Base
    implements 'plaintext'

    def signature
      signature_base_string
    end

    def ==(cmp_signature)
      signature.to_s == cmp_signature.to_s
    end

    def signature_base_string
      secret
    end

    def body_hash
      nil
    end

    private

    def secret
      super
    end
  end
end

Version data entries

13 entries across 11 versions & 2 rubygems

Version Path
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/oauth-0.5.6/lib/oauth/signature/plaintext.rb
oauth-0.5.6 lib/oauth/signature/plaintext.rb
oauth-0.5.5 lib/oauth/signature/plaintext.rb
tdiary-5.0.8 vendor/bundle/gems/oauth-0.5.4/lib/oauth/signature/plaintext.rb
oauth-0.5.4 lib/oauth/signature/plaintext.rb
tdiary-5.0.5 vendor/bundle/gems/oauth-0.5.3/lib/oauth/signature/plaintext.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/oauth-0.5.1/lib/oauth/signature/plaintext.rb
tdiary-5.0.5 vendor/bundle/gems/oauth-0.5.1/lib/oauth/signature/plaintext.rb
oauth-0.5.3 lib/oauth/signature/plaintext.rb
oauth-0.5.2 lib/oauth/signature/plaintext.rb
tdiary-5.0.4 vendor/bundle/gems/oauth-0.5.1/lib/oauth/signature/plaintext.rb
oauth-0.5.1 lib/oauth/signature/plaintext.rb
oauth-0.5.0 lib/oauth/signature/plaintext.rb