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

vendor = File.expand_path("../vendor", __FILE__)
$:.unshift(vendor) unless $:.include?(vendor)
require "net/http/persistent"