effective_messaging 0.6.1 → 0.7.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: e8f7b3818a8990fe5e7fcb8c6babf0e8e16496005adc802797a84d47909ed34d
4
- data.tar.gz: 6026f09a4290bcd7e9dea0a0e894186587a33d4e86e46389369b8435a84fce3a
3
+ metadata.gz: 73199ced9030a535adc9772cad3cca3492b88b7281e2121904bee5f048acdd25
4
+ data.tar.gz: f352bbee5a36e6daebbf10550f52282866af415545fb03c96768f95c49a99193
5
5
  SHA512:
6
- metadata.gz: e15970010165ba1a8ff458b0dc4799a351045f920e1ebb03e206f0b2ba733413e7d389d38acbd741358db30baff0d7b8fbdbb3df757f3fc7995017d9c2a5f791
7
- data.tar.gz: 13eabe664412672eb12a698e26093b32c211a504b56d5f3778c8cf0d7831228ee66349fc3588e38bbbf7f48b10b7600287a3bd00904cff913f79949911796150
6
+ metadata.gz: 65dd0eefa19a6ccc0c4b650b21897571072de0b8114c6b76a8ca16f5d96c3383b68ceef5daaf626a6452de1085e5198ac59144828fb19db48f899047deea6aad
7
+ data.tar.gz: 1e00a87ef99341168dc99a0b43ce7a03e8325f1408435a08235d1fa8832616c21261a60371c466fc779453ccf689cf16f47c25b4b6e992fdae7427faf0037be8
@@ -11,11 +11,7 @@ module Effective
11
11
  raise('expected user to have an email') unless user.try(:email).present?
12
12
 
13
13
  @assigns = chat_assigns(chat, user: user).merge(assigns_for(chat_user))
14
-
15
- subject = subject_for(__method__, "New Message - #{chat}", chat, opts)
16
- headers = headers_for(chat, opts)
17
-
18
- mail(to: user.email, subject: subject, **headers)
14
+ mail(to: user.email, **headers_for(chat, opts))
19
15
  end
20
16
 
21
17
  protected
@@ -2,6 +2,8 @@ module Effective
2
2
  class NotificationsMailer < EffectiveMessaging.parent_mailer_class
3
3
  include EffectiveMailer
4
4
 
5
+ # This is not an EffectiveEmailTemplatesMailer
6
+
5
7
  def notify(notification, opts = {})
6
8
  raise('expected an Effective::Notification') unless notification.kind_of?(Effective::Notification)
7
9
 
@@ -56,7 +56,8 @@
56
56
  %p The following email notification will be sent
57
57
 
58
58
  - f.object.from ||= EffectiveMessaging.mailer_froms.first
59
- = f.select :from, EffectiveMessaging.mailer_froms
59
+ = f.select :from, mailer_froms_collection()
60
+
60
61
  = f.email_field :bcc
61
62
  = f.text_field :subject
62
63
  = f.text_area :body, rows: 20
@@ -1,3 +1,3 @@
1
1
  module EffectiveMessaging
2
- VERSION = '0.6.1'.freeze
2
+ VERSION = '0.7.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.6.1
4
+ version: 0.7.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: 2023-10-25 00:00:00.000000000 Z
11
+ date: 2023-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails