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
zuora_connect_ui-0.8.2 vendor/ruby/2.6.0/gems/rack-test-1.1.0/lib/rack/test/mock_digest_request.rb
zuora_connect_ui-0.8.1 vendor/ruby/2.6.0/gems/rack-test-1.1.0/lib/rack/test/mock_digest_request.rb
zuora_connect_ui-0.8.0 vendor/ruby/2.6.0/gems/rack-test-1.1.0/lib/rack/test/mock_digest_request.rb
spiral_form-0.1.1 vendor/bundle/gems/rack-test-1.1.0/lib/rack/test/mock_digest_request.rb
spiral_form-0.1.0 vendor/bundle/gems/rack-test-1.1.0/lib/rack/test/mock_digest_request.rb
zuora_connect_ui-0.7.1 vendor/ruby/2.6.0/gems/rack-test-1.1.0/lib/rack/test/mock_digest_request.rb
zuora_connect_ui-0.7.0 vendor/ruby/2.6.0/gems/rack-test-1.1.0/lib/rack/test/mock_digest_request.rb
tdiary-5.0.13 vendor/bundle/gems/rack-test-1.1.0/lib/rack/test/mock_digest_request.rb
tdiary-5.0.12.1 vendor/bundle/gems/rack-test-1.1.0/lib/rack/test/mock_digest_request.rb
tdiary-5.0.11 vendor/bundle/gems/rack-test-1.1.0/lib/rack/test/mock_digest_request.rb
rack-test-1.1.0 lib/rack/test/mock_digest_request.rb
tdiary-5.0.9 vendor/bundle/gems/rack-test-1.0.0/lib/rack/test/mock_digest_request.rb
tdiary-5.0.8 vendor/bundle/gems/rack-test-0.8.3/lib/rack/test/mock_digest_request.rb
tdiary-5.0.8 vendor/bundle/gems/rack-test-1.0.0/lib/rack/test/mock_digest_request.rb
tdiary-5.0.8 vendor/bundle/gems/tdiary-5.0.7/vendor/bundle/gems/rack-test-0.8.2/lib/rack/test/mock_digest_request.rb
tdiary-5.0.8 vendor/bundle/ruby/2.5.0/gems/rack-test-0.8.3/lib/rack/test/mock_digest_request.rb
rack-test-1.0.0 lib/rack/test/mock_digest_request.rb
rack-test-0.8.3 lib/rack/test/mock_digest_request.rb
tdiary-5.0.7 vendor/bundle/gems/rack-test-0.8.2/lib/rack/test/mock_digest_request.rb
rack-test-0.8.2 lib/rack/test/mock_digest_request.rb