postmortem 0.1.1 → 0.2.3

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.
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ Mail::SMTP.class_eval do
4
+ alias_method :_original_deliver!, :deliver!
5
+
6
+ def deliver!(mail)
7
+ result = _original_deliver!(mail) unless Postmortem.config.mail_skip_delivery
8
+ Postmortem.record_delivery(Postmortem::Adapters::Mail.new(mail))
9
+ result
10
+ end
11
+ end
@@ -3,10 +3,13 @@
3
3
  # Pony monkey-patch.
4
4
  module Pony
5
5
  class << self
6
- alias _pony_mail mail
6
+ alias _original_mail mail
7
7
 
8
8
  def mail(options)
9
- result = _pony_mail(options) unless Postmortem.config.pony_skip_delivery
9
+ # SMTP delivery is handled by Mail plugin further down the stack
10
+ return _original_mail(options) if options[:via].to_s == 'smtp'
11
+
12
+ result = _original_mail(options) unless Postmortem.config.mail_skip_delivery
10
13
  Postmortem.record_delivery(Postmortem::Adapters::Pony.new(options))
11
14
  result
12
15
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Postmortem
4
- VERSION = '0.1.1'
4
+ VERSION = '0.2.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: postmortem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bob Farrell
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-16 00:00:00.000000000 Z
11
+ date: 2021-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mail
@@ -132,6 +132,7 @@ files:
132
132
  - ".gitignore"
133
133
  - ".rspec"
134
134
  - ".rubocop.yml"
135
+ - ".ruby-version"
135
136
  - Gemfile
136
137
  - LICENSE.txt
137
138
  - Makefile
@@ -141,15 +142,26 @@ files:
141
142
  - bin/setup
142
143
  - doc/screenshot.png
143
144
  - layout/default.html.erb
145
+ - layout/dependencies.css
146
+ - layout/dependencies.js
147
+ - layout/headers_template.html
148
+ - layout/layout.css
149
+ - layout/layout.js
150
+ - layout/postmortem_identity.html.erb
151
+ - layout/postmortem_index.html.erb
144
152
  - lib/postmortem.rb
145
153
  - lib/postmortem/adapters.rb
146
154
  - lib/postmortem/adapters/action_mailer.rb
147
155
  - lib/postmortem/adapters/base.rb
156
+ - lib/postmortem/adapters/mail.rb
148
157
  - lib/postmortem/adapters/pony.rb
149
158
  - lib/postmortem/configuration.rb
150
159
  - lib/postmortem/delivery.rb
160
+ - lib/postmortem/identity.rb
161
+ - lib/postmortem/index.rb
151
162
  - lib/postmortem/layout.rb
152
163
  - lib/postmortem/plugins/action_mailer.rb
164
+ - lib/postmortem/plugins/mail.rb
153
165
  - lib/postmortem/plugins/pony.rb
154
166
  - lib/postmortem/version.rb
155
167
  - postmortem.gemspec
@@ -160,7 +172,7 @@ metadata:
160
172
  homepage_uri: https://github.com/bobf/postmortem
161
173
  source_code_uri: https://github.com/bobf/postmortem
162
174
  changelog_uri: https://github.com/bobf/postmortem/blob/master/README.md
163
- post_install_message:
175
+ post_install_message:
164
176
  rdoc_options: []
165
177
  require_paths:
166
178
  - lib
@@ -175,8 +187,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
175
187
  - !ruby/object:Gem::Version
176
188
  version: '0'
177
189
  requirements: []
178
- rubygems_version: 3.1.2
179
- signing_key:
190
+ rubyforge_project:
191
+ rubygems_version: 2.7.6
192
+ signing_key:
180
193
  specification_version: 4
181
194
  summary: Development HTML Email Inspection Tool
182
195
  test_files: []