messaged 0.2.0 → 0.2.8

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: fe41021cc17ab7a3f9b46a8c036345c738b54539eda08f6a176604d0cf75c85b
4
- data.tar.gz: d16f56a11dc02c6117e4965e02ac845451b85ae353351fa22a16bba292999d05
3
+ metadata.gz: 83dbe2b802b9185d2eca5133b20a91dcb79d1fc7e4f07d580a80432934ad58e5
4
+ data.tar.gz: 3d701585998d2d0f07add3122bc78e8ab40366bd880b9f03e4170b84b901433d
5
5
  SHA512:
6
- metadata.gz: 63a7e3bd9685a055e0f1f29b0d807036570f7114997d0fd7bde2e155f99b98fe1267f55843baf7d8319ca9e615306d7be92c45fb9ba6df4cbeac353a2fce9a75
7
- data.tar.gz: ddee84cb919cd85685050f5aa550fab336486323b6e8645180e39b8b2b9d78d32f5c407cfc96089521c1ebdcada8c2d75d7dc86b07259c2908a399e15efc64b3
6
+ metadata.gz: 1e6d9b57b7e4961d1bec9c3c4022b575a5dde1e10703ddc37e83e050e93e094534b144563ea6addc064c4d314dfdda6baacbb09d702185f7da5c3be217f3b022
7
+ data.tar.gz: 7dfb55ac8c374e6fdd94c4f1bf939fb7c0245a06e96d2f89fc23e25022e36ceb08ea5ebe8884758bea331b79cd64492b4c468b8546161bfe235f2724e803245e
@@ -16,12 +16,12 @@ module Messaged
16
16
  end
17
17
  belongs_to :messaged_room, optional: true, class_name: 'Messaged::Room'
18
18
 
19
- has_rich_text :content
19
+ has_rich_text :rich_content
20
20
  validates :content, presence: true
21
21
 
22
- after_create_commit -> { broadcast_append_later_to ["messages"], target: "messages", partial: "messaged/messages/message" }
23
- after_update_commit -> { broadcast_replace_later_to ["messages"], target: "#{dom_id(self)}", partial: "messaged/messages/message" }
24
- after_destroy_commit -> { broadcast_remove_to ["messages"] }
22
+ # after_create_commit -> { broadcast_append_later_to ["messages"], target: "messages", partial: "messaged/messages/message" }
23
+ # after_update_commit -> { broadcast_replace_later_to ["messages"], target: "#{dom_id(self)}", partial: "messaged/messages/message" }
24
+ # after_destroy_commit -> { broadcast_remove_to ["messages"] }
25
25
 
26
26
  # Messages should default to the person sending them, otherwise
27
27
  # fallback to the chat room, and finally tenant if they exist.
@@ -20,6 +20,7 @@ module Messaged
20
20
  validates :title, presence: true
21
21
 
22
22
  has_many :messaged_messages, dependent: :destroy, class_name: 'Messaged::Message', foreign_key: 'messaged_room_id'
23
+ has_many :recipients, class_name: Messaged.user_class_name
23
24
 
24
25
  # Rooms should default to the person sending them, otherwise
25
26
  # fallback to the chat room, and finally tenant if they exist.
@@ -7,7 +7,7 @@
7
7
  Messaged.user_class = 'User'
8
8
 
9
9
  # This method is used by Messaged controllers and views to fetch the currently signed-in user
10
- Messaged.current_user_method = :"current_#{Messaged.user_class_name.demodulize.underscore}"
10
+ Messaged.current_user_method = :current_user
11
11
 
12
12
  # ==> Multi-tenant Configuration
13
13
  # The name of the class your app uses for your tenants.
@@ -1,3 +1,3 @@
1
1
  module Messaged
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: messaged
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - cjilbert504, ianrandmckenzie
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-09 00:00:00.000000000 Z
11
+ date: 2024-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -73,7 +73,6 @@ files:
73
73
  - app/models/messaged/null_user.rb
74
74
  - app/models/messaged/room.rb
75
75
  - app/models/messaged/user_extender.rb
76
- - app/views/layouts/messaged/application.html.erb
77
76
  - config/importmap.rb
78
77
  - config/locales/en.yml
79
78
  - config/routes.rb
@@ -1,15 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <title>Messaged</title>
5
- <%= csrf_meta_tags %>
6
- <%= csp_meta_tag %>
7
-
8
- <%= javascript_importmap_tags %>
9
- </head>
10
- <body>
11
-
12
- <%= yield %>
13
-
14
- </body>
15
- </html>