Changelog
*Sourced from [webmock's changelog](https://github.com/bblimke/webmock/blob/master/CHANGELOG.md).*
> ## 3.4.1
>
> * When comparing url encoded body to a body from request stub, which was declared as hash, only String, Numeric and boolean hash values are stringified before the comparison.
>
> Thanks to [Lukas Pokorny](https://github.com/luk4s)
>
> ## 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
> ... (truncated)
Commits
- [`ca54cf8`](https://github.com/bblimke/webmock/commit/ca54cf8bfd64e1563012b630951377c922141385) Version 3.4.1
- [`67b75e9`](https://github.com/bblimke/webmock/commit/67b75e93d1db0fde358242c8ad0951d17da13806) Merge pull request [#756](https://github-redirect.dependabot.com/bblimke/webmock/issues/756) from luk4s/755_hash_incliding_in_body
- [`5122822`](https://github.com/bblimke/webmock/commit/5122822016fe760dc78f8ee89fc560eeba352dbb) do not convert RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher to_s
- [`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
- Additional commits viewable in [compare view](https://github.com/bblimke/webmock/compare/v3.0.1...v3.4.1)
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.1.
Changelog
*Sourced from [webmock's changelog](https://github.com/bblimke/webmock/blob/master/CHANGELOG.md).* > ## 3.4.1 > > * When comparing url encoded body to a body from request stub, which was declared as hash, only String, Numeric and boolean hash values are stringified before the comparison. > > Thanks to [Lukas Pokorny](https://github.com/luk4s) > > ## 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 > ... (truncated)Commits
- [`ca54cf8`](https://github.com/bblimke/webmock/commit/ca54cf8bfd64e1563012b630951377c922141385) Version 3.4.1 - [`67b75e9`](https://github.com/bblimke/webmock/commit/67b75e93d1db0fde358242c8ad0951d17da13806) Merge pull request [#756](https://github-redirect.dependabot.com/bblimke/webmock/issues/756) from luk4s/755_hash_incliding_in_body - [`5122822`](https://github.com/bblimke/webmock/commit/5122822016fe760dc78f8ee89fc560eeba352dbb) do not convert RSpec::Mocks::ArgumentMatchers::HashIncludingMatcher to_s - [`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 - Additional commits viewable in [compare view](https://github.com/bblimke/webmock/compare/v3.0.1...v3.4.1)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.