action_mailer-logged_smtp_delivery 2.2.0 → 2.2.4

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: '0384d169fb0fbe804c8a792d83fd8b39da7758b7bbc71f280c38e76a094804e4'
4
- data.tar.gz: 11be7798d9f25577a2f4011da2f733e07a1e44fafbb443a0aa4ad42cf84eb03f
3
+ metadata.gz: 4538c4abed96561b7741b755fb4944ae62b500e35ec585f35bc4461cacadf7a9
4
+ data.tar.gz: 28b5fb7d0df5069f6b16813feeb945ca6cf6e805b5b98a83f29ac7ba038108e7
5
5
  SHA512:
6
- metadata.gz: 7defcf656cf41595f98f180fdcfb3c9345768745c2dc6b966d1c15540d412849db893ba9c847d7e4cc90096a453b52416ea41ec7bd37aed3e519915475ea904a
7
- data.tar.gz: 65b4a6fd653ba146f97518a68735201d09aed858aa86388e778927b79296ddb2d48f2c3792cf4380038ad8cf0d3ed9667a081373f33228aab8f27435e5300337
6
+ metadata.gz: dda7116bc36fc92845b8b4805a94cd8a72cbbde9ad162a3d3dd86c2f651fd91fa2dee23e56d4d6544df2b156fd4afc3e68f262d42870146f389e661b3ce5a078
7
+ data.tar.gz: b3dc1d58cf2b83e2292bb9c375e3a0e5368a4ddf7fc70ad73e32fcbc56e63503636db41d914c958a8003cba24d1013998bb8ec485e90ebe0cb871afd6463db0c
@@ -13,8 +13,8 @@ class ActionMailer::LoggedSMTPDelivery < Mail::SMTP
13
13
  end
14
14
 
15
15
  def deliver!(mail)
16
- if logger = settings[:mail_file_logger]
17
- path = logger.log(mail.encoded)
16
+ if file_logger = settings[:mail_file_logger]
17
+ path = file_logger.log(mail.encoded)
18
18
  log mail, "stored at #{path}"
19
19
  end
20
20
 
@@ -22,8 +22,13 @@ class ActionMailer::LoggedSMTPDelivery < Mail::SMTP
22
22
  log mail, "sender: #{mail.sender}"
23
23
  log mail, "destinations: #{mail.destinations.inspect}"
24
24
 
25
- self.response = super
26
- log mail, "done #{response.inspect}"
25
+ begin
26
+ self.response = super
27
+ log mail, "done #{response.inspect}"
28
+ rescue => e
29
+ logger.error("#{mail.message_id} exception #{e.inspect}")
30
+ raise
31
+ end
27
32
  end
28
33
 
29
34
  private
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: action_mailer-logged_smtp_delivery
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Chapweske
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-13 00:00:00.000000000 Z
11
+ date: 2023-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionmailer
@@ -114,6 +114,20 @@ dependencies:
114
114
  - - ">="
115
115
  - !ruby/object:Gem::Version
116
116
  version: '0'
117
+ - !ruby/object:Gem::Dependency
118
+ name: mocha
119
+ requirement: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - ">="
122
+ - !ruby/object:Gem::Version
123
+ version: '0'
124
+ type: :development
125
+ prerelease: false
126
+ version_requirements: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - ">="
129
+ - !ruby/object:Gem::Version
130
+ version: '0'
117
131
  description: ActionMailer SMTP delivery strategy with advanced logging and Bcc support
118
132
  email:
119
133
  executables: []