summaryrefslogtreecommitdiff
path: root/tool/downloader.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-17 06:55:20 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-17 06:55:20 +0000
commit3842ebb43d9e55e6578f885061d8c330a0afb90f (patch)
tree78ceaf21057359ec610f9cefb2a3ffb9b6a42492 /tool/downloader.rb
parent8d5bdaa6508dd4c469319f629471904d46adf6b5 (diff)
suppress alert warnings
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49295 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/downloader.rb')
-rw-r--r--tool/downloader.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/tool/downloader.rb b/tool/downloader.rb
index 7cd0db2..b28fcfb 100644
--- a/tool/downloader.rb
+++ b/tool/downloader.rb
@@ -47,8 +47,10 @@ class Downloader
file = under(dir, name)
super("#{$rubygems_schema}://rubygems.org/downloads/#{name}", file, nil, ims, options) or
return false
+ policy = Gem::Security::LowSecurity
+ (policy = policy.dup).ui = Gem::SilentUI.new
pkg = Gem::Package.new(file)
- pkg.security_policy = Gem::Security::LowSecurity
+ pkg.security_policy = policy
begin
pkg.verify
rescue Gem::Security::Exception => e