lib/rumble.rb in rumble-0.3.1 vs lib/rumble.rb in rumble-0.3.2
- old
+ new
@@ -72,10 +72,11 @@
unless email
puts Rainbow('Email is absent').red
next
end
email = email.strip.downcase
+ sent.push(email)
name = "#{first.strip} #{last.strip}"
address = email
address = "#{name} <#{email}>" unless name.empty?
print "Sending to #{address}... "
markdown = letter.render(
@@ -114,13 +115,12 @@
content_type 'text/html; charset=UTF-8'
body html
end
end
mail.deliver! unless @opts[:dry]
- sent.push(email)
total += 1
puts "#{Rainbow('done').green} ##{total}"
end
- puts "Sent #{sent.size} emails"
+ puts "Processed #{sent.size} emails"
end
end
end