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
mango-0.7.1 vendor/bundler/ruby/2.0.0/gems/rack-test-0.6.0/lib/rack/test/mock_digest_request.rb
mango-0.7.0 vendor/bundler/ruby/2.0.0/gems/rack-test-0.6.0/lib/rack/test/mock_digest_request.rb
challah-1.0.0 vendor/bundle/gems/rack-test-0.6.2/lib/rack/test/mock_digest_request.rb
classiccms-0.7.2 vendor/bundle/gems/rack-test-0.6.1/lib/rack/test/mock_digest_request.rb
classiccms-0.7.1 vendor/bundle/gems/rack-test-0.6.1/lib/rack/test/mock_digest_request.rb
swipe-rails-0.0.5 vendor/bundle/gems/rack-test-0.6.2/lib/rack/test/mock_digest_request.rb
active_mailer-0.0.9 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/rack-test-0.6.2/lib/rack/test/mock_digest_request.rb
active_mailer-0.0.8 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/rack-test-0.6.2/lib/rack/test/mock_digest_request.rb
active_mailer-0.0.7 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/rack-test-0.6.2/lib/rack/test/mock_digest_request.rb
active_mailer-0.0.6 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/rack-test-0.6.2/lib/rack/test/mock_digest_request.rb
classiccms-0.7.0 vendor/bundle/gems/rack-test-0.6.1/lib/rack/test/mock_digest_request.rb
font-awesome-rails-3.1.1.2 vendor/ruby/2.0.0/gems/rack-test-0.6.2/lib/rack/test/mock_digest_request.rb
font-awesome-rails-3.1.1.2 vendor/ruby/1.9.1/gems/rack-test-0.6.2/lib/rack/test/mock_digest_request.rb
font-awesome-rails-3.1.1.1 vendor/ruby/1.9.1/gems/rack-test-0.6.2/lib/rack/test/mock_digest_request.rb
font-awesome-rails-3.1.1.1 vendor/ruby/2.0.0/gems/rack-test-0.6.2/lib/rack/test/mock_digest_request.rb
challah-1.0.0.beta3 vendor/bundle/gems/rack-test-0.6.2/lib/rack/test/mock_digest_request.rb
fc-webicons-0.0.4 vendor/bundle/ruby/1.9.1/gems/rack-test-0.6.2/lib/rack/test/mock_digest_request.rb
challah-1.0.0.beta2 vendor/bundle/gems/rack-test-0.6.2/lib/rack/test/mock_digest_request.rb
challah-1.0.0.beta vendor/bundle/gems/rack-test-0.6.2/lib/rack/test/mock_digest_request.rb
fc-webicons-0.0.3 vendor/bundle/ruby/1.9.1/gems/rack-test-0.6.2/lib/rack/test/mock_digest_request.rb