effective_postmark 0.1.0 → 0.1.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
  SHA256:
3
- metadata.gz: a6ecb092515ab49a0f89d1fefbab3544e5f2408ef0c02a4fb76ac1459cc1ab44
4
- data.tar.gz: c29c83b5f843b66394163919a8d9300311eeca4e3a400824b1e62070fbcebd31
3
+ metadata.gz: 3ad38ac05cb679e7d6a873dd77335e375509d348dd70bfa0dd036aec597b1d53
4
+ data.tar.gz: f736b293bede989795735bd97d1196bd66278173962b7f2d95a7d50d77d083a2
5
5
  SHA512:
6
- metadata.gz: f191d390a066d092cfb47e914b868b01f8c4fc583327552325a7db086dc387b6d9621288891d0749a8f2b394664fedc7cc1f8be664458b899eca9e595197ba45
7
- data.tar.gz: b0431e3de67d57b31b0097bce467a99010457a1128fddc7c1b7a645578151540a1405348967864d4d8609cb53583b8bfdaa7f2cda1f7773ed0aa189407e4b28b
6
+ metadata.gz: aa71507970666deeac958d1779bcf59d37a61d66df4cd5f4c002bacf4cfdfd47372e4c4235b1f14e7b01198ed8ffd1e3cacbe1f236cb170afdc774113de3b98d
7
+ data.tar.gz: dc70db2d2c8db52d8df1953d426af34029850089234da0e4bdc6e4d9e7f01eefa39a63b09492bad0789531bad71a86c855310fba538970a5160f59be16f92439
@@ -3,13 +3,13 @@ module EffectivePostmarkMailer
3
3
 
4
4
  included do
5
5
  # Make sure config.action_mailer.raise_delivery_errors = true
6
- before_action do
6
+ before_action(unless: -> { Rails.env.test? || Rails.env.development? }) do
7
7
  unless (Rails.application.config.action_mailer.raise_delivery_errors rescue false)
8
8
  raise("Expected config.action_mailer.raise_delivery_errors to be true. Please update your environment for use with effective_postmark.")
9
9
  end
10
10
  end
11
11
 
12
- rescue_from Postmark::InactiveRecipientError, with: :effective_postmark_inactive_recipient_error
12
+ rescue_from ::Postmark::InactiveRecipientError, with: :effective_postmark_inactive_recipient_error
13
13
  end
14
14
 
15
15
  def effective_postmark_inactive_recipient_error(exception)
@@ -1,3 +1,3 @@
1
1
  module EffectivePostmark
2
- VERSION = '0.1.0'.freeze
2
+ VERSION = '0.1.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_postmark
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect