Skip to content

Bump webmock from 3.35.0 to 3.37.0 in the development group - #12

Open
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/bundler/development-204e064e2a
Open

dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/bundler/development-204e064e2a

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 24, 2026 •

Copy link
Copy Markdown

Bumps the development group with 1 update: webmock.

Updates webmock from 3.35.0 to 3.37.0

Release notes

Sourced from webmock's releases.

3.37.0

  • Add executed_requests to inspect the requests made (#1069)

    WebMock.executed_requests returns every request made since the last reset, in order, including repeated ones. You can assert on each one's body or headers, for example JSON.parse(WebMock.executed_requests.last.body).

    Previously, this needed WebMock internals such as WebMock::RequestRegistry.instance.requested_signatures.hash.keys, which list each distinct request only once.

    Thanks to John Gallagher for the idea, which we started pairing on at EuRuKo 2024 in Sarajevo.

  • Fix stub matching for consecutive Curb PUT requests on the same handle

    After curl.http_put("first"), WebMock could match a subsequent curl.http_put against the previous body. It now matches the second request with an empty body.

  • Run HTTPClient request filters once per attempt on real requests

    Previously, WebMock could run a filter twice, so a filter that generated a request ID could send a different ID to the server than the one WebMock recorded.

  • Fix async HTTPClient requests hanging when an after_request callback is registered

    Previously, with real connections allowed, WebMock read the response body for the callback from the same stream as your code, so reading part of a get_async response before calling join could hang.

  • Match file and stream uploads by their content

    Previously, a body pattern such as with(body: "abc") never matched a Curb, Patron or em-http-request request that uploaded a file or stream, because WebMock compared the pattern with the file object. Stubs now compare it with the uploaded bytes for Curb and Patron, and assert_requested does so for all three.

    Blocks given to stub_request(...).with still receive the original file or stream.

  • Count em-http-request requests blocked by disable_net_connect!

    Previously, WebMock did not record them, so assert_requested did not count them. They are now counted, as with other HTTP clients.

3.36.0

  • Fix matching of indexed arrays nested inside arrays of hashes (#1144)

    Previously, WebMock read indexed arrays nested inside an array of hashes, such as a[][b][0][c]=1, as hashes with "0", "1" keys. WebMock writes that form itself, so with(query: {"a" => [{"b" => [{"c" => "1"}]}]}) with a regexp URI did not match ?a[][b][][c]=1, and a Typhoeus request with that hash as its body did not match a stub with the same hash.

    If a stub uses the old shape, such as {"a" => [{"b" => {"0" => {"c" => "1"}}}]}, for example one copied from WebMock's suggested stub, use arrays instead.

    Thanks to Hamza Tarar

  • Fix matching of arrays of hashes that repeat a nested key

    Previously, WebMock put a nested key repeated under [] into the first hash of the array, so items[][address][city]=X&items[][address][city]=Y was read as one item with the city Y. A stub listing both items did not match, and a stub for X and Y also matched a request for Z and Y. Rails and Faraday encode arrays of nested hashes this way.

    Such keys now go into a new hash, as in Rack. If a stub lists such an array as one item, for example one copied from WebMock's suggested stub, list every item.

    Queries that mix a value and nested keys under the same name, such as a[][b]=1&a[][b][c]=2 or a[c]=1&a[c][]=2, no longer raise IndexError or join the values into one string.

  • Apply Net::HTTP response_body_encoding to stubbed response bodies (#1138)

... (truncated)

Changelog

Sourced from webmock's changelog.

3.37.0

  • Add executed_requests to inspect the requests made (#1069)

    WebMock.executed_requests returns every request made since the last reset, in order, including repeated ones. You can assert on each one's body or headers, for example JSON.parse(WebMock.executed_requests.last.body).

    Previously, this needed WebMock internals such as WebMock::RequestRegistry.instance.requested_signatures.hash.keys, which list each distinct request only once.

    Thanks to John Gallagher for the idea, which we started pairing on at EuRuKo 2024 in Sarajevo.

  • Fix stub matching for consecutive Curb PUT requests on the same handle

    After curl.http_put("first"), WebMock could match a subsequent curl.http_put against the previous body. It now matches the second request with an empty body.

  • Run HTTPClient request filters once per attempt on real requests

    Previously, WebMock could run a filter twice, so a filter that generated a request ID could send a different ID to the server than the one WebMock recorded.

  • Fix async HTTPClient requests hanging when an after_request callback is registered

    Previously, with real connections allowed, WebMock read the response body for the callback from the same stream as your code, so reading part of a get_async response before calling join could hang.

  • Match file and stream uploads by their content

    Previously, a body pattern such as with(body: "abc") never matched a Curb, Patron or em-http-request request that uploaded a file or stream, because WebMock compared the pattern with the file object. Stubs now compare it with the uploaded bytes for Curb and Patron, and assert_requested does so for all three.

    Blocks given to stub_request(...).with still receive the original file or stream.

  • Count em-http-request requests blocked by disable_net_connect!

    Previously, WebMock did not record them, so assert_requested did not count them. They are now counted, as with other HTTP clients.

3.36.0

  • Fix matching of indexed arrays nested inside arrays of hashes (#1144)

    Previously, WebMock read indexed arrays nested inside an array of hashes, such as a[][b][0][c]=1, as hashes with "0", "1" keys. WebMock writes that form itself, so with(query: {"a" => [{"b" => [{"c" => "1"}]}]}) with a regexp URI did not match ?a[][b][][c]=1, and a Typhoeus request with that hash as its body did not match a stub with the same hash.

    If a stub uses the old shape, such as {"a" => [{"b" => {"0" => {"c" => "1"}}}]}, for example one copied from WebMock's suggested stub, use arrays instead.

    Thanks to Hamza Tarar

  • Fix matching of arrays of hashes that repeat a nested key

    Previously, WebMock put a nested key repeated under [] into the first hash of the array, so items[][address][city]=X&items[][address][city]=Y was read as one item with the city Y. A stub listing both items did not match, and a stub for X and Y also matched a request for Z and Y. Rails and Faraday encode arrays of nested hashes this way.

    Such keys now go into a new hash, as in Rack. If a stub lists such an array as one item, for example one copied from WebMock's suggested stub, list every item.

    Queries that mix a value and nested keys under the same name, such as a[][b]=1&a[][b][c]=2 or a[c]=1&a[c][]=2, no longer raise IndexError or join the values into one string.

... (truncated)

Commits
  • 8272456 Version 3.37.0
  • 21c4af0 Shorten the README notes on uploads in executed_requests
  • 6edf576 Record the form fields of Patron multipart posts without a file
  • 5cea1ec Compare request signatures without their body encoding
  • 1095b10 Avoid copying recorded requests for method and string URI assertions
  • 84c8479 Skip copying requests ruled out by the HTTP method during verification
  • 5cf9f50 Run synchronous HTTPClient request filters once per attempt
  • 803e932 Isolate recorded requests from verification matchers
  • ba87957 Match native upload objects and preserve single-argument request patterns
  • 6829e02 Capture async HTTPClient response chunks before they reach the caller’s stream
  • Additional commits viewable in compare view

Dependabot compatibility score

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 recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Bumps the development group with 1 update: [webmock](https://github.com/bblimke/webmock).


Updates `webmock` from 3.35.0 to 3.37.0
- [Release notes](https://github.com/bblimke/webmock/releases)
- [Changelog](https://github.com/bblimke/webmock/blob/master/CHANGELOG.md)
- [Commits](bblimke/webmock@v3.35.0...v3.37.0)

---
updated-dependencies:
- dependency-name: webmock
  dependency-version: 3.37.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: development
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file ruby Pull requests that update ruby code labels Nov 24, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file ruby Pull requests that update ruby code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants