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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cedb72e0ceeb41f1a30265d49b5ba4cbeddd6b0a
4
- data.tar.gz: 27b9caca86cd706b2f509347c67b0054381f7a25
3
+ metadata.gz: 0fa6a3a80f5a4b971a64ddb0ad392fc0ac6e9035
4
+ data.tar.gz: 18cf4f8424ddc26483adf94bdbc1889f36606aca
5
5
  SHA512:
6
- metadata.gz: 69908ed2fb4475dca09b5964cb9a284e50854c592f1df943186876c48d566e6d0581ca5a4dfd7e14c3ae43363763f3636cf7251b6c2489c906bd1c6585a59a63
7
- data.tar.gz: 9b89ca09b98df72836bc22054380606bc3ca174a9e720103019cd8194eb51e35b0073f1ab39cd7d05afca8bd4ba65022422ba15e2b66e5bc2bdff63c0d0591da
6
+ metadata.gz: 5f7f059404c3dad83d3ba779d97271be50db7ebe2bf4ae54164dc099e00479ab12dffa283b6d7894cc4b022db28560cfd9a0994820e8b4a4e35346608d7405fc
7
+ data.tar.gz: 8f28f6a0c25a7d0341d1a44021a67b6a1a6afe21a4acb6b9a9a312954643f5115acbb43b08c06aa45e918c0fa85335c4a573f2820febadf484aaa1bb8bbc1555
@@ -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"] == "sent"
70
+ @status = response[0]["status"]
71
+ ["sent", "queued", "scheduled"].include?(@status)
71
72
  end
72
73
  end
73
74
 
@@ -1,3 +1,3 @@
1
1
  module LaunchControl
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
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.0
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-09 00:00:00.000000000 Z
11
+ date: 2015-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mandrill-api