summary refs log tree commit
path: root/lib/rack/mock.rb
DateCommit message (Expand)
2017-05-15Merge pull request #1163 from janko-m/rely-on-size-in-mock-request
2017-05-12Ensure env values are ASCII 8BIT encoded
2017-05-01Don't require input to respond to #size in MockRequest.env_for
2017-05-01Rely on input #size instead of #length in MockRequest.env_for
2017-03-25remove superflous String#force_encoding calls
2016-12-14Revert "Add 205 Reset Content to the list of statuses without a message body" rfc7231-sec6.3.6-205
2016-05-19Remove unused variable.
2016-01-28Work with ruby 2.3's --enable-frozen-string-literal
2015-09-04pull env access in the request object to a module
2015-06-12Constantize all rack environment variables and make them frozen
2015-06-10URI::Parser = URI::RC2396_Parser in Ruby 2.2+
2015-06-10URI::RFC2396 is always defined in Ruby 2.2+
2015-05-26Encoding class can be used freely everywhere
2014-10-03Follow-up for the pull request #737
2014-10-02Less allocated objects on each request
2014-07-13Fix URI parsing on 1.8.7, also address perf
2014-07-08use RFC 2396 URI parser in the mock object
2013-10-21Add OPTIONS support to File and MockRequest.
2012-02-22Add #patch to MockRequest
2011-12-17Support #head in rack::mockrequest
2011-08-15Add 205 Reset Content to the list of statuses without a message body
2011-06-14Have MockRequest call close on the body rather than MockResponse.
2011-06-09call #close on body in mock responses
2011-01-13refactor Rack::MockResponse to be a subclass of Rack::Response, also make sur...
2011-01-13moving MockResponse underneath Rack::Response
2010-12-31Make mock response work like response with respect to headers
2010-12-10Properly handle nil header values in Rack::MockResponse#initialize.
2010-04-07Require 'rack' from mock.rb since it references Rack::VERSION
2010-03-23Update Rack::Mock to use Rack::VERSION too
2009-12-26Bump version and release to 1.1
2009-08-05Revert "Add common HTTP strings to Rack::Const"
2009-08-03Add common HTTP strings to Rack::Const
2009-08-03rack.input should be ASCII-8BIT even if it's StringIO (for test)
2009-06-30Set correct external_encoding for handlers that don't use RewindableInput
2009-05-02Only try to get the rack.errors.string if possible so we don't violate the spec
2009-04-28Utils::Multipart.build_multipart returns nil if no UploadedFiles are included
2009-04-25MockRequest should accept hash params
2009-04-25MockRequest should properly convert method name to an uppercase string
2009-04-25MockRequest should prepend slash to uri path
2009-04-25Ensure SSL port and HTTP flag are on when using https
2009-04-25fix rack.version in MockRequest
2009-02-06Normalize Array header values to Strings in HeaderHash#to_hash
2009-01-21Content Length needs to be a string
2009-01-21set CONTENT_LENGTH header in Rack::MockRequest.env_for so :input POST variabl...
2008-03-17Don't lose empty headers in HeaderHash
2007-05-16Fix trailing whitespace. Sigh.
2007-05-11Introduce Rack::Response::Helpers and make MockResponse use them, too.
2007-05-11Add some more edge-case tests to improve coverage
2007-03-01Add RDocs
2007-02-28MockRequest can now only create the Rack environment