diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-12-24 01:29:03 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-12-24 01:29:03 +0000 |
commit | 943a05d234af98b1dd531c446a80ffd573c0d22f (patch) | |
tree | fb2216dd23ff03f5ef0186620163957278057248 /tool | |
parent | a54aae45a6bb488bed497e3421a75720dab9249b (diff) | |
download | ruby-943a05d234af98b1dd531c446a80ffd573c0d22f.tar.gz |
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')
-rw-r--r-- | tool/downloader.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tool/downloader.rb b/tool/downloader.rb index 19a5671598..51ad9e4833 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 |