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
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/rack-test-1.1.0/lib/rack/test/mock_digest_request.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/rack-test-1.1.0/lib/rack/test/mock_digest_request.rb
tdiary-5.2.2 vendor/bundle/ruby/3.1.0/gems/rack-test-1.1.0/lib/rack/test/mock_digest_request.rb
tdiary-5.2.1 vendor/bundle/ruby/3.1.0/gems/rack-test-1.1.0/lib/rack/test/mock_digest_request.rb
mountapi-0.11.1 vendor/bundle/ruby/2.7.0/gems/rack-test-1.1.0/lib/rack/test/mock_digest_request.rb
tdiary-5.2.0 vendor/bundle/ruby/3.0.0/gems/rack-test-1.1.0/lib/rack/test/mock_digest_request.rb
tdiary-5.2.0 vendor/bundle/ruby/2.7.0/gems/rack-test-1.1.0/lib/rack/test/mock_digest_request.rb
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/rack-test-1.1.0/lib/rack/test/mock_digest_request.rb
date_n_time_picker_activeadmin-0.1.1 vendor/bundle/ruby/2.6.0/gems/rack-test-1.1.0/lib/rack/test/mock_digest_request.rb
tdiary-5.1.7 vendor/bundle/ruby/2.7.0/gems/rack-test-1.1.0/lib/rack/test/mock_digest_request.rb
tdiary-5.1.7 vendor/bundle/ruby/3.0.0/gems/rack-test-1.1.0/lib/rack/test/mock_digest_request.rb
rails_mini_profiler-0.2.0 vendor/bundle/ruby/3.0.0/gems/rack-test-1.1.0/lib/rack/test/mock_digest_request.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/rack-test-1.1.0/lib/rack/test/mock_digest_request.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/2.7.0/gems/rack-test-1.1.0/lib/rack/test/mock_digest_request.rb
tdiary-5.1.6 vendor/bundle/ruby/3.0.0/gems/rack-test-1.1.0/lib/rack/test/mock_digest_request.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/rack-test-1.1.0/lib/rack/test/mock_digest_request.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/tdiary-5.1.4/vendor/bundle/ruby/2.7.0/gems/rack-test-1.1.0/lib/rack/test/mock_digest_request.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/rack-test-1.1.0/lib/rack/test/mock_digest_request.rb
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/tdiary-5.1.4/vendor/bundle/ruby/2.7.0/gems/rack-test-1.1.0/lib/rack/test/mock_digest_request.rb
tdiary-5.1.5 vendor/bundle/ruby/2.7.0/gems/rack-test-1.1.0/lib/rack/test/mock_digest_request.rb