aboutsummaryrefslogtreecommitdiffstats
path: root/tool
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-21 08:30:50 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-05-21 08:30:50 +0000
commit8d2159c13f824c142492d662a4d3ab2b68f2b4d3 (patch)
tree35c0102d27ffd441273b8ad5224779991ed35553 /tool
parent4af333b99e7945bdad10c69413601354dfc16bb9 (diff)
downloadruby-8d2159c13f824c142492d662a4d3ab2b68f2b4d3.tar.gz
downloader.rb: utilize dir argument
* tool/downloader.rb (Downloader::RubyGems.download): utilize `dir` argument of Downloader.download. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rw-r--r--tool/downloader.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/tool/downloader.rb b/tool/downloader.rb
index b2f561d82c..ba65f37871 100644
--- a/tool/downloader.rb
+++ b/tool/downloader.rb
@@ -62,8 +62,7 @@ class Downloader
options = options.dup
verify = options.delete(:verify) {Gem::VERSION >= "2.4."}
options[:ssl_ca_cert] = Dir.glob(File.expand_path("../lib/rubygems/ssl_certs/**/*.pem", File.dirname(__FILE__)))
- file = under(dir, name)
- super("https://rubygems.org/downloads/#{name}", file, nil, since, options) or
+ super("https://rubygems.org/downloads/#{name}", name, dir, since, options) or
return false
return true unless verify
end