Permalink
Browse files

Merge pull request #95 from ddollar/description

make sure we have a description
  • Loading branch information...
2 parents dbf311c + 3e00e95 commit bc9cae73dca068aafabbb15cdb19dd2b759b0a82 @jordansissel committed Aug 20, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/fpm/source/gem.rb
View
@@ -85,6 +85,9 @@ def get_metadata
self[:architecture] = "all"
end
+ # make sure we have a description
+ self[:description] = [ self[:description], self[:summary], "N/A" ].detect { |t| !t.strip == "" }
+
self[:dependencies] = []
spec.runtime_dependencies.map do |dep|
# rubygems 1.3.5 doesn't have 'Gem::Dependency#requirement'

0 comments on commit bc9cae7

Please sign in to comment.