Skip to content

Commit

Permalink
[rubygems/rubygems] Keep compatiblity for RG 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt authored and matzbot committed Feb 26, 2024
1 parent 8b22198 commit c342726
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
8 changes: 6 additions & 2 deletions lib/bundler/vendored_net_http.rb
Expand Up @@ -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
8 changes: 6 additions & 2 deletions lib/bundler/vendored_timeout.rb
Expand Up @@ -3,6 +3,10 @@
begin
require "rubygems/vendored_timeout"
rescue LoadError
require "timeout"
Gem::Timeout = Timeout
begin
require "rubygems/timeout"
rescue LoadError
require "timeout"
Gem::Timeout = Timeout
end
end

0 comments on commit c342726

Please sign in to comment.