From 37f17d29e090f99eed5933232e174648d21b1a42 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Tue, 19 Nov 2024 12:23:04 +0900 Subject: [PATCH] Restore HTTPSession constant for backward compatibility --- lib/net/http.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/net/http.rb b/lib/net/http.rb index e6d1bb0..e97628e 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -738,6 +738,12 @@ class HTTP < Protocol rescue LoadError HAVE_ZLIB=false end + + # for backward compatibility until Ruby 3.5 + # https://bugs.ruby-lang.org/issues/20900 + # https://github.com/bblimke/webmock/pull/1081 + HTTPSession = HTTP + deprecate_constant :HTTPSession # :startdoc: # Returns +true+; retained for compatibility.