Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency webmock to v3.24.0 #43

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Sep 26, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
webmock (changelog) '3.18.1' -> '3.24.0' age adoption passing confidence

Release Notes

bblimke/webmock (webmock)

v3.24.0

Compare Source

  • Ignore parsing errors when parsing invalid JSON or XML body to match against body pattern #​1066

    Thanks to Christian Schmidt

  • Added support for mocked HTTP::Connection#finished_request? method #​1065

    Thanks to Christian Schmidt

  • Detect if Patron is loaded by checking if Patron::Session constant is defined #​1068

    Thanks to Rodrigo Argumedo

  • Raising an ArgumentError when uri is passed as a Pathname object to stub_request or request expectation declaration.

  • Dropped support for em-http-request on Ruby 3.4. The current version of em-http-request (1.1.7) is incompatible with Ruby 3.4 due to an unresolved issue (https://github.com/igrigorik/em-http-request/issues/365). Support for em-http-request will be re-enabled once the compatibility issue is resolved.

    Thanks to Christian Schmidt

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 PR #​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://redirect.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://redirect.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: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

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


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

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot changed the title Update dependency webmock to v3.23.1 Update dependency webmock to v3.24.0 Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants