summaryrefslogtreecommitdiff
path: root/lib/bundler/setup.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2019-12-18 14:53:19 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-12-18 14:53:19 +0900
commitefbc0d499c0dc5b74698418c76e58098c6c113e1 (patch)
tree006ae0b7dc322164a0b74549bc263f67494c70f9 /lib/bundler/setup.rb
parentfa7fa5c86b0674eca233922045e4d3dd4ee49cb7 (diff)
Merge bundler-2.1.1 from bundler/bundler
Diffstat (limited to 'lib/bundler/setup.rb')
-rw-r--r--lib/bundler/setup.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/bundler/setup.rb b/lib/bundler/setup.rb
index 70a0968f4b..27911dc1ad 100644
--- a/lib/bundler/setup.rb
+++ b/lib/bundler/setup.rb
@@ -19,4 +19,9 @@ if Bundler::SharedHelpers.in_bundle?
else
Bundler.ui.silence { Bundler.setup }
end
+
+ # We might be in the middle of shelling out to rubygems
+ # (RUBYOPT=-rbundler/setup), so we need to give rubygems the opportunity of
+ # not being silent.
+ Gem::DefaultUserInteraction.ui = nil
end