diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rwxr-xr-x | tool/instruby.rb | 8 |
2 files changed, 11 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Tue Jun 30 08:42:34 2009 Eric Hodel <drbrain@segment7.net> + + * tool/instruby.rb: summary is required in a .gemspec. + Tue Jun 30 01:35:12 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp> * 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 |