effective_postmark 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
  SHA256:
3
- metadata.gz: 3c865f268155269e90bfab82beaca405a2adfed8b20c7156214f5b95574986c3
4
- data.tar.gz: 183783ce5068b9b1abfdba98551d1a812a070f414a56f0fe787826a0855dd680
3
+ metadata.gz: 126e1abadb41cf5b943b35e7a7a6203be5481fc8bfe715d94a2ca5cc1bb7fe0a
4
+ data.tar.gz: 25d9e3cdd21979fe4a6af8af79fd96ec1c58840826daebf896053441d8bf2362
5
5
  SHA512:
6
- metadata.gz: d927becf5cb36887f8a3093975e6b5cf543d9fe34d73fa11900372ec9807d484a5b40ae7e7d7e5ed30fb3e01f702f765b582a038526d8151309e965c674694db
7
- data.tar.gz: bf2041254c685af6d7c2dbe5f64c2ba3ecf9ae62a5fbee7dd0fafe319992361a8842fbe2a19b2f2cf746d1691050f1b5feaaca92ec75ac1f036a9617575b7d65
6
+ metadata.gz: b0c5e4484613c33b2fb060cb9badb82189f522980cc395d13e61ca2b1b58cec236920e4d9ab970d0f852f40a231b2e621a26201a5f57c1644c43131c2d27fa1f
7
+ data.tar.gz: fafd13bb0561f814dbba82552ecf169065407bb9968ea3cffc9d1ba6ad24b76ea92ce50cd071f4e7dc211050ddeaddb2a6776184e58ab52f9aca697564c5c927
@@ -9,7 +9,7 @@ module EffectivePostmarkMailer
9
9
  end
10
10
  end
11
11
 
12
- rescue_from(::StandardError, with: :effective_postmark_error) unless Rails.env.test? || Rails.env.development?
12
+ #rescue_from(::StandardError, with: :effective_postmark_error)
13
13
  rescue_from(::Postmark::InactiveRecipientError, with: :effective_postmark_inactive_recipient_error)
14
14
  end
15
15
 
@@ -59,6 +59,11 @@ module EffectivePostmarkMailer
59
59
  Rails.logger.info "\e[31m\e[1mEMAIL FAILED\e[0m\e[22m" # bold red
60
60
  Rails.logger.info "#{exception.inspect}"
61
61
 
62
+ EffectiveLogger.error(exception.message) if defined?(EffectiveLogger)
63
+ ExceptionNotifier.notify_exception(exception) if defined?(ExceptionNotifier)
64
+
65
+ raise(exception) if Rails.env.test? || Rails.env.development?
66
+
62
67
  true
63
68
  end
64
69
 
@@ -1,3 +1,3 @@
1
1
  module EffectivePostmark
2
- VERSION = '0.3.0'.freeze
2
+ VERSION = '0.3.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_postmark
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
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-16 00:00:00.000000000 Z
11
+ date: 2024-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails