effective_messaging 0.9.2 → 0.10.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c4b70490443e61bf4ce7468fc05d435f9026a65679f5b5a25c066d2eecff1fa6
4
- data.tar.gz: f16f310daf99444b606238ac3fe36b1e1f8eef83b1699583d1899838f503ad03
3
+ metadata.gz: 19db404aed321956644e50e5997409d23e21b4dd086f41057cf6c254a96bffc6
4
+ data.tar.gz: 5a5379c2ce0f24e310f768c9959a1853e2a351714a0d9b8068530a306ad7ac46
5
5
  SHA512:
6
- metadata.gz: 94cb5ead9ad7a26b4d1d586d304a4e7aee4896e9b24ece8856342a147acb009de016acb73091cd3e5364d4ddc01250b061f2ff9daab776ef418902ad0918b94a
7
- data.tar.gz: e6089fd230b81f137f8d73247f9ce4af5fce9ab17ed6a9b989b10f01ad82318884e197c024dbffbaf49a4e839656edbe59d8f76c160c24c9fb00a9004e764de5
6
+ metadata.gz: 925c83d215d7201a2cf4389ab6e7d853873346266e5c2d66d409907c953200f6831b280287489ebc7c49f52653dcc33b5d997b1e58975f89231fc2e253966a6f
7
+ data.tar.gz: b6eb40d50b5c1d1e0406f43c71985d3a11dce7a7dc3762399b536f65b8dd8a50dcf201ce9e92f47283e5d23d5850ae87ceab27facba1b6fc6e14b72cab537f53
@@ -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
 
@@ -2,8 +2,7 @@
2
2
  .card
3
3
  .card-header
4
4
  %strong= chat_message.name
5
- commented
6
- = time_ago_in_words(chat_message.created_at)
7
- ago
5
+ commented on
6
+ = chat_message.created_at.strftime('%F %T')
8
7
  .card-body
9
8
  = simple_format(chat_message.body)
@@ -15,7 +15,8 @@
15
15
 
16
16
  opened
17
17
  = time_ago_in_words(chat.created_at)
18
- ago
18
+ ago on
19
+ = chat.created_at.strftime('%F')
19
20
 
20
21
  = succeed('.') do
21
22
  = pluralize(chat.chat_messages_count, etd(chat.chat_messages))
@@ -1,3 +1,3 @@
1
1
  module EffectiveMessaging
2
- VERSION = '0.9.2'.freeze
2
+ VERSION = '0.10.1'.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.1
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: 2025-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails