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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fba346fc2c9e5d43b6ca4369a4ec93dff5f1b3f9
4
- data.tar.gz: d4ea1417dab72c1d5e4c071bac5ce10caee91f1d
3
+ metadata.gz: 999107f1638f9646e86aa8e1524fa3a127d0dbdd
4
+ data.tar.gz: 4fe4219adb5e5eed2686bc78b502761d6b4a8083
5
5
  SHA512:
6
- metadata.gz: 62870bb77ca6bb973fd31c4006c5642acba0b2aa642c1f50a2d4c972835075a9d2f61731f153e386ddea564aa7a6802742d77a7c68d6c49f508cbec0a7d09f85
7
- data.tar.gz: d17b7ace4fba018b9a702ef5d6992d4da7058a311e74f6971605322b549f44a122c48bb44d1bdfd5801dd1fa4ab04efa725741f3a59b58acd676768e015ec112
6
+ metadata.gz: f16991503ca10ef819f196cce0d0e38b9f364813303f6d822acbe50294b280d1570d8a72f15f7f083cde388deb431b466c964f7be94af54d3236648ff820e808
7
+ data.tar.gz: d9e669df1f6d28521d4a715fbd5aa80348fcce6ab1c5c378e204febd4238a2f1b8c0cfb0e7c134edbaa408b77f02d82835026e9a14f3bfbff890e85c5146c34d
@@ -1,5 +1,6 @@
1
1
  require 'mandrill_queue/railtie' if defined?(Rails)
2
2
  require 'mandrill_queue/core_ext'
3
+ require 'mandrill_queue/errors'
3
4
  require 'mandrill_queue/configuration'
4
5
  require 'mandrill_queue/mailer'
5
6
 
@@ -16,6 +16,7 @@ module MandrillQueue
16
16
  end
17
17
 
18
18
  class MessageError < Error; end
19
+ class ConfigurationError < Error; end
19
20
 
20
21
  class VariableError < Error; end
21
22
  class VariableNotSetError < VariableError; end
@@ -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::Api::Error, <<-ERR
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
@@ -1,3 +1,3 @@
1
1
  module MandrillQueue
2
- VERSION = '0.2.4'
2
+ VERSION = '0.2.5'
3
3
  end
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
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-06-02 00:00:00.000000000 Z
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.0
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.