summaryrefslogtreecommitdiff
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
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
-rw-r--r--.gitignore3
-rw-r--r--ChangeLog6
-rw-r--r--gems/bundled_gems2
-rwxr-xr-xtool/make-snapshot8
4 files changed, 19 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e5ca7fc248..694de9a59b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -131,6 +131,9 @@ y.tab.c
# /ext/tk/
/ext/tk/config_list
+# /gems
+/gems/*.gem
+
# /spec/
/spec/mspec
/spec/rubyspec
diff --git a/ChangeLog b/ChangeLog
index 78d4ed031c..34745a3297 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Tue Jun 24 10:40:52 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
+
+ * tool/make-snapshot: download bundle gems when package making.
+ [Feature #9852][ruby-core:62676]
+ * gems/bundled_gems: listed bundled gems for Ruby 2.2.
+
Tue Jun 24 10:20:35 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
* tool/downloader.rb: make Downloader class to general download utility.
diff --git a/gems/bundled_gems b/gems/bundled_gems
new file mode 100644
index 0000000000..2038d29275
--- /dev/null
+++ b/gems/bundled_gems
@@ -0,0 +1,2 @@
+test-unit 2.5.5
+minitest 5.3.4
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"