mandrill_queue 0.2.4 → 0.2.5
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/lib/mandrill_queue.rb +1 -0
- data/lib/mandrill_queue/errors.rb +1 -0
- data/lib/mandrill_queue/mandrill_api.rb +2 -3
- data/lib/mandrill_queue/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 999107f1638f9646e86aa8e1524fa3a127d0dbdd
|
|
4
|
+
data.tar.gz: 4fe4219adb5e5eed2686bc78b502761d6b4a8083
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f16991503ca10ef819f196cce0d0e38b9f364813303f6d822acbe50294b280d1570d8a72f15f7f083cde388deb431b466c964f7be94af54d3236648ff820e808
|
|
7
|
+
data.tar.gz: d9e669df1f6d28521d4a715fbd5aa80348fcce6ab1c5c378e204febd4238a2f1b8c0cfb0e7c134edbaa408b77f02d82835026e9a14f3bfbff890e85c5146c34d
|
data/lib/mandrill_queue.rb
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
require 'mandrill'
|
|
2
2
|
require 'mandrill_queue'
|
|
3
|
+
require 'mandrill_queue/errors'
|
|
3
4
|
|
|
4
5
|
module MandrillQueue
|
|
5
6
|
module MandrillApi
|
|
6
|
-
class Error < ::StandardError; end
|
|
7
|
-
|
|
8
7
|
def configuration
|
|
9
8
|
MandrillQueue.configuration
|
|
10
9
|
end
|
|
@@ -12,7 +11,7 @@ module MandrillQueue
|
|
|
12
11
|
def mandrill
|
|
13
12
|
@_api ||= begin
|
|
14
13
|
if configuration.api_key.nil?
|
|
15
|
-
raise MandrillQueue::
|
|
14
|
+
raise MandrillQueue::ConfigurationError, <<-ERR
|
|
16
15
|
An Api key has not been configured. Please configure on as follows in an initializer:
|
|
17
16
|
MandrillQueue.configure do { |c| c.api_key = 'xxxxxxxxxxxxxx' }
|
|
18
17
|
ERR
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mandrill_queue
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stan Bondi
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-09-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|
|
@@ -188,7 +188,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
188
188
|
version: '0'
|
|
189
189
|
requirements: []
|
|
190
190
|
rubyforge_project:
|
|
191
|
-
rubygems_version: 2.2.
|
|
191
|
+
rubygems_version: 2.2.2
|
|
192
192
|
signing_key:
|
|
193
193
|
specification_version: 4
|
|
194
194
|
summary: Use MailChimps Mandrill to send mailers through a background worker queue.
|