lib/cape/capistrano.rb in cape-1.5.0 vs lib/cape/capistrano.rb in cape-1.6.0
- old
+ new
@@ -62,10 +62,12 @@
def build_capistrano_description(task, options, &block)
return nil unless task[:description]
description = [task[:description]]
- description << '.' unless task[:description].end_with?('.')
+ unless task[:description].empty? || task[:description].end_with?('.')
+ description << '.'
+ end
unless (parameters = Array(task[:parameters])).empty?
noun = Util.pluralize('variable', parameters.length)
parameters_list = Util.to_list_phrase(parameters.collect(&:upcase))
singular = 'Rake task argument'