aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler/vendored_persistent.rb
blob: ef404f35d59b812999143dcf5c9d93cd25cb0782 (plain)
1
2
3
4
5
6
7
8
9
10
11
# 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"