recourse 7.11.2 → 7.11.3

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: 96bb337b5a0517cc5f7715b898c0cffd01c33fc6b8e7a6750f939b7361879fd4
4
- data.tar.gz: e77f1f0f2f4a42955669e988302bff0df520aa98a8cb7ce0d171cda7e7bd85ea
3
+ metadata.gz: 6e35c26234c6a52cdd8f81deeabc53416701caa7895494f8cc39e61169d469c2
4
+ data.tar.gz: 0b98268a91af045f9266a0bf3a6d68cd107b0a733111968675d1ef21704c78c1
5
5
  SHA512:
6
- metadata.gz: 9d203812049cdcd045323970939f23c4aeb825e5cd904b949e511b8700bd24781ae5cb36ef83c41b7e90547665a5c255c00c4158425a3c7a1c04b86d9182a223
7
- data.tar.gz: 17c113285f5c356e86fad57838069d9c42b8c272d19950649be5f992a674de2bf1b1e6a60e75be220ec77ea48e15462459127cb94b7ba6ffffe5a2c9372576da
6
+ metadata.gz: d00986e3679e75328b6f1e946fc60145b9a19a5faf2e6829523242b6a28800474d5bcd4de838ca4718f0e69b7d5bef618b37c71e9a0d94eda3de9e40a88ad6bc
7
+ data.tar.gz: 18826349bd88037bde697715eff5dd68f6e39d0ce0ff937118062cd6997721f75b4928bbf2174da3231ffd4356aab7e0c1913ecc614d05bea18e00514224e362
data/CHANGELOG.md CHANGED
@@ -7,6 +7,13 @@ For more information about changelogs, check [Keep a Changelog](http://keepachan
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## 7.11.3 - 2026-10-05
11
+
12
+ * [FIX] A host without Action Cable draws every index
13
+
14
+ Its tables simply do not redraw themselves when a row changes, rather than raising
15
+ `uninitialized constant ActionCable` from the subscription the index used to render.
16
+
10
17
  ## 7.11.2 - 2026-09-26
11
18
 
12
19
  * [FIX] The count in a tab is delimited
@@ -17,10 +17,11 @@ module Recourse
17
17
  # `broadcasts_refreshes` would send updates and destroys to per-record streams
18
18
  # the index never hears. The ivar dies with the class on a dev reload, so the
19
19
  # next request attaches to the fresh class again. Quiet without turbo-rails and
20
- # Active Job, which is when the model has no `broadcasts_refreshes_to`.
20
+ # Active Job, which is when the model has no `broadcasts_refreshes_to`, and
21
+ # without Action Cable, which the index would subscribe through.
21
22
  def recourse_broadcast
22
23
  return if recourse_broadcasting? || !recourse_broadcasts?
23
- return unless respond_to? :broadcasts_refreshes_to
24
+ return unless respond_to?(:broadcasts_refreshes_to) && defined?(ActionCable)
24
25
 
25
26
  @recourse_broadcasting = true
26
27
  broadcasts_refreshes_to ->(record) { record.model_name.plural }
@@ -1,4 +1,4 @@
1
1
  module Recourse
2
2
  # Version of the gem, read by the gemspec and by hosts checking compatibility.
3
- VERSION = '7.11.2'
3
+ VERSION = '7.11.3'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recourse
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.11.2
4
+ version: 7.11.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - claudiob