summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-24 01:45:41 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-06-24 01:45:41 +0000
commit27d345dff4cca902cc4d61057d892aca5fd2d936 (patch)
treecfbc09dad8d943a6e42ac65b198f1e8a324ecb4b /tool
parent204a83f5f3a3167815a1439e7e6652a7eec934f2 (diff)
* tool/make-snapshot: download bundle gems when package making.
[Feature #9852][ruby-core:62676] * gems/bundled_gems: listed bundled gems for Ruby 2.2. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rwxr-xr-xtool/make-snapshot8
1 files changed, 8 insertions, 0 deletions
diff --git a/tool/make-snapshot b/tool/make-snapshot
index a4f0dadb37..fbf96fcbbf 100755
--- a/tool/make-snapshot
+++ b/tool/make-snapshot
@@ -277,6 +277,14 @@ def package(rev, destdir)
else
system("#{YACC} -o parse.c parse.y")
end
+ if File.file?('gems/bundled_gems') && bundled_gems = File.read('gems/bundled_gems')
+ 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")
+ end
+ end
+ end
FileUtils.rm_rf(clean)
unless $?.success?
puts " failed"