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

ruby-changes:12219

From: drbrain <ko1@a...>
Date: Tue, 30 Jun 2009 08:45:11 +0900 (JST)
Subject: [ruby-changes:12219] Ruby:r23904 (trunk): summary is required in a valid gemspec, fixes gem list -d

drbrain	2009-06-30 08:44:48 +0900 (Tue, 30 Jun 2009)

  New Revision: 23904

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

  Log:
    summary is required in a valid gemspec, fixes gem list -d

  Modified files:
    trunk/ChangeLog
    trunk/tool/instruby.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 23903)
+++ ChangeLog	(revision 23904)
@@ -1,3 +1,7 @@
+Tue Jun 30 08:42:34 2009  Eric Hodel  <drbrain@s...>
+
+	* tool/instruby.rb: summary is required in a .gemspec.
+
 Tue Jun 30 01:35:12 2009  Yuki Sonoda (Yugui)  <yugui@y...>
 
 	* tool/strip-rdocs.rb: supports QT style doxy-comments.
Index: tool/instruby.rb
===================================================================
--- tool/instruby.rb	(revision 23903)
+++ tool/instruby.rb	(revision 23904)
@@ -521,7 +521,13 @@
     version = open(lib) {|f| f.find {|s| /^\s*\w*VERSION\s*=(?!=)/ =~ s}} or next
     version = version.split(%r"=\s*", 2)[1].strip
     open_for_install(File.join(destdir, "#{name}.gemspec"), $data_mode) do |f|
-      "Gem::Specification.new {|s| s.name, s.version = #{name.dump}, #{version}}\n"
+      <<-GEMSPEC
+Gem::Specification.new do |s|
+  s.name = #{name.dump}
+  s.version = #{version.dump}
+  s.summary = "This #{name} is bundled with Ruby"
+end
+      GEMSPEC
     end
   end
 end

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

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