diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2017-02-01 14:52:08 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2017-02-14 20:35:47 +0900 |
commit | a78583c9c472d3e6b1b7e4c3e8e510141b6bab10 (patch) | |
tree | abc4d9d4de89a318f6985b8985a6c950f3f34d84 /lib/bundler/source | |
parent | 8c0cbf3c03a56b8cdfeaba2558c35f461608b287 (diff) | |
download | bundler-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/source')
-rw-r--r-- | lib/bundler/source/rubygems.rb | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/bundler/source/rubygems.rb b/lib/bundler/source/rubygems.rb index 1ff2f6c6ed..a56170be17 100644 --- a/lib/bundler/source/rubygems.rb +++ b/lib/bundler/source/rubygems.rb @@ -1,7 +1,6 @@ # frozen_string_literal: true require "uri" require "rubygems/user_interaction" -require "rubygems/spec_fetcher" module Bundler class Source |