nuntius 1.4.12 → 1.4.13

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: e8ef496cc1318a53abc2466b813146bbe86f28cbfc2e2ec5e32956e1189007cb
4
- data.tar.gz: 4bfdacc8786460d484f635a70dfb92add44d31928dc068f9e41664730352ec22
3
+ metadata.gz: b66852f99b565e240fbbfc95c3f63a658cc6570a6a1ab44d322d6429116e5c44
4
+ data.tar.gz: 7b3159843eb6553b109f670dfd483c2616b5dc8cb3b0a2506afb97d8d00bb52a
5
5
  SHA512:
6
- metadata.gz: abc30a1e3bad34fe6b7cbbc0a4b1cfef187ea0e9528039b248aebcee50dcf4c6604d85d855555227c8a35a2a0ba383a9924bbd0bb5f39d0211b78fd074627972
7
- data.tar.gz: a539160365f1f8cfab219a8ad0b582241c8a2cfe1bb8b397d0b0050f805f9fd42c8d6ae5d43dc844c0da542af46c2c8858de7d4b63d7f8d35af4c22ab2ffb920
6
+ metadata.gz: 282cfdb7b4597733bc32d2b5045c4784f327c668568ad20a912d4a3aa9524af361fde8d6c717e121e03423b901cc8a0fd8f4af57e64a0aa182ca3ce1fc459eb8
7
+ data.tar.gz: 210f4b291af759c117e4a2b2fff0e9a07fcc4d59d7be0978ade4b7c65ef8c3b61a51444dc5c29415418e62d755e7b03441852b241c51f9db737f93066c3cca3a
@@ -15,6 +15,7 @@ module Nuntius
15
15
  setting_reader :ssl, required: false, default: false, description: "Whether to use SSL or not"
16
16
 
17
17
  def deliver
18
+ return no_recipient if message.to.blank?
18
19
  return block unless MailAllowList.new(settings[:allow_list]).allowed?(message.to)
19
20
  return block if Nuntius::Message.where(status: %w[complaint bounced], to: message.to).count >= 1
20
21
 
@@ -85,6 +86,11 @@ module Nuntius
85
86
  message
86
87
  end
87
88
 
89
+ def no_recipient
90
+ message.status = "no_recipient"
91
+ message
92
+ end
93
+
88
94
  private
89
95
 
90
96
  def message_url(message)
@@ -4,15 +4,13 @@ module Nuntius
4
4
  class MailTransport < BaseTransport
5
5
  # We split per email address, to allow easy resends
6
6
  def deliver(message)
7
- message.html = Inky::Core.new.release_the_kraken(message.html)
8
-
9
7
  premailer = Premailer.new(message.html, with_html_string: true)
10
8
  message.html = premailer.to_inline_css
11
9
  message.text = premailer.to_plain_text
12
10
 
13
11
  message.request_id = SecureRandom.uuid
14
12
 
15
- tos = message.to.split(/[\s;,]+/)
13
+ tos = message.to.to_s.split(/[\s;,]+/)
16
14
 
17
15
  messages = []
18
16
  message.to = tos.first
@@ -2,8 +2,8 @@
2
2
  = sts.card :subscriber, title: @list.name do |card|
3
3
  - card.with_action
4
4
  - if @subscriber.unsubscribed_at.present?
5
- = link_to 'Resubscribe', subscribe_subscriber_path(@subscriber), data: { turbo_method: :post }, class: 'button'
5
+ = link_to t('.resubscribe'), subscribe_subscriber_path(@subscriber), data: { turbo_method: :post }, class: 'button'
6
6
  - else
7
- = link_to 'Unsubscribe', unsubscribe_subscriber_path(@subscriber), data: { turbo_method: :post }, class: 'button primary'
7
+ = link_to t('.unsubscribe'), unsubscribe_subscriber_path(@subscriber), data: { turbo_method: :post }, class: 'button primary'
8
8
 
9
9
  p== sanitize @list.description
@@ -178,6 +178,10 @@ en:
178
178
  tab:
179
179
  Nuntius templates: Templates
180
180
  title: Templates
181
+ subscribers:
182
+ show:
183
+ unsubscribe: Unsubscribe
184
+ resubscribe: Resubscribe
181
185
  context_menu:
182
186
  resend: Resend
183
187
  root: Root
@@ -1,5 +1,5 @@
1
1
  nl:
2
- subscriber_url_text: "Klik hier om uit te schrijven"
2
+ subscriber_url_text: "Klik hier om je uit te schrijven"
3
3
  choose_files: Kies bestanden
4
4
  activerecord:
5
5
  attributes:
@@ -193,6 +193,10 @@ nl:
193
193
  tab:
194
194
  Nuntius templates: Templates
195
195
  title: Templates
196
+ subscribers:
197
+ show:
198
+ unsubscribe: Uitschrijven
199
+ resubscribe: Opnieuw inschrijven
196
200
  context_menu:
197
201
  resend: Verstuur opnieuw
198
202
  root: Root
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "auxilium"
4
- require "inky"
5
4
  require "faraday"
6
5
  require "faraday/follow_redirects"
7
6
  require "liquidum"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Nuntius
4
- VERSION = "1.4.12"
4
+ VERSION = "1.4.13"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nuntius
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.12
4
+ version: 1.4.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom de Grunt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-02-27 00:00:00.000000000 Z
11
+ date: 2026-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: apnotic
@@ -108,20 +108,6 @@ dependencies:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
110
  version: 1.8.5
111
- - !ruby/object:Gem::Dependency
112
- name: inky-rb
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - "~>"
116
- - !ruby/object:Gem::Version
117
- version: '1.4'
118
- type: :runtime
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - "~>"
123
- - !ruby/object:Gem::Version
124
- version: '1.4'
125
111
  - !ruby/object:Gem::Dependency
126
112
  name: labelary
127
113
  requirement: !ruby/object:Gem::Requirement