mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* tool/downloader.rb (Downloader::RubyGems.download): Gem::Security::*#ui= is
very new feature. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
48eb1aa542
commit
665ee6cd03
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ class Downloader
|
|||
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
|
||||
(policy = policy.dup).ui = Gem::SilentUI.new if policy.respond_to?(:'ui=')
|
||||
pkg = Gem::Package.new(file)
|
||||
pkg.security_policy = policy
|
||||
begin
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue