зеркало из https://github.com/github/ruby.git
[rubygems/rubygems] Keep compatiblity for RG 3.5
https://github.com/rubygems/rubygems/commit/d004e36c44
This commit is contained in:
Родитель
8b22198ee9
Коммит
c342726568
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче