diff options
author | Hiroshi SHIBATA <[email protected]> | 2024-11-19 18:13:09 +0900 |
---|---|---|
committer | git <[email protected]> | 2024-11-19 09:19:16 +0000 |
commit | 716ea630dbd6cea62049a7a438d7d4f4f84d4aae (patch) | |
tree | f2bcd07e61460fb2ef9b00734a131c9854062da4 | |
parent | 811dfa7cb7b6f7acceffb542c781fbfc6466080c (diff) |
[ruby/net-http] Need to restore under the Net namespace
https://github.com/ruby/net-http/commit/4650f86981
-rw-r--r-- | lib/net/http.rb | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/net/http.rb b/lib/net/http.rb index 0029edd142..6eae1034d1 100644 --- a/lib/net/http.rb +++ b/lib/net/http.rb @@ -738,12 +738,6 @@ module Net #:nodoc: 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. @@ -2565,6 +2559,11 @@ module Net #:nodoc: alias_method :D, :debug 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 end require_relative 'http/exceptions' |