Skip to content

Commit

Permalink
Version 3.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bblimke committed Apr 30, 2018
1 parent 76895a8 commit 15fc3f1
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
36 changes: 36 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,41 @@
# Changelog

## 3.4.0

* Ruby 2.6 support. Prevent `Net/ReadTimeout` error in Ruby 2.6

Thanks to [Koichi ITO](https://github.com/koic)

* Handling query params, which represent nested hashes with keys starting with non word characters.

Thanks to [rapides](https://github.com/rapides) for reporting the issue.

* Patron adapter handles PATCH requests with body.

Thanks to [Mattia](https://github.com/iMacTia) 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](https://github.com/yairgo) 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](https://github.com/redbar0n)

* Improved suggested stub output when the request stub only contains headers declaration.

Thanks to [Olia Kremmyda](https://github.com/oliakremmyda)

* Fixed Curb adapter to handle `reset` method.

Thanks tp [dinhhuydh](https://github.com/dinhhuydh) for reporting the issue.
Thanks to [Olia Kremmyda](https://github.com/oliakremmyda) for fixing it.


## 3.3.0

* Better formatting of outputted request stub snippets, displayed on failures due to unstubbed requests.
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1053,6 +1053,8 @@ People who submitted patches and new features or suggested improvements. Many th
* Olia Kremmyda
* Michał Matyas
* Matt Brictson
* Kenny Ortmann
* redbar0n

For a full list of contributors you can visit the
[contributors](https://github.com/bblimke/webmock/contributors) page.
Expand Down
2 changes: 1 addition & 1 deletion lib/webmock/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module WebMock
VERSION = '3.3.0' unless defined?(::WebMock::VERSION)
VERSION = '3.4.0' unless defined?(::WebMock::VERSION)
end

0 comments on commit 15fc3f1

Please sign in to comment.