bundle-new/lib/bundler/vendored_persistent.rb

12 lines
359 B
Ruby
Raw Permalink Normal View History

2019-10-06 15:45:34 +00:00
# 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
vendor = File.expand_path('../vendor', __FILE__)
$:.unshift(vendor) unless $:.include?(vendor)
require 'net/http/persistent'