From 9c18b6cdcaf1cee8240337b1f851b5ce20e2ad4c Mon Sep 17 00:00:00 2001 From: Bartosz Blimke Date: Wed, 21 Feb 2024 04:46:46 +0100 Subject: [PATCH] Version 3.22.0 --- CHANGELOG.md | 5 +++++ lib/webmock/version.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6438e597..f16fe083 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +# 3.22.0 + + * Addressed an issue in the HTTPClient adapter where memoized stubbed responses and memoized request_signatures were incorrectly persisted between subsequent requests ([#1019](https://github.com/bblimke/webmock/issues/1019)). The implementation of a more robust thread-safety solution by [Tom Beauvais](https://github.com/tbeauvais) in [PR #300](https://github.com/bblimke/webmock/pull/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 * 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. diff --git a/lib/webmock/version.rb b/lib/webmock/version.rb index b16ee933..b51dfdd0 100644 --- a/lib/webmock/version.rb +++ b/lib/webmock/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module WebMock - VERSION = '3.21.2' unless defined?(::WebMock::VERSION) + VERSION = '3.22.0' unless defined?(::WebMock::VERSION) end