mail_dude 0.1.3 → 0.1.4
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/CHANGELOG.md +5 -0
- data/app/views/mail_dude/messages/_tabs.html.erb +1 -2
- data/lib/mail_dude/message_serializer.rb +8 -4
- data/lib/mail_dude/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8ba107ba98ca78fe89c3e34585b6d49fe14d4e89f88dbfd587d62b95e0a651d5
|
|
4
|
+
data.tar.gz: 7a0cc62678dad96f2ecb50eaa4a6a708a451f76563e08488aee8897a66289bfb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c3ae2168b7602568b0c6ac480b8b1c2221d3bff427934c1029a103df9d808c6a8c0a8038704949fbe5acc00ad9571ec96f10cd0f6bbf070ba841cddf64bf57ec
|
|
7
|
+
data.tar.gz: a0d5e30232fb7d383597cf34f857880e6a06510f7e230c7f838c6062bce1a1f4ceeb1281a9a7d8050ddab87a9b354f76dfedf30e1be1be67b2f6d98b1768cfe6
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.4
|
|
4
|
+
|
|
5
|
+
- Allow sandboxed previews to load same-origin inline attachments.
|
|
6
|
+
- Serialize Action Mailer inline attachments from captured raw source.
|
|
7
|
+
|
|
3
8
|
## 0.1.3
|
|
4
9
|
|
|
5
10
|
- Fix CID image rendering for Content-ID attachments without inline disposition.
|
|
@@ -54,12 +54,16 @@ module MailDude
|
|
|
54
54
|
fallback.present? ? [fallback] : []
|
|
55
55
|
end
|
|
56
56
|
|
|
57
|
-
def attachments
|
|
58
|
-
@attachments ||= attachment_locator.attachments.map(&:metadata)
|
|
59
|
-
end
|
|
57
|
+
def attachments = @attachments ||= attachment_locator.attachments.map(&:metadata)
|
|
60
58
|
|
|
61
59
|
def attachment_locator
|
|
62
|
-
@attachment_locator ||= AttachmentLocator.new(
|
|
60
|
+
@attachment_locator ||= AttachmentLocator.new(attachment_source)
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
def attachment_source
|
|
64
|
+
return mail unless MailDude.configuration.capture_attachments && raw_source.present?
|
|
65
|
+
|
|
66
|
+
MessageRecord.new(id: id, metadata: {}, raw_source: raw_source)
|
|
63
67
|
end
|
|
64
68
|
|
|
65
69
|
def content_type
|
data/lib/mail_dude/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mail_dude
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- MailDude contributors
|
|
8
|
+
autorequire:
|
|
8
9
|
bindir: bin
|
|
9
10
|
cert_chain: []
|
|
10
11
|
date: 2026-06-23 00:00:00.000000000 Z
|
|
@@ -208,6 +209,7 @@ licenses:
|
|
|
208
209
|
- MIT
|
|
209
210
|
metadata:
|
|
210
211
|
rubygems_mfa_required: 'true'
|
|
212
|
+
post_install_message:
|
|
211
213
|
rdoc_options: []
|
|
212
214
|
require_paths:
|
|
213
215
|
- lib
|
|
@@ -222,7 +224,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
222
224
|
- !ruby/object:Gem::Version
|
|
223
225
|
version: '0'
|
|
224
226
|
requirements: []
|
|
225
|
-
rubygems_version: 3.
|
|
227
|
+
rubygems_version: 3.3.7
|
|
228
|
+
signing_key:
|
|
226
229
|
specification_version: 4
|
|
227
230
|
summary: A Rails Action Mailer capture engine for development and QA.
|
|
228
231
|
test_files: []
|