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:
parent
204a83f5f3
commit
27d345dff4
4 changed files with 19 additions and 0 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -131,6 +131,9 @@ y.tab.c
|
||||||
# /ext/tk/
|
# /ext/tk/
|
||||||
/ext/tk/config_list
|
/ext/tk/config_list
|
||||||
|
|
||||||
|
# /gems
|
||||||
|
/gems/*.gem
|
||||||
|
|
||||||
# /spec/
|
# /spec/
|
||||||
/spec/mspec
|
/spec/mspec
|
||||||
/spec/rubyspec
|
/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>
|
Tue Jun 24 10:20:35 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
|
||||||
|
|
||||||
* tool/downloader.rb: make Downloader class to general download utility.
|
* tool/downloader.rb: make Downloader class to general download utility.
|
||||||
|
|
2
gems/bundled_gems
Normal file
2
gems/bundled_gems
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
test-unit 2.5.5
|
||||||
|
minitest 5.3.4
|
|
@ -277,6 +277,14 @@ def package(rev, destdir)
|
||||||
else
|
else
|
||||||
system("#{YACC} -o parse.c parse.y")
|
system("#{YACC} -o parse.c parse.y")
|
||||||
end
|
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)
|
FileUtils.rm_rf(clean)
|
||||||
unless $?.success?
|
unless $?.success?
|
||||||
puts " failed"
|
puts " failed"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue