Sha256: 68846c26f7b6e597076d8ead3ca4a06b5ff5e6b5efb16f61630ee78ecde96b09

Contents?: true

Size: 389 Bytes

Versions: 9

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

9 entries across 9 versions & 1 rubygems

Version Path
oauth-0.5.14 lib/oauth/signature/plaintext.rb
oauth-0.5.13 lib/oauth/signature/plaintext.rb
oauth-0.5.12 lib/oauth/signature/plaintext.rb
oauth-0.5.11 lib/oauth/signature/plaintext.rb
oauth-0.5.10 lib/oauth/signature/plaintext.rb
oauth-0.5.9 lib/oauth/signature/plaintext.rb
oauth-0.5.8 lib/oauth/signature/plaintext.rb
oauth-0.5.7 lib/oauth/signature/plaintext.rb
oauth-0.5.7.pre.pre1 lib/oauth/signature/plaintext.rb