effective_messaging 0.6.0 → 0.7.0

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: fc984bf85e3e2cf47b5ceaae61d98dc2b336ea34d1ed802c439c7854beabc3b0
4
- data.tar.gz: 2c695ed99c62e9b4d0d9a42f64d557fdabc8f151d0d5c32b28ed881c4de13385
3
+ metadata.gz: 73199ced9030a535adc9772cad3cca3492b88b7281e2121904bee5f048acdd25
4
+ data.tar.gz: f352bbee5a36e6daebbf10550f52282866af415545fb03c96768f95c49a99193
5
5
  SHA512:
6
- metadata.gz: 462f2e88796ea1a1b9e0af27abafe25c580f42ee8b75259ecde6af4a99c1044ba765f7f9c13c2764337f82e179fc2cf9e72e1e33420ff1a270fffef35b0df75d
7
- data.tar.gz: 95c16f285e650a356c08c85b922385246912bb6c14fab53d406e722e9010bc123266bcc0941a94ca93ec98fb27d3e83fd3f7ccb4b1623bf90a3a7b66a2da73e4
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.0'.freeze
2
+ VERSION = '0.7.0'.freeze
3
3
  end
@@ -9,7 +9,6 @@ module EffectiveMessaging
9
9
  [
10
10
  :chats_table_name, :chat_users_table_name, :chat_messages_table_name, :notifications_table_name, :notification_logs_table_name,
11
11
  :layout,
12
- :froms,
13
12
  :mailer, :parent_mailer, :deliver_method, :mailer_layout, :mailer_sender, :mailer_froms, :mailer_admin, :mailer_subject
14
13
  ]
15
14
  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.0
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