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 /tool | |
parent | cbb56c75145f6f4f7d1c12c28dd566cf5bbb7e33 (diff) |
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
Diffstat (limited to 'tool')
-rwxr-xr-x | tool/instruby.rb | 8 |
1 files changed, 7 insertions, 1 deletions
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 |