action_mailer-logged_smtp_delivery 2.1.0 → 2.1.2

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
- SHA1:
3
- metadata.gz: 0f8535c45bc87ff516a65f8b63e40877793dc9df
4
- data.tar.gz: 7457bef4cf965d7f3fafbbc959272d4ba2252fe7
2
+ SHA256:
3
+ metadata.gz: 8b1b6bc377e18f1a790e29d9798db3faf262e90ad5482a46a53ff37ac528d370
4
+ data.tar.gz: 8c27d5d47fada5aca9c3a616ddfc6d6b86636c926a11843e9ce0daf6f87b1c30
5
5
  SHA512:
6
- metadata.gz: 7348e3060862244a37e7d231d4b9c1f0d79ae38eb0cbd6510828e5bd2d962babb5534b9b42576d3d38eddbfa3734d43bc169f1fc47a75d4ce26ae99794e66644
7
- data.tar.gz: 284734e87e749d711cd0431c84eba1b41f42f3e765f098caabefb42f7c58b457e37044f2ef60c282c7fff81860c67c065cba0442e1fca501487d7f5f412ca522
6
+ metadata.gz: 0dbc5e42467b094900c8f37e11b0afb4cd2b83144c9020f711a6c6ff07806a03a435c457eccc769995bd3bbfbf286a1919b3a6fea36e937fc3a414733461f284
7
+ data.tar.gz: a610df957c65c41c00712bdceffc6216775753308f2106ca959af5ee62c5b013cac44d2743a1999e5b5fee928d36154283a46064c6f7afc6991a388eeb6aa0c1
@@ -2,11 +2,14 @@ require 'action_mailer'
2
2
  require 'mail/network/delivery_methods/smtp'
3
3
 
4
4
  class ActionMailer::LoggedSMTPDelivery < Mail::SMTP
5
+ attr_accessor :response
6
+
5
7
  def initialize(settings)
6
8
  super
7
9
  self.settings[:tls] = (settings[:tls] != false)
8
10
  self.settings[:return_response] = true
9
11
  self.logger = settings[:logger]
12
+ self.response = nil
10
13
  end
11
14
 
12
15
  def deliver!(mail)
@@ -19,8 +22,7 @@ class ActionMailer::LoggedSMTPDelivery < Mail::SMTP
19
22
  log mail, "sender: #{mail.sender}"
20
23
  log mail, "destinations: #{mail.destinations.inspect}"
21
24
 
22
- response = super
23
-
25
+ self.response = super
24
26
  log mail, "done #{response.inspect}"
25
27
  end
26
28
 
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.1.0
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Chapweske
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-15 00:00:00.000000000 Z
11
+ date: 2020-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionmailer
@@ -129,7 +129,7 @@ dependencies:
129
129
  - !ruby/object:Gem::Version
130
130
  version: '0'
131
131
  description: ActionMailer SMTP delivery strategy with advanced logging and Bcc support
132
- email:
132
+ email:
133
133
  executables: []
134
134
  extensions: []
135
135
  extra_rdoc_files: []
@@ -140,7 +140,7 @@ homepage: https://github.com/zendesk/action_mailer-logged_smtp_delivery
140
140
  licenses:
141
141
  - Apache V2
142
142
  metadata: {}
143
- post_install_message:
143
+ post_install_message:
144
144
  rdoc_options: []
145
145
  require_paths:
146
146
  - lib
@@ -155,9 +155,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
155
  - !ruby/object:Gem::Version
156
156
  version: '0'
157
157
  requirements: []
158
- rubyforge_project:
159
- rubygems_version: 2.6.11
160
- signing_key:
158
+ rubyforge_project:
159
+ rubygems_version: 2.7.6.2
160
+ signing_key:
161
161
  specification_version: 4
162
162
  summary: An ActionMailer delivery strategy
163
163
  test_files: []