Skip to content

chore(deps): update dependency webmock to v3.23.1

renovate-runner requested to merge renovate/webmock-3.x into trunk

This MR contains the following updates:

Package Update Change
webmock (changelog) minor "3.18.1" -> "3.23.1"

Release Notes

bblimke/webmock (webmock)

v3.23.1

Compare Source

v3.23.0

Compare Source

  • Fixed HTTP.rb adapter to support streaming real responses when WebMock is enabled.

    Thanks to Viacheslav Nepomniashchikh for reporting and investigating this issue.

v3.22.0

Compare Source

  • Addressed an issue in the HTTPClient adapter where memoized stubbed responses and memoized request_signatures were incorrectly persisted between subsequent requests (#​1019). The implementation of a more robust thread-safety solution by Tom Beauvais in MR #​300 not only resolved the memoization problem but also enhanced the overall thread safety of the adapter. This update ensures that stubbed responses and request signatures are correctly isolated to individual requests, improving both consistency and thread safety.

v3.21.2

Compare Source

  • Corrected type checking in WebMock::Response#assert_valid_body! to accurately recognize Hash objects. Additionally, improved the clarity of the error message for unsupported body types, guiding users towards proper usage.

    Thanks to Jake Robb for reporting.

v3.21.1

Compare Source

  • The stubbed Net::HTTPResponse#uri now returns request.uri, aligning it with the behavior of an actual Net::HTTPResponse.

    Thanks to Abe Voelker for reporting and to Victor Maslov and Gio Lodi for the suggested solution.

v3.21.0

Compare Source

  • Don't use deprecated Rack::VERSION for Rack >= 3

    Thanks to Étienne Barrié

    • Updated HTTPClient adapter, to build request signature using the URI after filters have been applied.

      Thanks to Matt Brown

v3.20.0

Compare Source

  • Optimised EmHttpRequestAdapter performance.

    Thanks to Ricardo Trindade

    • Removed runtime dependency on base64.

      Thanks to Earlopain

    • Typhoeus::Response objects constructed from stubbed responses now have all timing attributes set to 0.0.

      Thanks to James Brown

    • Optimised WebMock::Util::Headers by removing redundant freeze invocations.

      Thanks to Kazuhiro NISHIYAMA

    • The default stubbed response body, which is an empty String, is unfrozen.

    • When building signatures of requests made by http.rb, the request body encoding is now preserved.

v3.19.1

Compare Source

  • When passing a Proc or lambda as response body to to_return_json, the body is evaluated at the time of request and not at the time of to_return_json method invocation.

    Thanks to [Jason Karns](https://github.com/jasonkarns) for reporting.

v3.19.0

Compare Source

  • Do not alter real (non-stubbed) request headers when handling em-http-request requests.

    Thanks to [Yoann Lecuyer](https://github.com/ylecuyer)
    • Fix matching stubs with HashExcludingMatcher

      Thanks to Lucas Arnaud

    • Remove development and test files from the gem package

      Thanks to Orien Madgwick

    • Fix supported http client gem version checks.

      Thanks to Marc Rohloff and Roman Stražanec

    • Non-string body passed to #to_return_json is now converted to JSON string.

      Thanks to inkstak

    • [::1] is recognised as localhost e.g when passing allow_localhost option to disable_net_connect!

      Thanks to Yuki Inoue

    • Optimized normalize_headers for performance

      Thanks to Brandon Weaver

    • Added Frozen string literal to files to optimise memory usage

      Thanks to Josh Nichols


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Never, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this MR and you won't be reminded about this update again.


  • If you want to rebase/retry this MR, check this box

This MR has been generated by Renovate Bot.

Merge request reports