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 +4 -4
- data/app/providers/nuntius/smtp_mail_provider.rb +6 -0
- data/app/transports/nuntius/mail_transport.rb +1 -3
- data/app/views/nuntius/subscribers/show.html.slim +2 -2
- data/config/locales/en.yml +4 -0
- data/config/locales/nl.yml +5 -1
- data/lib/nuntius/engine.rb +0 -1
- data/lib/nuntius/version.rb +1 -1
- metadata +2 -16
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b66852f99b565e240fbbfc95c3f63a658cc6570a6a1ab44d322d6429116e5c44
|
|
4
|
+
data.tar.gz: 7b3159843eb6553b109f670dfd483c2616b5dc8cb3b0a2506afb97d8d00bb52a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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 '
|
|
5
|
+
= link_to t('.resubscribe'), subscribe_subscriber_path(@subscriber), data: { turbo_method: :post }, class: 'button'
|
|
6
6
|
- else
|
|
7
|
-
= link_to '
|
|
7
|
+
= link_to t('.unsubscribe'), unsubscribe_subscriber_path(@subscriber), data: { turbo_method: :post }, class: 'button primary'
|
|
8
8
|
|
|
9
9
|
p== sanitize @list.description
|
data/config/locales/en.yml
CHANGED
data/config/locales/nl.yml
CHANGED
|
@@ -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
|
data/lib/nuntius/engine.rb
CHANGED
data/lib/nuntius/version.rb
CHANGED
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.
|
|
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-
|
|
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
|