Sha256: 65b89d6dcf14ba3cff83d2ecbf3fe416da53d0f71e52d9c734e696d97633eb00

Contents?: true

Size: 451 Bytes

Versions: 203

Compression:

Stored size: 451 Bytes

Contents

module Rack
  module Test

    class MockDigestRequest # :nodoc:

      def initialize(params)
        @params = params
      end

      def method_missing(sym)
        if @params.has_key? k = sym.to_s
          return @params[k]
        end

        super
      end

      def method
        @params['method']
      end

      def response(password)
        Rack::Auth::Digest::MD5.new(nil).send :digest, self, password
      end

    end

  end
end

Version data entries

203 entries across 176 versions & 39 rubygems

Version Path
jquery_regex-0.0.3 vendor/bundle/gems/jquery_regex-0.0.2/vendor/bundle/gems/jquery_regex-0.0.1/vendor/bundle/gems/rack-test-0.6.2/lib/rack/test/mock_digest_request.rb
jquery_regex-0.0.3 vendor/bundle/gems/jquery_regex-0.0.3/vendor/bundle/gems/jquery_regex-0.0.2/vendor/bundle/gems/jquery_regex-0.0.1/vendor/bundle/gems/rack-test-0.6.2/lib/rack/test/mock_digest_request.rb
jquery_regex-0.0.3 vendor/bundle/gems/jquery_regex-0.0.3/vendor/bundle/gems/jquery_regex-0.0.2/vendor/bundle/gems/rack-test-0.6.2/lib/rack/test/mock_digest_request.rb
jquery_regex-0.0.3 vendor/bundle/gems/jquery_regex-0.0.2/vendor/bundle/gems/rack-test-0.6.2/lib/rack/test/mock_digest_request.rb
jquery_regex-0.0.3 vendor/bundle/gems/jquery_regex-0.0.3/vendor/bundle/gems/jquery_regex-0.0.1/vendor/bundle/gems/rack-test-0.6.2/lib/rack/test/mock_digest_request.rb
jquery_regex-0.0.3 vendor/bundle/gems/jquery_regex-0.0.3/vendor/bundle/gems/rack-test-0.6.2/lib/rack/test/mock_digest_request.rb
jquery_regex-0.0.3 vendor/bundle/gems/rack-test-0.6.2/lib/rack/test/mock_digest_request.rb
jquery_regex-0.0.1 vendor/bundle/gems/rack-test-0.6.2/lib/rack/test/mock_digest_request.rb
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.0.pre/vendor/bundle/gems/rack-test-0.6.1/lib/rack/test/mock_digest_request.rb
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.3/vendor/bundle/gems/rack-test-0.6.1/lib/rack/test/mock_digest_request.rb
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.3/vendor/bundle/gems/rack-test-0.6.2/lib/rack/test/mock_digest_request.rb
challah-rolls-0.2.0 vendor/bundle/gems/rack-test-0.6.1/lib/rack/test/mock_digest_request.rb
challah-rolls-0.2.0 vendor/bundle/gems/rack-test-0.6.2/lib/rack/test/mock_digest_request.rb
challah-0.8.3 vendor/bundle/gems/rack-test-0.6.1/lib/rack/test/mock_digest_request.rb
challah-0.8.3 vendor/bundle/gems/rack-test-0.6.2/lib/rack/test/mock_digest_request.rb
classiccms-0.6.8 vendor/bundle/gems/rack-test-0.6.1/lib/rack/test/mock_digest_request.rb
classiccms-0.6.7 vendor/bundle/gems/rack-test-0.6.1/lib/rack/test/mock_digest_request.rb
fragrant-0.0.5 vendor/bundle/ruby/1.9.1/gems/rack-test-0.6.2/lib/rack/test/mock_digest_request.rb
classiccms-0.6.6 vendor/bundle/gems/rack-test-0.6.1/lib/rack/test/mock_digest_request.rb
classiccms-0.6.5 vendor/bundle/gems/rack-test-0.6.1/lib/rack/test/mock_digest_request.rb