effective_messaging 0.9.2 → 0.10.0

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: c4b70490443e61bf4ce7468fc05d435f9026a65679f5b5a25c066d2eecff1fa6
4
- data.tar.gz: f16f310daf99444b606238ac3fe36b1e1f8eef83b1699583d1899838f503ad03
3
+ metadata.gz: ff5773a733b37822d06ddfb3665e1fa98f17050e31bae37f0a8eb9a5dad08421
4
+ data.tar.gz: ab21c0e35da078b4fa9774d68daf628901f0f8bfd5a8813a8b35373c2eecfbf8
5
5
  SHA512:
6
- metadata.gz: 94cb5ead9ad7a26b4d1d586d304a4e7aee4896e9b24ece8856342a147acb009de016acb73091cd3e5364d4ddc01250b061f2ff9daab776ef418902ad0918b94a
7
- data.tar.gz: e6089fd230b81f137f8d73247f9ce4af5fce9ab17ed6a9b989b10f01ad82318884e197c024dbffbaf49a4e839656edbe59d8f76c160c24c9fb00a9004e764de5
6
+ metadata.gz: 7a333c9f9f0b06628d3db45c5dab6238ddd53ef89fc3bc8f6bd680b290614e745d8022d995e25563b4c3268a349d98ec0b0966eae250b434146d0908e37bbdf2
7
+ data.tar.gz: 04da0ceeb655b600b463809647c512598db314ca05928b539d72d88911b15bc1786b9fb031b1e654d004006935b874dfc2fc8746bf14bf867273e542eeee642e
@@ -18,7 +18,7 @@ module Effective
18
18
 
19
19
  # Use postmark broadcast-stream
20
20
  if defined?(Postmark)
21
- opts.merge!(message_stream: 'broadcast-stream')
21
+ opts.merge!(message_stream: 'broadcast-stream')
22
22
  append_unsubscribe_link!(notification, opts)
23
23
  end
24
24
 
@@ -60,9 +60,8 @@ module Effective
60
60
  "Please understand that unsubscribing means you will no longer receive mandatory messages and announcements."
61
61
  ].join(" ")
62
62
 
63
- if notification.email_notification_html?
64
- opts.merge!(body: "#{opts[:body]}\r\n<br/><p>#{unsubscribe}</p>")
65
- else
63
+ # Email templates have the unsubscribe link in the footer already
64
+ unless notification.email_notification_html?
66
65
  opts.merge!(body: "#{opts[:body]}\r\n\r\n#{unsubscribe}")
67
66
  end
68
67
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveMessaging
2
- VERSION = '0.9.2'.freeze
2
+ VERSION = '0.10.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_messaging
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-11 00:00:00.000000000 Z
11
+ date: 2024-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails