render_turbo_stream 2.1.1 → 2.1.2

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: ac522064ae87773819b4fdd059166e10a8bbb805de1dbbd020781f806ac6faeb
4
- data.tar.gz: a78259d9e2468305da273618929296735f3217592ed0ac2f0311e14b9c913eaf
3
+ metadata.gz: 92144d161ab6a0eee72442b7b848a140b9f439cbda17a3e41ad4a28aa5f0a8cb
4
+ data.tar.gz: 3b290864b96789968ab8ad704b1127cb37ab6c00985c11c1cd87c28a2cb87695
5
5
  SHA512:
6
- metadata.gz: b9e22fa2a8dbb9d7bb85d9fd19993ac6511c4cf9364c20da4b950b4bb368839c48f8c6ac93f31452592bc286f717d4c63107db7757731e339f1a37b871c7332a
7
- data.tar.gz: 5c13d3c56d66450c20920403cef30c18c18e0101ba0c3de86516d9db26d57edcd5c3a37866dc6e2c9052e0f2be34c2751486b29361dd93a5b1f54f5255660dc6
6
+ metadata.gz: ea284231a3dd9343643a868bde136c954e32d0347354c5127f83b64e297e81309372214490df90580f32143c9a0f1422fe8f6abb2e2e1b9f7096726fb1454896
7
+ data.tar.gz: c8719357d38e4ced162e9bc2b94401ee3e7096f6097e1402b9ac9670c3b124326da0a9ac858b9ff5a434458efd010fb50d3b8104a6da6c8902cf0697cb748973
@@ -45,6 +45,10 @@ module RenderTurboStream
45
45
  )
46
46
  end
47
47
 
48
+ def partial_to_all(action, partial, id, locals: nil)
49
+ partial_to_channel(action, 'all', partial, id, locals: locals)
50
+ end
51
+
48
52
  def partial_to_me(partial, id, action: :replace, locals: nil)
49
53
  begin
50
54
  u_id = helpers.current_user&.id
@@ -6,6 +6,7 @@ module RenderTurboStream
6
6
  turbo_stream_from "authenticated-user-#{current_user.id}"
7
7
  else
8
8
  Rails.logger.debug(" • SKIP CABLE_FROM_ME because not authenticated")
9
+ nil
9
10
  end
10
11
  end
11
12
 
@@ -15,11 +16,12 @@ module RenderTurboStream
15
16
  turbo_stream_from "all-authenticated-users"
16
17
  else
17
18
  Rails.logger.debug(" • SKIP CABLE_FROM_ALL_AUTHENTICATED_USERS because not authenticated")
19
+ nil
18
20
  end
19
21
  end
20
22
 
21
23
  def cable_from_all
22
- turbo_stream_from "all"
24
+ turbo_stream_from "all"
23
25
  end
24
26
 
25
27
  def local_model(object)
@@ -1,3 +1,3 @@
1
1
  module RenderTurboStream
2
- VERSION = "2.1.1"
2
+ VERSION = "2.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: render_turbo_stream
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - christian
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-02 00:00:00.000000000 Z
11
+ date: 2023-05-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails