[前][次][番号順一覧][スレッド一覧]

ruby-changes:34455

From: hsbt <ko1@a...>
Date: Tue, 24 Jun 2014 10:45:48 +0900 (JST)
Subject: [ruby-changes:34455] hsbt:r46536 (trunk): * tool/make-snapshot: download bundle gems when package making.

hsbt	2014-06-24 10:45:41 +0900 (Tue, 24 Jun 2014)

  New Revision: 46536

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46536

  Log:
    * tool/make-snapshot: download bundle gems when package making.
      [Feature #9852][ruby-core:62676]
    * gems/bundled_gems: listed bundled gems for Ruby 2.2.

  Added directories:
    trunk/gems/
  Added files:
    trunk/gems/bundled_gems
  Modified files:
    trunk/.gitignore
    trunk/ChangeLog
    trunk/tool/make-snapshot
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 46535)
+++ ChangeLog	(revision 46536)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Jun 24 10:40:52 2014  SHIBATA Hiroshi  <shibata.hiroshi@g...>
+
+	* 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@g...>
 
 	* tool/downloader.rb: make Downloader class to general download utility.
Index: gems/bundled_gems
===================================================================
--- gems/bundled_gems	(revision 0)
+++ gems/bundled_gems	(revision 46536)
@@ -0,0 +1,2 @@ https://github.com/ruby/ruby/blob/trunk/gems/bundled_gems#L1
+test-unit 2.5.5
+minitest 5.3.4
Index: tool/make-snapshot
===================================================================
--- tool/make-snapshot	(revision 46535)
+++ tool/make-snapshot	(revision 46536)
@@ -277,6 +277,14 @@ def package(rev, destdir) https://github.com/ruby/ruby/blob/trunk/tool/make-snapshot#L277
     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"
Index: .gitignore
===================================================================
--- .gitignore	(revision 46535)
+++ .gitignore	(revision 46536)
@@ -131,6 +131,9 @@ y.tab.c https://github.com/ruby/ruby/blob/trunk/.gitignore#L131
 # /ext/tk/
 /ext/tk/config_list
 
+# /gems
+/gems/*.gem
+
 # /spec/
 /spec/mspec
 /spec/rubyspec

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]