diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-09-23 11:56:30 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-09-23 11:56:30 +0000 |
commit | 0b5227b8bd47211575e8239a2d2763dd3db3a979 (patch) | |
tree | 0a566c1fd1131619cba3b228ec201dc196c645b1 /tool/make-snapshot | |
parent | c7cdc549fffc9ef6a2ef77841dc500d6ef2d087d (diff) | |
download | ruby-0b5227b8bd47211575e8239a2d2763dd3db3a979.tar.gz |
downloader.rb: shorthands for usual URI
* tool/downloader.rb (Downloader.uri_to_download): add shorthands
for commonly used URI.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/make-snapshot')
-rwxr-xr-x | tool/make-snapshot | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot index 63d67a9052..555870da31 100755 --- a/tool/make-snapshot +++ b/tool/make-snapshot @@ -224,8 +224,7 @@ def package(rev, destdir) rescue LoadError abort "Error!!! Copy 'downloader.rb' from 'tool' directory of the recent ruby repository!" end - url = "http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=%s;hb=HEAD" % conf - Downloader.download(url, conf, "tool") + Downloader.download(:gnu, conf, "tool") end File.open(clean.add("cross.rb"), "w") do |f| f.puts "Object.__send__(:remove_const, :CROSS_COMPILING) if defined?(CROSS_COMPILING)" @@ -283,7 +282,7 @@ def package(rev, destdir) bundled_gems.split("\n").map(&:split).each do |gem, ver| gem_name = "#{gem}-#{ver}.gem" unless File.file?("gems/#{gem_name}") - Downloader.download("https://rubygems.org/downloads/#{gem_name}", gem_name, "gems") + Downloader.download(:rubygems, gem_name, "gems") end end end |