sincerely 1.1.2 → 1.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: e65feaa40c69f0ef13e944183aa7e64cad360a89d8a93f6fbb74c200cbafb6d4
4
- data.tar.gz: 6204b603e3f27e1a00f3708cca2ac3be0245a0ec6e7295c148e67561f65a766d
3
+ metadata.gz: 8145214d026bf9a3055f7192b694b84dceb0bfa89a4a78e526a5832dfb016675
4
+ data.tar.gz: 393c5f2ba30f47710726e86190f054a43502331444c3ca61e326304bb6ebb223
5
5
  SHA512:
6
- metadata.gz: 0ba0f74c0e009294a823162cb124804db7d7855ab9c60a6c9ce2f305be8570db46fbed3e1e2125ac01ca81b95e21cbd4b2fe4de364e2c110a1c216b19ead4af5
7
- data.tar.gz: 8758277f0e5829ae83d7c743a344aa9b3b941436ca2a61f3ba1d9722e251841d173095a0ba9891c40cde52ad8c3a6969e88a6b1ebd446859e84394726bd6f30a
6
+ metadata.gz: c50b3fd1d13596262f3aba63044c3348faa5c0fe87159cba4895ba25da90572f5c0e5e6ff8fbfca398774ad84c3c6edbbe163201091094afa135ac68fe207fa1
7
+ data.tar.gz: 6ae7839a324a550b09f3866609b5f6ba733da0e4a935267e8eefd7df122d712fe9e1738072b03570167b279928c00906bdc14153b22f9cdd7b0e101ee544c3b5
data/CHANGELOG.md CHANGED
@@ -2,6 +2,21 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [1.1.4] - 2026-09-21
6
+
7
+ ### Fixed
8
+ - Template preview no longer strips the formatting of HTML emails. The preview page's CSP was inherited by the `srcdoc` iframe rendering the email, and `style-src 'self'` blocked the inline `style` attributes emails are built from. Inline styles and `data:` images are now permitted; scripts stay blocked.
9
+
10
+ ## [1.1.3] - 2026-09-17
11
+
12
+ ### Added
13
+ - Inline attachments accept an optional `encoding` (e.g. `base64`), passed through to the MIME part's `Content-Transfer-Encoding`. Lets callers embed binary images such as PNGs, whose raw bytes cannot survive the JSON-serialized `delivery_options` column.
14
+
15
+ ## [1.1.2] - 2026-09-17
16
+
17
+ ### Added
18
+ - `AwsSesRejectEvent`, carrying the rejection reason reported by SES
19
+
5
20
  ## [1.1.1] - 2026-08-28
6
21
 
7
22
  ### Changed
@@ -2,7 +2,7 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>Preview: <%= @template.name %></title>
5
- <meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'; style-src 'self'; object-src 'none'">
5
+ <meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; object-src 'none'">
6
6
  <%= stylesheet_link_tag 'sincerely/template_preview' %>
7
7
  </head>
8
8
  <body>
@@ -84,8 +84,9 @@ module Sincerely
84
84
  attachments.each_with_object({}) do |attachment, cid_by_variable|
85
85
  message.attachments.inline[attachment['filename']] = {
86
86
  mime_type: attachment['mime_type'],
87
- content: attachment['content']
88
- }
87
+ content: attachment['content'],
88
+ encoding: attachment['encoding']
89
+ }.compact
89
90
  cid_by_variable[attachment['variable']] = message.attachments[attachment['filename']].url
90
91
  end
91
92
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sincerely
4
- VERSION = '1.1.2'
4
+ VERSION = '1.1.4'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sincerely
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - 100 Starlings
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-09-17 00:00:00.000000000 Z
11
+ date: 2026-09-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aasm