summaryrefslogtreecommitdiff
path: root/tool/downloader.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-24 01:29:03 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-24 01:29:03 +0000
commit943a05d234af98b1dd531c446a80ffd573c0d22f (patch)
treefb2216dd23ff03f5ef0186620163957278057248 /tool/downloader.rb
parenta54aae45a6bb488bed497e3421a75720dab9249b (diff)
support ruby 1.8
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/downloader.rb')
-rw-r--r--tool/downloader.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/tool/downloader.rb b/tool/downloader.rb
index 19a5671..51ad9e4 100644
--- a/tool/downloader.rb
+++ b/tool/downloader.rb
@@ -8,8 +8,9 @@ class Downloader
end
class RubyGems < self
- def self.download(name, *rest)
- super("https://rubygems.org/downloads/#{name}", name, *rest, :ssl_ca_cert => Dir.glob(File.expand_path("../lib/rubygems/ssl_certs/*.pem", File.dirname(__FILE__))))
+ def self.download(url, name, dir = nil, ims = true, options = {})
+ options[:ssl_ca_cert] = Dir.glob(File.expand_path("../lib/rubygems/ssl_certs/*.pem", File.dirname(__FILE__)))
+ super("https://rubygems.org/downloads/#{name}", name, dir, ims. options)
end
end