summaryrefslogtreecommitdiff
path: root/lib/bundler/remote_specification.rb
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2017-02-01 14:52:08 +0900
committerKazuki Yamaguchi <k@rhe.jp>2017-02-14 20:35:47 +0900
commita78583c9c472d3e6b1b7e4c3e8e510141b6bab10 (patch)
treeabc4d9d4de89a318f6985b8985a6c950f3f34d84 /lib/bundler/remote_specification.rb
parent8c0cbf3c03a56b8cdfeaba2558c35f461608b287 (diff)
downloadbundler-a78583c9c472d3e6b1b7e4c3e8e510141b6bab10.tar.gz
Defer requiring rubygems/spec_fetcher until it becomes necessary
Avoid conflict between two versions of openssl gem on 'bundle exec' if a newer and non-default version of openssl gem is installed to the system. rubygems/spec_fetcher loads openssl through resolv and securerandom when running with Ruby <= 2.4. This is not a proper fix for #5235 as other standard libraries that Bundler currently loads will be gemified as well in Ruby >= 2.5, however, this will fix openssl's case. Reference: https://github.com/bundler/bundler/issues/5235 Fixes: https://github.com/ruby/openssl/issues/103
Diffstat (limited to 'lib/bundler/remote_specification.rb')
-rw-r--r--lib/bundler/remote_specification.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/bundler/remote_specification.rb b/lib/bundler/remote_specification.rb
index 112c7f97fe..944ff1adbd 100644
--- a/lib/bundler/remote_specification.rb
+++ b/lib/bundler/remote_specification.rb
@@ -1,6 +1,5 @@
# frozen_string_literal: true
require "uri"
-require "rubygems/spec_fetcher"
module Bundler
# Represents a lazily loaded gem specification, where the full specification