1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[rubygems/rubygems] Remove now unneeded code

We patch `net-http-persistent` to not autoload `openssl`.

https://github.com/rubygems/rubygems/commit/757dec3cf2
This commit is contained in:
David Rodríguez 2020-07-11 11:16:19 +02:00 committed by Hiroshi SHIBATA
parent ea8f7d4a81
commit 6eb89f8637
Notes: git 2020-07-31 21:08:14 +09:00

View file

@ -1,12 +1,5 @@
# frozen_string_literal: true
# We forcibly require OpenSSL, because net/http/persistent will only autoload
# it. On some Rubies, autoload fails but explicit require succeeds.
begin
require "openssl"
rescue LoadError
# some Ruby builds don't have OpenSSL
end
module Bundler
module Persistent
module Net