diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-06-24 01:45:41 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-06-24 01:45:41 +0000 |
commit | 27d345dff4cca902cc4d61057d892aca5fd2d936 (patch) | |
tree | cfbc09dad8d943a6e42ac65b198f1e8a324ecb4b | |
parent | 204a83f5f3a3167815a1439e7e6652a7eec934f2 (diff) | |
download | ruby-27d345dff4cca902cc4d61057d892aca5fd2d936.tar.gz |
* 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-- | .gitignore | 3 | ||||
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | gems/bundled_gems | 2 | ||||
-rwxr-xr-x | tool/make-snapshot | 8 |
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 @@ -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" |