recourse 7.11.1 → 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: 5d5b8233bcbb5c24c4df425ab9c5a43f5db42baf5f5801b29ec118ce792871bc
4
- data.tar.gz: 7c5a0bd68a7d5c22d752b2a8fdb2667d0291b6d6bbfbc376218cb5186fa5a2ed
3
+ metadata.gz: 6e35c26234c6a52cdd8f81deeabc53416701caa7895494f8cc39e61169d469c2
4
+ data.tar.gz: 0b98268a91af045f9266a0bf3a6d68cd107b0a733111968675d1ef21704c78c1
5
5
  SHA512:
6
- metadata.gz: 67e9c27e1c7489a189e9a001b1c3d191f68ef480555a06f701d68d561bbc8c97f66de6eb307939e6c1bb980fc7afd5ec1b9195f48289e28cc3450e0148de8e59
7
- data.tar.gz: b0415018f1b632c3da2d61e1a77e8b96aafced9fcdbac997a4cb316821f30311805f7ed2e91e6e93d2a270ccbffae119394835f93d072becf9395f18aa159147
6
+ metadata.gz: d00986e3679e75328b6f1e946fc60145b9a19a5faf2e6829523242b6a28800474d5bcd4de838ca4718f0e69b7d5bef618b37c71e9a0d94eda3de9e40a88ad6bc
7
+ data.tar.gz: 18826349bd88037bde697715eff5dd68f6e39d0ce0ff937118062cd6997721f75b4928bbf2174da3231ffd4356aab7e0c1913ecc614d05bea18e00514224e362
data/CHANGELOG.md CHANGED
@@ -7,6 +7,20 @@ 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
+
17
+ ## 7.11.2 - 2026-09-26
18
+
19
+ * [FIX] The count in a tab is delimited
20
+
21
+ `3,506 aircrafts`, not `3506 aircrafts`: the same figure the table's own count and the
22
+ footer already draw with delimiters.
23
+
10
24
  ## 7.11.1 - 2026-09-26
11
25
 
12
26
  * [FIX] A tooltip in the sidebar's foot closes when its icon is clicked
@@ -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 }
@@ -50,7 +50,7 @@ module Recourse
50
50
  # its children out with a gap, and two of them would stand a gap and a space apart.
51
51
  def tab_label_for(icon, words, count = nil)
52
52
  words = tag.span words, class: 'recourse-tab-word' if icon || count
53
- words = tag.span safe_join([count, words], ' ') if count
53
+ words = tag.span safe_join([number_with_delimiter(count), words], ' ') if count
54
54
 
55
55
  safe_join [icon && tag.i(class: "bi bi-#{icon}"), words].compact, ' '
56
56
  end
@@ -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.1'
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.1
4
+ version: 7.11.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - claudiob