launch_control 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/launch_control.rb +3 -2
- data/lib/launch_control/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0fa6a3a80f5a4b971a64ddb0ad392fc0ac6e9035
|
4
|
+
data.tar.gz: 18cf4f8424ddc26483adf94bdbc1889f36606aca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f7f059404c3dad83d3ba779d97271be50db7ebe2bf4ae54164dc099e00479ab12dffa283b6d7894cc4b022db28560cfd9a0994820e8b4a4e35346608d7405fc
|
7
|
+
data.tar.gz: 8f28f6a0c25a7d0341d1a44021a67b6a1a6afe21a4acb6b9a9a312954643f5115acbb43b08c06aa45e918c0fa85335c4a573f2820febadf484aaa1bb8bbc1555
|
data/lib/launch_control.rb
CHANGED
@@ -41,7 +41,7 @@ module LaunchControl
|
|
41
41
|
class Mailer
|
42
42
|
|
43
43
|
attr_accessor :template_id, :cc, :bcc, :to, :from_name, :from_email,
|
44
|
-
:reply_to, :subject, :merge_vars
|
44
|
+
:reply_to, :subject, :merge_vars, :status
|
45
45
|
|
46
46
|
def initialize(template_id, options)
|
47
47
|
options = options.dup
|
@@ -67,7 +67,8 @@ module LaunchControl
|
|
67
67
|
def deliver
|
68
68
|
if valid?
|
69
69
|
response = mandrill.messages.send_template(@template_id, [], message, false)
|
70
|
-
response[0]["status"]
|
70
|
+
@status = response[0]["status"]
|
71
|
+
["sent", "queued", "scheduled"].include?(@status)
|
71
72
|
end
|
72
73
|
end
|
73
74
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: launch_control
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Teague
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mandrill-api
|