Skip to content

chore(deps-dev): bump webmock from 3.26.4 to 3.32.0 - #181

Closed
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/bundler/webmock-3.32.0
Closed

dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/bundler/webmock-3.32.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 17, 2026

Copy link
Copy Markdown
Contributor

Bumps webmock from 3.26.4 to 3.32.0.

Release notes

Sourced from webmock's releases.

3.32.0

  • Make a Net::HTTP object created while WebMock was enabled behave like any other Net::HTTP object after WebMock.disable! (#1067)

    Such an object, like a connection cached by net-http-persistent or by Capybara with Selenium, used to raise ArgumentError on start or a stubbed request, and WebMock::NetConnectNotAllowedError on any other request, after WebMock was disabled. It now sends real requests until WebMock is enabled again.

    Thanks to Mike Taylor and James Rodovich

  • Connect again when a request is retried on a Net::HTTP object that WebMock started without connecting and whose first real connection failed

    Such a retry used to raise NoMethodError (undefined method closed? for nil). It now tries to connect again, and raises the connection error if that fails too.

  • Drop the Transfer-Encoding header from stubbed async-http responses, as WebMock already does with Content-Length (#1044)

    A stub with a Transfer-Encoding header, such as chunked, used to fail with "Message contains both transfer encoding and content length". async-http sets both headers itself from the body, and its responses from real servers don't include them either.

    Thanks to Tim Mertens

  • Record requests made with curb's http_patch as PATCH requests with their body (#1112)

    curb has http_patch since 1.0.8. WebMock recorded such a request as a GET, or as a POST after post_body=, so a PATCH stub never matched it.

    Thanks to Andy Williams

  • Record a curb request sent without a body as having none, even after an earlier http_post or http_patch call with a body on the same Curl::Easy object

    For example, after c.http_post("a=1"), c.reset and c.http(:POST), the second request was recorded with the body a=1, so a stub for that body matched it.

3.31.0

  • Return the contents of a File or Pathname body given to to_return_json, or returned by its body lambda, instead of encoding the object as a JSON string (#1119)

    The file is read and closed as it is for to_return: when the stub is declared, or on each request when it comes from a lambda.

    Thanks to Alex

  • Match HTTP methods given as a string or in upper case, as in stub_request("get", ...), a_request("GET", ...) or assert_requested("post", ...) (#821)

    Before, such a method never matched, so the stub never applied and negative expectations like assert_not_requested("get", ...) always passed. A test that passed only because of this can now fail.

    The method of a request is now always a lower case Symbol too. A request made with an upper case method, as Typhoeus does with method: :POST, now matches a :post stub, and callbacks and with blocks see :post.

    Thanks to Euisan Kim

3.30.0

  • Allow narrowing an RSpec expectation on a stub with with, as in expect(stub).to have_been_requested.once.with(body: "abc") (#1128)

    The expectation counts only the requests that match both the stub and the conditions given to with. The stub itself does not change.

    Thanks to Sébastien S.

  • Show the JSON body hint for expectations narrowed with with too, and no longer show it when a block is given to the stub or expectation, since checking would mean calling the block

... (truncated)

Changelog

Sourced from webmock's changelog.

3.32.0

  • Make a Net::HTTP object created while WebMock was enabled behave like any other Net::HTTP object after WebMock.disable! (#1067)

    Such an object, like a connection cached by net-http-persistent or by Capybara with Selenium, used to raise ArgumentError on start or a stubbed request, and WebMock::NetConnectNotAllowedError on any other request, after WebMock was disabled. It now sends real requests until WebMock is enabled again.

    Thanks to Mike Taylor and James Rodovich

  • Connect again when a request is retried on a Net::HTTP object that WebMock started without connecting and whose first real connection failed

    Such a retry used to raise NoMethodError (undefined method closed? for nil). It now tries to connect again, and raises the connection error if that fails too.

  • Drop the Transfer-Encoding header from stubbed async-http responses, as WebMock already does with Content-Length (#1044)

    A stub with a Transfer-Encoding header, such as chunked, used to fail with "Message contains both transfer encoding and content length". async-http sets both headers itself from the body, and its responses from real servers don't include them either.

    Thanks to Tim Mertens

  • Record requests made with curb's http_patch as PATCH requests with their body (#1112)

    curb has http_patch since 1.0.8. WebMock recorded such a request as a GET, or as a POST after post_body=, so a PATCH stub never matched it.

    Thanks to Andy Williams

  • Record a curb request sent without a body as having none, even after an earlier http_post or http_patch call with a body on the same Curl::Easy object

    For example, after c.http_post("a=1"), c.reset and c.http(:POST), the second request was recorded with the body a=1, so a stub for that body matched it.

3.31.0

  • Return the contents of a File or Pathname body given to to_return_json, or returned by its body lambda, instead of encoding the object as a JSON string (#1119)

    The file is read and closed as it is for to_return: when the stub is declared, or on each request when it comes from a lambda.

    Thanks to Alex

  • Match HTTP methods given as a string or in upper case, as in stub_request("get", ...), a_request("GET", ...) or assert_requested("post", ...) (#821)

    Before, such a method never matched, so the stub never applied and negative expectations like assert_not_requested("get", ...) always passed. A test that passed only because of this can now fail.

    The method of a request is now always a lower case Symbol too. A request made with an upper case method, as Typhoeus does with method: :POST, now matches a :post stub, and callbacks and with blocks see :post.

    Thanks to Euisan Kim

3.30.0

  • Allow narrowing an RSpec expectation on a stub with with, as in expect(stub).to have_been_requested.once.with(body: "abc") (#1128)

    The expectation counts only the requests that match both the stub and the conditions given to with. The stub itself does not change.

... (truncated)

Commits
  • d72b73b Version 3.32.0
  • 8724c9f Clear the curb request body after each perform
  • 8115e09 Tidy the curb body check and the async-http chunked spec
  • 8a251bf Override curb's http_patch only where curb has it
  • 6cb5caa Merge pull request #1112 from sobakasu/feature/curb-http-patch
  • f556b9a Drop every Transfer-Encoding header from async-http stubs
  • 03c53c2 Merge pull request #1044 from tmertens/async_http_client_adapter_fix_chunking
  • 918003e Check that start connects for real after WebMock is disabled
  • b7b334b Close a real Net::HTTP connection when a stub answers instead
  • 70eadef Connect again when a request follows a failed real connection
  • 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 this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor 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)

Bumps [webmock](https://github.com/bblimke/webmock) from 3.26.4 to 3.32.0.
- [Release notes](https://github.com/bblimke/webmock/releases)
- [Changelog](https://github.com/bblimke/webmock/blob/master/CHANGELOG.md)
- [Commits](bblimke/webmock@v3.26.4...v3.32.0)

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

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 Oct 17, 2026
@greptile-apps

greptile-apps Bot commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

PR author is in the excluded authors list.

@dependabot @github

dependabot Bot commented on behalf of github Oct 24, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #183.

@dependabot dependabot Bot closed this Oct 24, 2026
@dependabot
dependabot Bot deleted the dependabot/bundler/webmock-3.32.0 branch October 24, 2026 09:03
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