summaryrefslogtreecommitdiff
path: root/lib/bundler/vendored_net_http.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2024-02-07 18:46:17 +0900
committergit <svn-admin@ruby-lang.org>2024-02-26 22:04:08 +0000
commitc3427265687d008612179410009868b5ec10b116 (patch)
treedc4c0075cace19a9ade608155bf87891f7252258 /lib/bundler/vendored_net_http.rb
parent8b22198ee9baed58c4c7b578fb4cf133a8235ab8 (diff)
[rubygems/rubygems] Keep compatiblity for RG 3.5
https://github.com/rubygems/rubygems/commit/d004e36c44
Diffstat (limited to 'lib/bundler/vendored_net_http.rb')
-rw-r--r--lib/bundler/vendored_net_http.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/bundler/vendored_net_http.rb b/lib/bundler/vendored_net_http.rb
index 59f234a758..0dcabaa7d7 100644
--- a/lib/bundler/vendored_net_http.rb
+++ b/lib/bundler/vendored_net_http.rb
@@ -3,6 +3,10 @@
begin
require "rubygems/vendored_net_http"
rescue LoadError
- require "net/http"
- Gem::Net = Net
+ begin
+ require "rubygems/net/http"
+ rescue LoadError
+ require "net/http"
+ Gem::Net = Net
+ end
end