From 27d345dff4cca902cc4d61057d892aca5fd2d936 Mon Sep 17 00:00:00 2001 From: hsbt Date: Tue, 24 Jun 2014 01:45:41 +0000 Subject: * 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 --- tool/make-snapshot | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tool/make-snapshot') 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" -- cgit v1.2.3