effective_messaging 0.6.1 → 0.7.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: e8f7b3818a8990fe5e7fcb8c6babf0e8e16496005adc802797a84d47909ed34d
4
- data.tar.gz: 6026f09a4290bcd7e9dea0a0e894186587a33d4e86e46389369b8435a84fce3a
3
+ metadata.gz: 5ba14b4ea2b24940ece309555b7879f4d94ea043579c2c742ab7a06a962dbc6f
4
+ data.tar.gz: 42a326bea211a01340dc3128476170107aba231634ea9d133f77b913e8e9be1c
5
5
  SHA512:
6
- metadata.gz: e15970010165ba1a8ff458b0dc4799a351045f920e1ebb03e206f0b2ba733413e7d389d38acbd741358db30baff0d7b8fbdbb3df757f3fc7995017d9c2a5f791
7
- data.tar.gz: 13eabe664412672eb12a698e26093b32c211a504b56d5f3778c8cf0d7831228ee66349fc3588e38bbbf7f48b10b7600287a3bd00904cff913f79949911796150
6
+ metadata.gz: b8dc9a1d4c7324144721c38380bb8fb728a375e50bf7cc02dfc5ed40b87e8f392e6967ddf61186bf13d88a69a1bd888ef61ca95f3a0c82144fdcd9de440a24a4
7
+ data.tar.gz: 5dbbea251f9d27a09b453ff2d6be8b09676675190e7a04f50010afe684ca0eaef0ad7f05c65855c43dea39ffe99f6329e9f10cf4a8cca8d20da910f5ca2bbbf2
@@ -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,6 +1,5 @@
1
1
  ---
2
2
  subject: 'New message {{ chat.title }}'
3
- from: 'admin@example.com'
4
3
  ---
5
4
  Hello {{ user.name }},
6
5
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveMessaging
2
- VERSION = '0.6.1'.freeze
2
+ VERSION = '0.7.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.6.1
4
+ version: 0.7.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: 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