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
pract6-0.1.0 .gem/ruby/2.3.0/gems/rack-test-0.7.0/lib/rack/test/mock_digest_request.rb
tdiary-5.0.6 vendor/bundle/gems/rack-test-0.7.0/lib/rack/test/mock_digest_request.rb
rack-test-0.7.0 lib/rack/test/mock_digest_request.rb
tdiary-5.0.5 vendor/bundle/gems/rack-test-0.6.3/lib/rack/test/mock_digest_request.rb
tdiary-5.0.5 vendor/bundle/gems/tdiary-5.0.4/vendor/bundle/gems/rack-test-0.6.3/lib/rack/test/mock_digest_request.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/rack-test-0.6.3/lib/rack/test/mock_digest_request.rb
tdiary-5.0.4 vendor/bundle/gems/rack-test-0.6.3/lib/rack/test/mock_digest_request.rb
mdg-1.0.1 vendor/bundle/ruby/2.3.0/gems/rack-test-0.6.3/lib/rack/test/mock_digest_request.rb
autocompl-0.2.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/rack-test-0.6.3/lib/rack/test/mock_digest_request.rb
autocompl-0.2.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/rack-test-0.6.3/lib/rack/test/mock_digest_request.rb
autocompl-0.2.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/rack-test-0.6.3/lib/rack/test/mock_digest_request.rb
autocompl-0.1.2 test/dummy/vendor/bundle/ruby/2.3.0/gems/rack-test-0.6.3/lib/rack/test/mock_digest_request.rb
autocompl-0.1.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/rack-test-0.6.3/lib/rack/test/mock_digest_request.rb
autocompl-0.1.0 test/dummy/vendor/bundle/ruby/2.3.0/gems/rack-test-0.6.3/lib/rack/test/mock_digest_request.rb
autocompl-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/rack-test-0.6.3/lib/rack/test/mock_digest_request.rb
abaci-0.3.0 vendor/bundle/gems/rack-test-0.6.3/lib/rack/test/mock_digest_request.rb
arcabouco-0.2.13 vendor/bundle/gems/rack-test-0.6.3/lib/rack/test/mock_digest_request.rb
tdiary-5.0.2 vendor/bundle/gems/rack-test-0.6.3/lib/rack/test/mock_digest_request.rb
tdiary-5.0.1 vendor/bundle/gems/rack-test-0.6.3/lib/rack/test/mock_digest_request.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/rack-test-0.6.3/lib/rack/test/mock_digest_request.rb