rumble 0.2 → 0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.simplecov +1 -1
- data/lib/rumble/version.rb +1 -1
- data/lib/rumble.rb +8 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5fe3ceb8ceb7f632053c0d10fa4bd91e231c8213
|
4
|
+
data.tar.gz: 1a1314e9b877c0abe8e4b111f5410b563ded1f18
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f828901369a8684c82fdf7d5c49cfccbd5bc00ec138a8397237ca14cf533b65270434ca828922e11c316f29f3adea23734c024e47db275734aa005b8ea16df4
|
7
|
+
data.tar.gz: b7ab787b1a75da441be70643739bda2ed199ee0f94b928e7981f87f0fcc75833d5557e3b40ae04c73bd2bd0911ac6feef4c5bf25ef117fccfd4be7dff6dde657
|
data/.simplecov
CHANGED
data/lib/rumble/version.rb
CHANGED
data/lib/rumble.rb
CHANGED
@@ -56,16 +56,21 @@ module Rumble
|
|
56
56
|
puts "Sending #{emails.length} email(s) as #{from}"
|
57
57
|
domain = from.strip.gsub(/^.+@|>$/)
|
58
58
|
emails.each do |array|
|
59
|
-
first = array[@opts[:col0].to_i]
|
59
|
+
first = array[@opts[:col0].to_i]
|
60
|
+
unless first
|
61
|
+
puts Rainbow('First name is absent').red
|
62
|
+
next
|
63
|
+
end
|
64
|
+
first = first.strip
|
60
65
|
last = array[@opts[:col1].to_i]
|
61
66
|
unless last
|
62
|
-
puts Rainbow('
|
67
|
+
puts Rainbow('Last name is absent').red
|
63
68
|
next
|
64
69
|
end
|
65
70
|
last = last.strip
|
66
71
|
email = array[@opts[:col2].to_i]
|
67
72
|
unless email
|
68
|
-
puts Rainbow('
|
73
|
+
puts Rainbow('Email is absent').red
|
69
74
|
next
|
70
75
|
end
|
71
76
|
email = email.strip.downcase
|