1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
drbrain 2009-06-29 23:44:48 +00:00
parent cbb56c7514
commit d88b7ea530
2 changed files with 11 additions and 1 deletions

View file

@ -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.

View file

@ -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