rumble 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.simplecov +1 -1
- data/features/cli.feature +1 -1
- data/lib/rumble.rb +2 -2
- data/lib/rumble/version.rb +1 -1
- 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: 3cec32c887010f820cc2e722bd46ec4a9d90da5d
|
4
|
+
data.tar.gz: 648b81f7f28aa984babc09acd3f1c14947fa406e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9172090ad5ea0437320204fd6776f82ce79155d6964998ab1c4f58f8df54a4e68c41197cc43f148b1fe81a940278c2ca84de6d2095e9f546651d68b80493a4cb
|
7
|
+
data.tar.gz: 23ab441fa6b9a0a25403ae0953a50a86845d1165639c931cf0b0d76c01bab191cc4cb0d85aa37abd169bdf8caa8a27a1c3f551a5607211c1b609be1b47387140
|
data/.simplecov
CHANGED
data/features/cli.feature
CHANGED
@@ -18,5 +18,5 @@ Feature: Command Line Processing
|
|
18
18
|
|
19
19
|
"""
|
20
20
|
When I run bin/rumble with "--test yegor256@gmail.com --host test --user test --password test --subject test --letter a.liquid --from me@example.com --dry --resume test@example.com"
|
21
|
-
Then Stdout contains "
|
21
|
+
Then Stdout contains "Processed 1 email"
|
22
22
|
And Exit code is zero
|
data/lib/rumble.rb
CHANGED
@@ -74,6 +74,7 @@ module Rumble
|
|
74
74
|
next
|
75
75
|
end
|
76
76
|
email = email.strip.downcase
|
77
|
+
sent.push(email)
|
77
78
|
name = "#{first.strip} #{last.strip}"
|
78
79
|
address = email
|
79
80
|
address = "#{name} <#{email}>" unless name.empty?
|
@@ -116,11 +117,10 @@ module Rumble
|
|
116
117
|
end
|
117
118
|
end
|
118
119
|
mail.deliver! unless @opts[:dry]
|
119
|
-
sent.push(email)
|
120
120
|
total += 1
|
121
121
|
puts "#{Rainbow('done').green} ##{total}"
|
122
122
|
end
|
123
|
-
puts "
|
123
|
+
puts "Processed #{sent.size} emails"
|
124
124
|
end
|
125
125
|
end
|
126
126
|
end
|
data/lib/rumble/version.rb
CHANGED