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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 38404e9ab732d38243310741c269a4ec27e02a3076c479c891fe7bd532474d97
4
- data.tar.gz: c66340b339905d47989e60b49d86073aab27785eae7a9da526fd910914db81ff
3
+ metadata.gz: 8ba107ba98ca78fe89c3e34585b6d49fe14d4e89f88dbfd587d62b95e0a651d5
4
+ data.tar.gz: 7a0cc62678dad96f2ecb50eaa4a6a708a451f76563e08488aee8897a66289bfb
5
5
  SHA512:
6
- metadata.gz: 3d28003d59309eccded62419a0d28573facd4a027045c9df28eefa7491206f5815bc9906f60cb2631a8ada54921bbf59c9b3c418fa28a89462eca055946ee2ef
7
- data.tar.gz: 7d8011434a33827a7f795f3bf865b7995dfec41d999aab8ef9cfd8d99e2f8b9d3ecf725c75f74deddbb4702fb9f8353666e66565254ca4e23c21f8e1a89b9be2
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.
@@ -9,6 +9,5 @@
9
9
  class="mail-dude-message-html-frame"
10
10
  name="mail-dude-html-frame"
11
11
  src="<%= html_message_path(presenter.id) %>"
12
- sandbox=""
12
+ sandbox="allow-same-origin"
13
13
  title="HTML email preview"></iframe>
14
-
@@ -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(mail)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MailDude
4
- VERSION = '0.1.3'
4
+ VERSION = '0.1.4'
5
5
  end
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.3
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.6.2
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: []