summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-26 14:02:59 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-11-26 14:02:59 +0000
commit79f3b6b5cd489b0ad474fb38faf6dac2278c6adf (patch)
tree54da99eec6aebde7ccf6c2809e520cd07a6f712c /lib
parent08e1705eec3b48a120d7b74aaf2da2e1396bd6d9 (diff)
Do not load rubygems when disabled
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/setup.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bundler/setup.rb b/lib/bundler/setup.rb
index ac6a5bf861..0ab582c2a2 100644
--- a/lib/bundler/setup.rb
+++ b/lib/bundler/setup.rb
@@ -1,5 +1,7 @@
# frozen_string_literal: true
+return unless defined?(Gem)
+
require "bundler/shared_helpers"
if Bundler::SharedHelpers.in_bundle?