From 61c27325d7f7812719cb11048221255dc42b8fea Mon Sep 17 00:00:00 2001 From: Mitsuhiro Shibuya Date: Sun, 10 Nov 2024 15:02:08 +0900 Subject: [PATCH] Custom WebMock matcher no longer needed for ssrf_filter 1.2.0 Refs. https://github.com/arkadiyt/ssrf_filter/pull/73 --- spec/spec_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 578bf961c..e5bafbec1 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -139,7 +139,7 @@ def inspect def stub_request(method, uri) uri = URI.parse(uri) if uri.is_a?(String) - if uri.is_a?(URI) + if uri.is_a?(URI) && Gem::Version.new(SsrfFilter::VERSION) < Gem::Version.new('1.2.0') super method, Matcher.new(uri) else super