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
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/rack-test-0.6.3/lib/rack/test/mock_digest_request.rb
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/rack-test-0.6.3/lib/rack/test/mock_digest_request.rb
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/rack-test-0.6.3/lib/rack/test/mock_digest_request.rb
sc_core-0.0.7 test/dummy/vendor/bundle/ruby/2.2.0/gems/rack-test-0.6.3/lib/rack/test/mock_digest_request.rb
classiccms-0.7.5 vendor/bundle/gems/rack-test-0.6.1/lib/rack/test/mock_digest_request.rb
classiccms-0.7.4 vendor/bundle/gems/rack-test-0.6.1/lib/rack/test/mock_digest_request.rb
classiccms-0.7.3 vendor/bundle/gems/rack-test-0.6.1/lib/rack/test/mock_digest_request.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/rack-test-0.6.3/lib/rack/test/mock_digest_request.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/rack-test-0.6.3/lib/rack/test/mock_digest_request.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/rack-test-0.6.3/lib/rack/test/mock_digest_request.rb
active_mailer-0.0.10 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
shoppe-paypal-1.1.0 vendor/bundle/ruby/2.1.0/gems/rack-test-0.6.3/lib/rack/test/mock_digest_request.rb
rack-test-0.6.3 lib/rack/test/mock_digest_request.rb
judge-2.0.5 vendor/bundle/ruby/2.1.0/gems/rack-test-0.6.2/lib/rack/test/mock_digest_request.rb
apl-library-0.0.90 vendor/bundle/ruby/1.9.1/gems/rack-test-0.6.2/lib/rack/test/mock_digest_request.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.9.1/gems/rack-test-0.6.2/lib/rack/test/mock_digest_request.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/2.1.0/gems/rack-test-0.6.2/lib/rack/test/mock_digest_request.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/rack-test-0.6.2/lib/rack/test/mock_digest_request.rb
nanumfont-rails-0.1 vendor/bundle/ruby/2.1.0/gems/rack-test-0.6.2/lib/rack/test/mock_digest_request.rb
mango-0.8.0 vendor/bundler/ruby/2.1.0/gems/rack-test-0.6.2/lib/rack/test/mock_digest_request.rb