Sha256: 8db44bc5f5d4dcc7b1e970d403e997d15bdf583ce98d1de09d8469a44907ffd5

Contents?: true

Size: 443 Bytes

Versions: 61

Compression:

Stored size: 443 Bytes

Contents

module Rack
  module Test
    class MockDigestRequest # :nodoc:
      def initialize(params)
        @params = params
      end

      def method_missing(sym)
        if @params.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

61 entries across 46 versions & 12 rubygems

Version Path
tdiary-5.1.4 vendor/bundle/ruby/2.7.0/gems/rack-test-1.1.0/lib/rack/test/mock_digest_request.rb
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/rack-test-1.1.0/lib/rack/test/mock_digest_request.rb
tdiary-5.1.3 vendor/bundle/ruby/2.7.0/gems/rack-test-1.1.0/lib/rack/test/mock_digest_request.rb
tdiary-5.1.3 vendor/bundle/ruby/2.6.0/gems/rack-test-1.1.0/lib/rack/test/mock_digest_request.rb
tdiary-5.1.2 vendor/bundle/ruby/2.7.0/gems/rack-test-1.1.0/lib/rack/test/mock_digest_request.rb
tdiary-5.1.2 vendor/bundle/ruby/2.6.0/gems/rack-test-1.1.0/lib/rack/test/mock_digest_request.rb
argon-1.3.1 vendor/bundle/ruby/2.7.0/gems/rack-test-1.1.0/lib/rack/test/mock_digest_request.rb
symbolic_enum-1.1.5 vendor/bundle/ruby/2.7.0/gems/rack-test-1.1.0/lib/rack/test/mock_digest_request.rb
tdiary-5.1.1 vendor/bundle/ruby/2.6.0/gems/rack-test-1.1.0/lib/rack/test/mock_digest_request.rb
tdiary-5.1.1 vendor/bundle/ruby/2.7.0/gems/rack-test-1.1.0/lib/rack/test/mock_digest_request.rb
grape-extra_validators-1.0.0 vendor/bundle/ruby/2.4.0/gems/rack-test-1.1.0/lib/rack/test/mock_digest_request.rb
grape-extra_validators-1.0.0 vendor/bundle/ruby/2.4.0/gems/rack-test-1.0.0/lib/rack/test/mock_digest_request.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/rack-test-1.1.0/lib/rack/test/mock_digest_request.rb
tdiary-5.1.0 vendor/bundle/gems/rack-test-1.1.0/lib/rack/test/mock_digest_request.rb
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/rack-test-1.1.0/lib/rack/test/mock_digest_request.rb
chatops-rpc-0.0.2 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/rack-test-1.1.0/lib/rack/test/mock_digest_request.rb
chatops-rpc-0.0.1 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/rack-test-1.1.0/lib/rack/test/mock_digest_request.rb
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/rack-test-1.1.0/lib/rack/test/mock_digest_request.rb
zuora_connect_ui-0.9.0 vendor/ruby/2.6.0/gems/rack-test-1.1.0/lib/rack/test/mock_digest_request.rb
zuora_connect_ui-0.8.3 vendor/ruby/2.6.0/gems/rack-test-1.1.0/lib/rack/test/mock_digest_request.rb