sincerely 1.1.1 → 1.1.3

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: 0f610f193406b8467ea490b86eafc27b4d9ca87915f12e6fd82d876ed666b8ce
4
- data.tar.gz: f2a565ef5d052b9c5f3c79afe89e229b364e5c8878cddd22e5f2646d82192948
3
+ metadata.gz: e39a6884c8cf6a13cde2e74022a60bf41239bf1b8979316386f0eb4abe99d025
4
+ data.tar.gz: 7008f595337b90fd24943b11538060726f027f11392b56ab81b4af7513852074
5
5
  SHA512:
6
- metadata.gz: 878d3418223faee85c3468f2c751a17fca6765c038c460b1fa5404b392dfc8ee0399c2c1c7869e0eb38f667d73a5f8171f298b59026d1d062a1d4e1a8cdfecfb
7
- data.tar.gz: 84e458ed67358f5318c03000f8667697ee72d74193184ded28d67e429694f5fbc1efd42186378be708541986b2e023f1284f3b0d47fa1c8663180ba99d922710
6
+ metadata.gz: 5d0f203efd3e95eddd0bbb3304ee152d24c510f5ee1a7d491a03c5ecd63631aea8d574d2e2247267c5fd6a039d79abd5b9c508e63f1d7481a57441d642a8c4f1
7
+ data.tar.gz: 51ea2e8dfb66203f82a6b26978261e2ebb98f2562c0f674af9b5d63f693d014b392c0951cba58be306ed3639af7308a5dc6520faef1b3483df3fd0fa380b8d7e
data/CHANGELOG.md CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [1.1.3] - 2026-09-17
6
+
7
+ ### Added
8
+ - 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.
9
+
10
+ ## [1.1.2] - 2026-09-17
11
+
12
+ ### Added
13
+ - `AwsSesRejectEvent`, carrying the rejection reason reported by SES
14
+
5
15
  ## [1.1.1] - 2026-08-28
6
16
 
7
17
  ### Changed
@@ -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
@@ -14,6 +14,7 @@ module Sincerely
14
14
  when 'click' then AwsSesClickEvent.new(event_payload)
15
15
  when 'open' then AwsSesOpenEvent.new(event_payload)
16
16
  when 'complaint' then AwsSesComplaintEvent.new(event_payload)
17
+ when 'reject' then AwsSesRejectEvent.new(event_payload)
17
18
  else new(event_payload)
18
19
  end
19
20
  end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Sincerely
4
+ module Services
5
+ module Events
6
+ class AwsSesRejectEvent < AwsSesEvent
7
+ def rejection_reason
8
+ event.dig('reject', 'reason')
9
+ end
10
+ end
11
+ end
12
+ end
13
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sincerely
4
- VERSION = '1.1.1'
4
+ VERSION = '1.1.3'
5
5
  end
data/lib/sincerely.rb CHANGED
@@ -15,6 +15,7 @@ require_relative 'sincerely/services/events/aws_ses_delivery_event'
15
15
  require_relative 'sincerely/services/events/aws_ses_click_event'
16
16
  require_relative 'sincerely/services/events/aws_ses_complaint_event'
17
17
  require_relative 'sincerely/services/events/aws_ses_open_event'
18
+ require_relative 'sincerely/services/events/aws_ses_reject_event'
18
19
  require_relative 'sincerely/templates/email_liquid_template'
19
20
  require_relative 'sincerely/version'
20
21
  require_relative 'sincerely/engine' if defined?(Rails::Engine)
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.1
4
+ version: 1.1.3
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-08-28 00:00:00.000000000 Z
11
+ date: 2026-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aasm
@@ -216,6 +216,7 @@ files:
216
216
  - lib/sincerely/services/events/aws_ses_delivery_event.rb
217
217
  - lib/sincerely/services/events/aws_ses_event.rb
218
218
  - lib/sincerely/services/events/aws_ses_open_event.rb
219
+ - lib/sincerely/services/events/aws_ses_reject_event.rb
219
220
  - lib/sincerely/services/process_delivery_event.rb
220
221
  - lib/sincerely/templates/email_liquid_template.rb
221
222
  - lib/sincerely/templates/notification_template.rb