ruby-changes:46716
From: nobu <ko1@a...>
Date: Sun, 21 May 2017 17:30:56 +0900 (JST)
Subject: [ruby-changes:46716] nobu:r58831 (trunk): downloader.rb: utilize dir argument
nobu 2017-05-21 17:30:50 +0900 (Sun, 21 May 2017) New Revision: 58831 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58831 Log: downloader.rb: utilize dir argument * tool/downloader.rb (Downloader::RubyGems.download): utilize `dir` argument of Downloader.download. Modified files: trunk/tool/downloader.rb Index: tool/downloader.rb =================================================================== --- tool/downloader.rb (revision 58830) +++ tool/downloader.rb (revision 58831) @@ -62,8 +62,7 @@ class Downloader https://github.com/ruby/ruby/blob/trunk/tool/downloader.rb#L62 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/