diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-05-21 08:30:50 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-05-21 08:30:50 +0000 |
commit | 70b995768997ace36b44d9ad6496a8ed6a2c56a5 (patch) | |
tree | 35c0102d27ffd441273b8ad5224779991ed35553 /tool | |
parent | b4c20088173f4d8b46c108867b227d2a2c90a34c (diff) | |
download | ruby-70b995768997ace36b44d9ad6496a8ed6a2c56a5.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.rb | 3 |
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 |