rack-test 2.0.0 Released #306
jeremyevans
started this conversation in
General
Replies: 0 comments
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
rack-test 2.0.0 has been released!
Breaking changes:
digest authentication support in rack, which has been deprecated
(Jeremy Evans Deprecate digest authentication support #294)
Rack::Test::Utils.build_primitive_part
no longer handles arrayvalues (Jeremy Evans Convert specs to minitest/spec, get to 100% line/branch coverage #292)
Rack::Test::Utils
module methods other thanbuild_nested_query
and
build_multipart
are now private methods (Jeremy Evans Refactor and update documentation #297)Rack::MockSession
has been combined intoRack::Test::Session
,and remains as an alias to
Rack::Test::Session
, but to keep somebackwards compatibility,
Rack::Test::Session.new
will accept aRack::Test::Session
instance and return it (Jeremy Evans Refactor and update documentation #297)Rack::Test::Cookie{,Jar}
are nowprivate methods (Jeremy Evans Refactor and update documentation #297)
Rack::Test::Methods
no longer definesbuild_rack_mock_session
,but for backwards compatibility,
build_rack_test_session
will callbuild_rack_mock_session
if it is defined (Jeremy Evans Refactor and update documentation #297)Rack::Test::Methods::METHODS
is no longer defined(Jeremy Evans Refactor and update documentation #297)
Rack::Test::Methods#_current_session_names
has been removed(Jeremy Evans Refactor and update documentation #297)
compliance (Jeremy Evans Update documentation and refactor Rack::Test::Session #295)
code that mutates static strings returned by rack-test, if any
(Jeremy Evans Improve performance of Utils.build_multipart and .build_nested_query #304)
Minor enhancements:
rack-test now works with the rack main branch (what will be rack 3)
(Jeremy Evans Fix CookieJar#http_only? to work with Rack 3 #280 Convert specs to minitest/spec, get to 100% line/branch coverage #292)
rack-test only loads the parts of rack it uses when running on the
rack main branch (what will be rack 3) (Jeremy Evans Convert specs to minitest/spec, get to 100% line/branch coverage #292)
Development dependencies have been significantly reduced, and are
now a subset of the development dependencies of rack itself
(Jeremy Evans Convert specs to minitest/spec, get to 100% line/branch coverage #292)
Avoid creating multiple large copies of uploaded file data in
memory (Jeremy Evans Avoid create multiple large copies of uploaded file data in memory #286)
Specify HTTP/1.0 when submitting requests, to avoid responses with
Transfer-Encoding: chunked (Jeremy Evans Attempt to prevent responses with Transfer-Encoding: chunked #288)
Support
:query_params
in rack environment for parameters thatare appended to the query string instead of used in the request
body (Jeremy Evans Support url query (params) for post method #150 Add support for :query_params to set query parameters for non-GET requests #287)
Reduce required ruby version to 2.0, since tests run fine on
Ruby 2.0 (Jeremy Evans Convert specs to minitest/spec, get to 100% line/branch coverage #292)
Support :multipart env key for request methods to force multipart
input (Jeremy Evans Support :mulitpart env key to env_for to force multipart input #303)
Force multipart input for request methods if content type starts
with multipart (Jeremy Evans Support :mulitpart env key to env_for to force multipart input #303)
Improve performance of Utils.build_multipart by using an
append-only design (Jeremy Evans Improve performance of Utils.build_multipart and .build_nested_query #304)
Improve performance of Utils.build_nested_query for array values
(Jeremy Evans Improve performance of Utils.build_multipart and .build_nested_query #304)
Bug fixes:
CONTENT_TYPE
of multipart requests is now respected, if itstarts with
multipart/
(Tom Knig Fix: Respect Content-Type of multipart requests #238)to_a
but notto_ary
(Sergio Faria Add compatibility with rack 2.1.0 #276)StringIO without an original filename when creating an
UploadedFile (Nuno Correia Fix: validate StringIO args on UploadedFile.new #279)
building a multipart upload (Mitsuhiro Shibuya Fix file parts not built properly when put in a array with primitives #278)
escaping instead of regular escaping, since path unescaping is
used to decode it (Muir Manders, Jeremy Evans Fix generation of multipart filename with space. #275 Fix generation of multipart filename with space. #284)
submitted to the application
(Jeremy Evans, Alexander Dervish Multipart file upload test broken #261 Read uploaded file without modifying descriptor offset #268 Avoid create multiple large copies of uploaded file data in memory #286)
1.6+ (Jeremy Evans Convert specs to minitest/spec, get to 100% line/branch coverage #292)
(Jeremy Evans Convert specs to minitest/spec, get to 100% line/branch coverage #292)
requests for subdomains of that domain, for RFC 6265
compliance (Jeremy Evans Convert specs to minitest/spec, get to 100% line/branch coverage #292)
rack 1.2 and below (Jeremy Evans Remove use of rubocop and thor, other cleanups #293)
Thanks,
Jeremy
Beta Was this translation helpful? Give feedback.
All reactions