postmortem 0.1.1 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -0
- data/README.md +5 -8
- data/layout/default.html.erb +45 -257
- data/layout/dependencies.css +11 -0
- data/layout/dependencies.js +14 -0
- data/layout/headers_template.html +35 -0
- data/layout/layout.css +160 -0
- data/layout/layout.js +268 -0
- data/layout/postmortem_identity.html.erb +20 -0
- data/layout/postmortem_index.html.erb +25 -0
- data/lib/postmortem.rb +12 -0
- data/lib/postmortem/adapters.rb +1 -0
- data/lib/postmortem/adapters/action_mailer.rb +2 -2
- data/lib/postmortem/adapters/base.rb +27 -1
- data/lib/postmortem/adapters/mail.rb +21 -0
- data/lib/postmortem/adapters/pony.rb +1 -1
- data/lib/postmortem/configuration.rb +3 -7
- data/lib/postmortem/delivery.rb +20 -13
- data/lib/postmortem/identity.rb +20 -0
- data/lib/postmortem/index.rb +67 -0
- data/lib/postmortem/layout.rb +82 -3
- data/lib/postmortem/plugins/mail.rb +11 -0
- data/lib/postmortem/plugins/pony.rb +5 -2
- data/lib/postmortem/version.rb +1 -1
- metadata +19 -6
@@ -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
|
6
|
+
alias _original_mail mail
|
7
7
|
|
8
8
|
def mail(options)
|
9
|
-
|
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
|
data/lib/postmortem/version.rb
CHANGED
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.
|
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:
|
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
|
-
|
179
|
-
|
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: []
|