support ruby 1.8

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2014-12-24 01:29:03 +00:00
parent a54aae45a6
commit 943a05d234

View File

@ -8,8 +8,9 @@ class Downloader
end end
class RubyGems < self class RubyGems < self
def self.download(name, *rest) def self.download(url, name, dir = nil, ims = true, options = {})
super("https://rubygems.org/downloads/#{name}", name, *rest, :ssl_ca_cert => Dir.glob(File.expand_path("../lib/rubygems/ssl_certs/*.pem", File.dirname(__FILE__)))) 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
end end