summaryrefslogtreecommitdiff
path: root/tool/downloader.rb
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-31 11:40:43 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-01-31 11:40:43 +0000
commit665ee6cd0356f09facdb5b218b5d1cf056d85811 (patch)
tree51b5bb4b07215ec6800b9d13fb50c06abe67aa45 /tool/downloader.rb
parent48eb1aa5421a6dd5d535729ba769615a30b0e1a1 (diff)
* 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
Diffstat (limited to 'tool/downloader.rb')
-rw-r--r--tool/downloader.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/downloader.rb b/tool/downloader.rb
index 1575612..c5f18f1 100644
--- a/tool/downloader.rb
+++ b/tool/downloader.rb
@@ -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