postmortem 0.2.6 → 0.3.2
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.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/README.md +2 -1
- data/layout/default.html.erb +21 -8
- data/layout/dependencies.css +0 -4
- data/layout/dependencies.js +3 -1
- data/layout/layout.css +46 -1
- data/layout/layout.js +115 -26
- data/lib/postmortem/adapters/action_mailer.rb +1 -2
- data/lib/postmortem/adapters/base.rb +1 -1
- data/lib/postmortem/adapters/mail.rb +1 -2
- data/lib/postmortem/delivery.rb +5 -1
- data/lib/postmortem/identity.rb +1 -1
- data/lib/postmortem/index.rb +1 -1
- data/lib/postmortem/layout.rb +4 -0
- data/lib/postmortem/plugins/pony.rb +7 -3
- data/lib/postmortem/version.rb +1 -1
- data/lib/postmortem.rb +1 -1
- data/postmortem.gemspec +9 -8
- metadata +19 -19
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b7b614038fcdd254411127eb4c6a008c1331d2c8c9b660064b655e404efcb628
|
|
4
|
+
data.tar.gz: 2e6078c75b0b0c2bb7bfb52189baa7773a3f9a2a9b5d7f0f6a805fc9624b1dd9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ae4256c6ff0bc3602672abc0caa917b3f25b3e3d463c3557c6f1a15eb783d465398d11eaec0358c531b1d4cc6cbf7c9438169cbb9a594f942f52233b63065ed8
|
|
7
|
+
data.tar.gz: eac1a7af623d3e0f8eb880633c35a25cdef88b6fd9c06dad575ba983a88ddf0a74ef08fbcca36f2dc898d360d6bed583c0bd3e8ba39ac666bfb1d61793d24142
|
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.
|
|
1
|
+
2.6.9
|
data/README.md
CHANGED
|
@@ -19,6 +19,7 @@ _PostMortem_ should only be enabled in test or development environments.
|
|
|
19
19
|
* Local images are located and embedded in HTML so you can see the full version of outgoing emails.
|
|
20
20
|
* Runs without a server - single page app runs on file system with no need to run a local web server to access UI.
|
|
21
21
|
* Any captured email can be downloaded into a standalone HTML file which can be shared with others.
|
|
22
|
+
* Similarly, any captured eamil can also be uploaded to a stanadlone version of _Postmortem_ at https://postmortem.delivery/<unique-id>
|
|
22
23
|
|
|
23
24
|
## Installation
|
|
24
25
|
|
|
@@ -26,7 +27,7 @@ Add the gem to your application's Gemfile:
|
|
|
26
27
|
|
|
27
28
|
```ruby
|
|
28
29
|
group :development, :test do
|
|
29
|
-
gem 'postmortem', '~> 0.2
|
|
30
|
+
gem 'postmortem', '~> 0.3.2'
|
|
30
31
|
end
|
|
31
32
|
```
|
|
32
33
|
|
data/layout/default.html.erb
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
<html>
|
|
3
3
|
<title>PostMortem Email</title>
|
|
4
4
|
<head>
|
|
5
|
+
<meta charset="UTF-8" />
|
|
5
6
|
<style>
|
|
6
7
|
<%= css_dependencies %>
|
|
7
8
|
<%= styles %>
|
|
@@ -15,33 +16,44 @@
|
|
|
15
16
|
|
|
16
17
|
<a target="_blank" href="https://github.com/bobf/postmortem"><h1 class="text-secondary" id="title">Post<i class="fa fa-envelope" aria-hidden="true"></i>Mortem</h1></a>
|
|
17
18
|
|
|
18
|
-
<a href="javascript:void(0)" class="text-secondary" id="
|
|
19
|
+
<a href="javascript:void(0)" class="text-secondary icon" id="upload-link">
|
|
19
20
|
<i data-toggle="tooltip"
|
|
20
|
-
title="
|
|
21
|
-
class="
|
|
21
|
+
title="Upload to Postmortem.Delivery for sharing"
|
|
22
|
+
class="fas fa-cloud-upload-alt icon upload-button"></i>
|
|
23
|
+
</a>
|
|
24
|
+
<div id="upload-popup" class="hidden">
|
|
25
|
+
<i class="external-link-icon fas fa-external-link-alt"></i>
|
|
26
|
+
<a id="uploaded-email-link" target="_blank" href="#">upload-url</a>
|
|
27
|
+
<a id="copy-uploaded-email-link" href="#"><i class="far fa-clipboard copy-icon"></i>
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
<a href="javascript:void(0)" class="text-secondary icon" id="download-link" download="Email.html">
|
|
31
|
+
<i data-toggle="tooltip"
|
|
32
|
+
title="Download HTML file for sharing"
|
|
33
|
+
class="fas fa-cloud-download-alt icon download-button"></i>
|
|
22
34
|
</a>
|
|
23
35
|
|
|
24
36
|
<i data-toggle="tooltip"
|
|
25
37
|
title="View HTML Source"
|
|
26
|
-
class="fa fa-code source-view-switch"></i>
|
|
38
|
+
class="fa fa-code icon source-view-switch"></i>
|
|
27
39
|
|
|
28
40
|
<i data-toggle="tooltip"
|
|
29
41
|
title="View HTML Part"
|
|
30
|
-
class="fa fa-file-code-o html-view-switch"></i>
|
|
42
|
+
class="fa fa-file-code-o icon html-view-switch"></i>
|
|
31
43
|
|
|
32
44
|
<i data-toggle="tooltip"
|
|
33
45
|
title="View Plaintext Part"
|
|
34
|
-
class="fa fa-file-text-o text-view-switch"></i>
|
|
46
|
+
class="fa fa-file-text-o icon text-view-switch"></i>
|
|
35
47
|
|
|
36
48
|
<span class="separator"></span>
|
|
37
49
|
|
|
38
50
|
<i data-toggle="tooltip"
|
|
39
51
|
title="Toggle Inbox"
|
|
40
|
-
class="fa fa-columns column-switch"></i>
|
|
52
|
+
class="fa fa-columns icon column-switch"></i>
|
|
41
53
|
|
|
42
54
|
<i data-toggle="tooltip"
|
|
43
55
|
title="Toggle Headers"
|
|
44
|
-
class="fa fa-envelope-open-o headers-view-switch"></i>
|
|
56
|
+
class="fa fa-envelope-open-o icon headers-view-switch"></i>
|
|
45
57
|
|
|
46
58
|
</div>
|
|
47
59
|
|
|
@@ -96,6 +108,7 @@
|
|
|
96
108
|
POSTMORTEM.initialData = <%= mail.serializable.to_json %>;
|
|
97
109
|
POSTMORTEM.hasHtml = <%= (!mail.html_body.nil?).to_json %>;
|
|
98
110
|
POSTMORTEM.hasText = <%= (!mail.text_body.nil?).to_json %>;
|
|
111
|
+
POSTMORTEM.uploadUrl = <%= upload_url.to_json %>;
|
|
99
112
|
</script>
|
|
100
113
|
<script>
|
|
101
114
|
<%= javascript %>
|