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.
3.21.2 (from changelog)
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.
Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.
All Depfu comment commands
@depfu rebase
Rebases against your default branch and redoes this update
@depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@depfu cancel merge
Cancels automatic merging of this PR
@depfu close
Closes this PR and deletes the branch
@depfu reopen
Restores the branch and reopens this PR (if it's closed)
@depfu pause
Ignores all future updates for this dependency and closes this PR
@depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)
Here is everything you need to know about this update. Please take a good look at what changed and the test results before merging this pull request.
What changed?
✳️ webmock (3.20.0 → 3.23.0) · Repo · Changelog
Release Notes
3.22.0 (from changelog)
3.21.2 (from changelog)
3.21.1 (from changelog)
3.21.0 (from changelog)
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 20 commits:
Version 3.23.0
Fixed CI badge.
Fixed HTTP.rb adapter, to allow streaming real responses, when WebMock is enabled.
Use `require_relative' instead of `require`
Version 3.22.0
Since `webmock_responses` and `webmock_request_signatures` in HTTPClient adapter are now thread-local, there is no need to synchronize on mutex in order to access them.
Revert "Revert "Merge pull request #300 from tbeauvais/httpclient_thread_safe""
Version 3.21.2
Fixed type checking in WebMock::Response#assert_valid_body! to correctly identify Hash objects and improved error message.
Updated the list of contributors.
Merge pull request #1016 from spikeheap/master
Version 3.21.1
The stubbed Net::HTTPResponse#uri now returns request.uri, aligning it with the behavior of an actual Net::HTTPResponse.
Version 3.21.0
Merge pull request #1050 from mkmba-nz/webmock_sig_uri_after_filters
Merge pull request #1049 from etiennebarrie/dont-use-deprecated-rack-version
httpclient: include a uri modifying filter in spec tests.
httpclient_adapter: use uri after filters when building req signature
Show deprecation warnings
Don't use deprecated Rack::VERSION in Rack 3
↗️ crack (indirect, 0.4.6 → 1.0.0) · Repo · Changelog
Commits
See the full diff on Github. The new version differs by 1 commit:
Bump version to v1.0.0 to indicate that the gem is stable (#80)
Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with
@depfu rebase
.All Depfu comment commands