Changelog
*Sourced from [webmock's changelog](https://github.com/bblimke/webmock/blob/master/CHANGELOG.md).*
> ## 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.
>
> Thanks to [Olia Kremmyda](https://github.com/oliakremmyda)
>
>
> ## 3.2.1
>
> * Fixed Ruby warning under Ruby 2.5
>
> Thanks to [Matt Brictson](https://github.com/mattbrictson)
>
>
> ... (truncated)
Commits
- [`15fc3f1`](https://github.com/bblimke/webmock/commit/15fc3f1d84a6abaa09d85403fd1f391edd631e40) Version 3.4.0
- [`76895a8`](https://github.com/bblimke/webmock/commit/76895a851055b5263900121c3f31ec7261a295e7) Allowing requests with url encoded body to be matched by stubs declared with ...
- [`5979ad9`](https://github.com/bblimke/webmock/commit/5979ad97fe819f6186c802371133c03e399a3456) Patron adapter handles PATCH requests with body.
- [`277da14`](https://github.com/bblimke/webmock/commit/277da1475921fade5d5c536b9a7de1f55f7dfb3a) Handling query params, which represent nested hashes with keys starting with ...
- [`332af13`](https://github.com/bblimke/webmock/commit/332af137d9a541e69b7fb75bca8ee1e3de0624ba) Merge pull request [#751](https://github-redirect.dependabot.com/bblimke/webmock/issues/751) from koic/prevent_net_readtimeout_error_in_ruby_2_6
- [`cf37b09`](https://github.com/bblimke/webmock/commit/cf37b091adc9495e528191486fc041c3bd47ba3c) Merge pull request [#754](https://github-redirect.dependabot.com/bblimke/webmock/issues/754) from EiNSTeiN-/patch-1
- [`3d34be7`](https://github.com/bblimke/webmock/commit/3d34be7cdcce2607491f3366754802c1be78ea6a) Fix redundant `Util::` namespacing
- [`1cc36e5`](https://github.com/bblimke/webmock/commit/1cc36e5d9a64f081cf83683752ceea6f04bf4ff5) Prevent `Net/ReadTimeout` error in Ruby 2.6
- [`fc1536d`](https://github.com/bblimke/webmock/commit/fc1536de1bfb2a714731f9c27ec9371e568cdf9a) Merge pull request [#747](https://github-redirect.dependabot.com/bblimke/webmock/issues/747) from oliakremmyda/curl_reset
- [`7620eab`](https://github.com/bblimke/webmock/commit/7620eab8444eade3f1a231b9ebd4389f3054bc4e) Add reset method in curb adapter
- Additional commits viewable in [compare view](https://github.com/bblimke/webmock/compare/v3.0.1...v3.4.0)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot ignore this [minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use [this|these] label[s]` will set the current labels as the default for future PRs for this repo and language
Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Finally, you can contact us by mentioning @dependabot.
Bumps webmock from 3.0.1 to 3.4.0.
Changelog
*Sourced from [webmock's changelog](https://github.com/bblimke/webmock/blob/master/CHANGELOG.md).* > ## 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. > > Thanks to [Olia Kremmyda](https://github.com/oliakremmyda) > > > ## 3.2.1 > > * Fixed Ruby warning under Ruby 2.5 > > Thanks to [Matt Brictson](https://github.com/mattbrictson) > > > ... (truncated)Commits
- [`15fc3f1`](https://github.com/bblimke/webmock/commit/15fc3f1d84a6abaa09d85403fd1f391edd631e40) Version 3.4.0 - [`76895a8`](https://github.com/bblimke/webmock/commit/76895a851055b5263900121c3f31ec7261a295e7) Allowing requests with url encoded body to be matched by stubs declared with ... - [`5979ad9`](https://github.com/bblimke/webmock/commit/5979ad97fe819f6186c802371133c03e399a3456) Patron adapter handles PATCH requests with body. - [`277da14`](https://github.com/bblimke/webmock/commit/277da1475921fade5d5c536b9a7de1f55f7dfb3a) Handling query params, which represent nested hashes with keys starting with ... - [`332af13`](https://github.com/bblimke/webmock/commit/332af137d9a541e69b7fb75bca8ee1e3de0624ba) Merge pull request [#751](https://github-redirect.dependabot.com/bblimke/webmock/issues/751) from koic/prevent_net_readtimeout_error_in_ruby_2_6 - [`cf37b09`](https://github.com/bblimke/webmock/commit/cf37b091adc9495e528191486fc041c3bd47ba3c) Merge pull request [#754](https://github-redirect.dependabot.com/bblimke/webmock/issues/754) from EiNSTeiN-/patch-1 - [`3d34be7`](https://github.com/bblimke/webmock/commit/3d34be7cdcce2607491f3366754802c1be78ea6a) Fix redundant `Util::` namespacing - [`1cc36e5`](https://github.com/bblimke/webmock/commit/1cc36e5d9a64f081cf83683752ceea6f04bf4ff5) Prevent `Net/ReadTimeout` error in Ruby 2.6 - [`fc1536d`](https://github.com/bblimke/webmock/commit/fc1536de1bfb2a714731f9c27ec9371e568cdf9a) Merge pull request [#747](https://github-redirect.dependabot.com/bblimke/webmock/issues/747) from oliakremmyda/curl_reset - [`7620eab`](https://github.com/bblimke/webmock/commit/7620eab8444eade3f1a231b9ebd4389f3054bc4e) Add reset method in curb adapter - Additional commits viewable in [compare view](https://github.com/bblimke/webmock/compare/v3.0.1...v3.4.0)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot ignore this [minor|major] version` will close this PR and stop Dependabot creating any more for this minor/major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use [this|these] label[s]` will set the current labels as the default for future PRs for this repo and language Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Automerge options (never/patch/minor, and dev/runtime dependencies) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired) Finally, you can contact us by mentioning @dependabot.