Skip to content

Bump webmock from 3.34.0 to 3.35.0 - #170

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

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

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 23, 2026

Copy link
Copy Markdown
Contributor

Bumps webmock from 3.34.0 to 3.35.0.

Release notes

Sourced from webmock's releases.

3.35.0

  • Fix get_file with Patron 1.1 (#1147)

    Previously, with Patron 1.1, get_file ignored stubs: it made a real request and wrote the real response to the file, even when real connections were disabled.

    With Patron 1.1, a stubbed get_file returns a response with a nil body, as Patron does. Read the body from the file.

    Thanks to Bob Aman

  • Stub and block streamed requests with Patron 1.1 (#1147)

    Previously, WebMock did not see requests made with Session#stream or the get_stream, post_stream, put_stream and patch_stream methods added in Patron 1.1, so they always reached the network.

    A stubbed streamed request yields a stream that reads the stubbed body, and returns a Patron::TransferStats. After-request callbacks run before the block, so they also run when the block exits early. For a real streamed request, callbacks receive the status and headers without the body.

    Thanks to Bob Aman

  • Fix Patron digest authentication when real requests are allowed

    Previously, when a Patron session had a username and password and a request reached the network, WebMock added an Authorization: Basic ... header to it. A session with auth_type: :digest sent the password in that header instead of waiting for the server's digest challenge.

  • Fix a deprecation warning with Patron 1.0 and later (#1142)

    Previously, the first stubbed request printed Patron::Response.new with positional arguments is deprecated.

    Thanks to Julik Tarkhanov

  • Fix require "webmock" failing next to other libraries that define HTTP::VERSION (#1139)

    Previously, WebMock loaded its adapter for the http gem whenever a top-level HTTP with a VERSION was defined. Other libraries define one too, such as the gem published on RubyGems as http.rb (a different gem from http, which is also called http.rb). With such a library installed, require "webmock" raised NameError: undefined method 'perform' for class 'HTTP::Client'.

    Thanks to thoran

  • Fix matching of indexed params with more than ten entries (#1141)

    Previously, WebMock ordered indexed params such as a[0] to a[10] as text, so a[10] came right after a[1]. A stub with the values in index order, such as with(body: {"a" => [...]}), did not match a form body with more than ten indexed values, or a query with more than ten indexed hashes.

    If a stub lists such values in the old order, for example one copied from WebMock's suggested stub, put them in index order.

    Thanks to Andrii Furmanets

Changelog

Sourced from webmock's changelog.

3.35.0

  • Fix get_file with Patron 1.1 (#1147)

    Previously, with Patron 1.1, get_file ignored stubs: it made a real request and wrote the real response to the file, even when real connections were disabled.

    With Patron 1.1, a stubbed get_file returns a response with a nil body, as Patron does. Read the body from the file.

    Thanks to Bob Aman

  • Stub and block streamed requests with Patron 1.1 (#1147)

    Previously, WebMock did not see requests made with Session#stream or the get_stream, post_stream, put_stream and patch_stream methods added in Patron 1.1, so they always reached the network.

    A stubbed streamed request yields a stream that reads the stubbed body, and returns a Patron::TransferStats. After-request callbacks run before the block, so they also run when the block exits early. For a real streamed request, callbacks receive the status and headers without the body.

    Thanks to Bob Aman

  • Fix Patron digest authentication when real requests are allowed

    Previously, when a Patron session had a username and password and a request reached the network, WebMock added an Authorization: Basic ... header to it. A session with auth_type: :digest sent the password in that header instead of waiting for the server's digest challenge.

  • Fix a deprecation warning with Patron 1.0 and later (#1142)

    Previously, the first stubbed request printed Patron::Response.new with positional arguments is deprecated.

    Thanks to Julik Tarkhanov

  • Fix require "webmock" failing next to other libraries that define HTTP::VERSION (#1139)

    Previously, WebMock loaded its adapter for the http gem whenever a top-level HTTP with a VERSION was defined. Other libraries define one too, such as the gem published on RubyGems as http.rb (a different gem from http, which is also called http.rb). With such a library installed, require "webmock" raised NameError: undefined method 'perform' for class 'HTTP::Client'.

    Thanks to thoran

  • Fix matching of indexed params with more than ten entries (#1141)

    Previously, WebMock ordered indexed params such as a[0] to a[10] as text, so a[10] came right after a[1]. A stub with the values in index order, such as with(body: {"a" => [...]}), did not match a form body with more than ten indexed values, or a query with more than ten indexed hashes.

    If a stub lists such values in the old order, for example one copied from WebMock's suggested stub, put them in index order.

    Thanks to Andrii Furmanets

Commits
  • 596b1fb Version 3.35.0
  • e566055 Tidy #1139 and #1141 and fix indexes that tie as numbers
  • 536c0c4 Merge pull request #1141 from afurm/fix-indexed-params-numeric-order
  • b5f065c Merge pull request #1139 from thoran/http-rb-adapter-needs-http-client
  • 47fde72 Keep the Patron Basic auth header out of real requests
  • f148911 Simplify the Patron adapter and its specs
  • 647943f Return a nil body from a stubbed Patron 1.1 get_file
  • 6bf3195 Stub Patron 1.1 get_file through download, not request
  • 975d939 Merge pull request #1147 from sporkmonger/patron-stream-stubs
  • df8fa32 Merge pull request #1142 from julik/patron-1.0-keyword-response
  • 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.34.0 to 3.35.0.
- [Release notes](https://github.com/bblimke/webmock/releases)
- [Changelog](https://github.com/bblimke/webmock/blob/master/CHANGELOG.md)
- [Commits](bblimke/webmock@v3.34.0...v3.35.0)

---
updated-dependencies:
- dependency-name: webmock
  dependency-version: 3.35.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 Nov 23, 2026
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