summaryrefslogtreecommitdiff
path: root/lib/rubygems.rb
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2019-11-12 01:25:42 +0900
committerYusuke Endoh <mame@ruby-lang.org>2019-11-12 01:47:18 +0900
commitb72eda3c59cd0a15ed3536a3c0cd8aebd225f16b (patch)
treeb6c70b84eeafe87ff085ac0411763cba46baf72d /lib/rubygems.rb
parent14b5c4cb66175553bda1cab70715d54fe46bffc7 (diff)
lib/rubygems.rb: Suppress "Resolving dependencies..."
And suppress "Leaked file descriptor" again.
Diffstat (limited to 'lib/rubygems.rb')
-rw-r--r--lib/rubygems.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/rubygems.rb b/lib/rubygems.rb
index 8883936..c780c79 100644
--- a/lib/rubygems.rb
+++ b/lib/rubygems.rb
@@ -1214,13 +1214,12 @@ An Array (#{env.inspect}) was passed in from #{caller[3]}
Gem::DefaultUserInteraction.use_ui(ui) do
require "bundler"
begin
- @gemdeps = Bundler.setup
- ensure
- if Gem::DefaultUserInteraction.ui.is_a?(Gem::SilentUI)
- Gem::DefaultUserInteraction.ui.close
+ Bundler.ui.silence do
+ @gemdeps = Bundler.setup
end
+ ensure
+ Gem::DefaultUserInteraction.ui.close
end
- Bundler.ui = nil
@gemdeps.requested_specs.map(&:to_spec).sort_by(&:name)
end