postmortem 0.2.6 → 0.3.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
2
  SHA256:
3
- metadata.gz: c568b654939fbe3a62397c8f3339bc1b53ea179c8b978010feb91796a6981966
4
- data.tar.gz: 98326372aac64150232ecab827c5fb150416cb56839d1c939a70cc16453cedd5
3
+ metadata.gz: b7b614038fcdd254411127eb4c6a008c1331d2c8c9b660064b655e404efcb628
4
+ data.tar.gz: 2e6078c75b0b0c2bb7bfb52189baa7773a3f9a2a9b5d7f0f6a805fc9624b1dd9
5
5
  SHA512:
6
- metadata.gz: fcd1c8195d8646052c03645b93bbf40c33279592cdaebe9d1fe37ff923e6a1e3f89a03b452342362db5fe3965d5107fdcaa927aa13afc699cc12bdb9e39a3a72
7
- data.tar.gz: c5adb545133250df8a94f0be2ca61f19ed4cc85bb1864303c48932b404a83d6933373213f0dbab2ef19269210c944206495899bb162156897e351a550cd76d11
6
+ metadata.gz: ae4256c6ff0bc3602672abc0caa917b3f25b3e3d463c3557c6f1a15eb783d465398d11eaec0358c531b1d4cc6cbf7c9438169cbb9a594f942f52233b63065ed8
7
+ data.tar.gz: eac1a7af623d3e0f8eb880633c35a25cdef88b6fd9c06dad575ba983a88ddf0a74ef08fbcca36f2dc898d360d6bed583c0bd3e8ba39ac666bfb1d61793d24142
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.5.8
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.6'
30
+ gem 'postmortem', '~> 0.3.2'
30
31
  end
31
32
  ```
32
33
 
@@ -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="download-link" download="Email.html">
19
+ <a href="javascript:void(0)" class="text-secondary icon" id="upload-link">
19
20
  <i data-toggle="tooltip"
20
- title="Download for sharing"
21
- class="fa fa-cloud-download download-button"></i>
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 %>