From d88b7ea53005dc7a1e1abeb6762e9ae2eb004944 Mon Sep 17 00:00:00 2001 From: drbrain Date: Mon, 29 Jun 2009 23:44:48 +0000 Subject: [PATCH] summary is required in a valid gemspec, fixes gem list -d git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ tool/instruby.rb | 8 +++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 1b665b99b1..6849185ba5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Tue Jun 30 08:42:34 2009 Eric Hodel + + * tool/instruby.rb: summary is required in a .gemspec. + Tue Jun 30 01:35:12 2009 Yuki Sonoda (Yugui) * tool/strip-rdocs.rb: supports QT style doxy-comments. diff --git a/tool/instruby.rb b/tool/instruby.rb index 26f75bbbf6..400da83ee1 100755 --- a/tool/instruby.rb +++ b/tool/instruby.rb @@ -521,7 +521,13 @@ install?(:ext, :comm, :gem) do 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