Update dependency webmock to v3.24.0 #43
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
'3.18.1'
->'3.24.0'
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
Added support for async-http version >= 0.65.0 PR
Thanks to Jacob Frautschi
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
v3.21.2
Compare Source
Corrected type checking in
WebMock::Response#assert_valid_body!
to accurately recognizeHash
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 ofto_return_json
method invocation.v3.19.0
Compare Source
Do not alter real (non-stubbed) request headers when handling em-http-request requests.
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 passingallow_localhost
option todisable_net_connect!
Thanks to Yuki Inoue
Optimized
normalize_headers
for performanceThanks 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.
This PR was generated by Mend Renovate. View the repository job log.