rumble 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 996685adb974a9ba90e1bc9d13add7128960fc9b
4
- data.tar.gz: d7131676f786111af9045039b86c7e279222c323
3
+ metadata.gz: 3cec32c887010f820cc2e722bd46ec4a9d90da5d
4
+ data.tar.gz: 648b81f7f28aa984babc09acd3f1c14947fa406e
5
5
  SHA512:
6
- metadata.gz: 8774f81469e210f471afe7f3192355210421469105108bb6263b76f23513570cf841117644646aa6873d9b2aeef37820775100c06107c074e8eeef569e34f315
7
- data.tar.gz: 72ddb4f0925174a353926354fbc8d742cd78209f666bc3c33e68f0be0aa8ad580fd36f00c2537a3e3c5c31fa2b830da6ae0bfa826728334d075e1f9101c70531
6
+ metadata.gz: 9172090ad5ea0437320204fd6776f82ce79155d6964998ab1c4f58f8df54a4e68c41197cc43f148b1fe81a940278c2ca84de6d2095e9f546651d68b80493a4cb
7
+ data.tar.gz: 23ab441fa6b9a0a25403ae0953a50a86845d1165639c931cf0b0d76c01bab191cc4cb0d85aa37abd169bdf8caa8a27a1c3f551a5607211c1b609be1b47387140
data/.simplecov CHANGED
@@ -33,6 +33,6 @@ else
33
33
  SimpleCov.start do
34
34
  add_filter "/test/"
35
35
  add_filter "/features/"
36
- minimum_coverage 70
36
+ minimum_coverage 60
37
37
  end
38
38
  end
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 "Sent 0 email"
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 "Sent #{sent.size} emails"
123
+ puts "Processed #{sent.size} emails"
124
124
  end
125
125
  end
126
126
  end
@@ -23,5 +23,5 @@
23
23
  # Copyright:: Copyright (c) 2018 Yegor Bugayenko
24
24
  # License:: MIT
25
25
  module Rumble
26
- VERSION = '0.3.1'.freeze
26
+ VERSION = '0.3.2'.freeze
27
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rumble
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko