1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
hsbt 2014-06-24 01:45:41 +00:00
parent 204a83f5f3
commit 27d345dff4
4 changed files with 19 additions and 0 deletions

3
.gitignore vendored
View file

@ -131,6 +131,9 @@ y.tab.c
# /ext/tk/
/ext/tk/config_list
# /gems
/gems/*.gem
# /spec/
/spec/mspec
/spec/rubyspec

View file

@ -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.

2
gems/bundled_gems Normal file
View file

@ -0,0 +1,2 @@
test-unit 2.5.5
minitest 5.3.4

View file

@ -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"