diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-06-29 23:44:48 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-06-29 23:44:48 +0000 |
commit | d88b7ea53005dc7a1e1abeb6762e9ae2eb004944 (patch) | |
tree | 4e1108ef363f4701fc24dd6d5675539da7b0190a | |
parent | cbb56c75145f6f4f7d1c12c28dd566cf5bbb7e33 (diff) | |
download | ruby-d88b7ea53005dc7a1e1abeb6762e9ae2eb004944.tar.gz |
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
-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 |