lib/softcover/commands/publisher.rb in softcover-0.9.7 vs lib/softcover/commands/publisher.rb in softcover-0.9.8
- old
+ new
@@ -84,10 +84,12 @@
def process_screencasts
current_book.process_screencasts
end
def exit_with_message
- puts "Processed #{current_book.processed_screencasts.size} screencasts."
+ number = current_book.processed_screencasts.size
+ screencasts = number == 1 ? 'screencast' : 'screencasts'
+ puts "Processed #{number} #{screencasts}."
end
def unpublish!(slug=nil)
require "rest_client"
require "softcover/client"