WebMock v3.4.0 Release Notes
-
Ruby 2.6 support. Prevent
Net/ReadTimeout
error in Ruby 2.6Thanks to Koichi ITO
Handling query params, which represent nested hashes with keys starting with non word characters.
Thanks to rapides for reporting the issue.
Patron adapter handles PATCH requests with body.
Thanks to Mattia for reporting the issue.
Allowing requests with url encoded body to be matched by request stubs declared with hash body with non-string values.
stub_request(:post, "www.example.com").with(body: {"a" => 1, "b" => false}) RestClient.post('www.example.com', 'a=1&b=false', :content_type => 'application/x-www-form-urlencoded') # ===> Success
Thanks to Kenny Ortmann for suggesting this feature.
When request headers contain 'Accept'=>'application/json' and no registered stub matches the request, WebMock prints a suggested stub code with to_return body set to '{}'.
Thanks to redbar0n
- ๐ Improved suggested stub output when the request stub only contains headers declaration.
Thanks to Olia Kremmyda
- ๐ Fixed Curb adapter to handle
reset
method.
Thanks tp dinhhuydh for reporting the issue. Thanks to Olia Kremmyda for fixing it.