recourse 7.2.1 → 7.3.0

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: b5902f16def7afce17cc0aec2d67eb1255ffc504af58cbd766146a4f3e7f3077
4
- data.tar.gz: 3e917516c8a76bdc0fe30497e02d7181a886d96f500cd765dfbe6202f4785452
3
+ metadata.gz: 9f6b6c7f06985a9e98ef9544e3f7494dca418d4a962fe9c1690d20e05b057104
4
+ data.tar.gz: 9ea935c4fb5c7b1ad8d37f4d0001dc3c0d59e0f5b50b8d383bfa49c9441db7d1
5
5
  SHA512:
6
- metadata.gz: d1a6d35fa1bd005290644f5f8981ac7a7837fda2f6bb9919b3225518ab41bacdf497d261827116b43928b1cf1f918eea3b5030de38faed3bd195aa257db6f798
7
- data.tar.gz: e242d7c656755f01f53c1e2f3c1f9b75c89bbc5654b50a3dc44e6bb7f768c64321572c024e7d52fe036dcfc9c65bed2eaee7464815617e2294bfcbecc64350dc
6
+ metadata.gz: a146580b87daa86917b16a3fab8c2029f0d72d2ccf40a877550537b1c058e87caa294f6d66996909a0398585191e3d70e70a835e4dd606eca08d14afea1c5803
7
+ data.tar.gz: 37a1dcaa862e424001eddfccf0018951bb62ccf6762c7c2d19995946f1fb72fca99ce7047c82f586b4154a9af080aa167e5a38edb9b4641902011b6dd12d1fa2
data/CHANGELOG.md CHANGED
@@ -7,6 +7,15 @@ For more information about changelogs, check [Keep a Changelog](http://keepachan
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## 7.3.0 - 2026-09-20
11
+
12
+ * [CHANGE] A boolean reads as the word a reader answers with
13
+
14
+ A cell and a value read `true` and `false`, which is what the database keeps and not
15
+ what anybody asked. Both now read `Yes` and `No` — the two the filter menu beside the
16
+ column already offered — and a nullable column nobody answered reads as the dash every
17
+ other empty value reads as, rather than as a no.
18
+
10
19
  ## 7.2.1 - 2026-09-20
11
20
 
12
21
  * [FIX] A refused change keeps the card it was made in
@@ -18,12 +18,13 @@ module Recourse
18
18
  end
19
19
 
20
20
  # One value, formatted by the kind its column holds — the one ladder a table
21
- # cell and a show page's value both come down, so a boolean is the same icon
21
+ # cell and a show page's value both come down, so a boolean is the same word
22
22
  # and an enum the same badge on either. A block, where the caller has one,
23
23
  # marks the search terms inside whichever arm ends up as words.
24
24
  def formatted_attribute(column, value, &)
25
25
  kind = attribute_kind column
26
26
  return listed Array(value) if kind == :list
27
+ return affirmed value if kind == :boolean
27
28
  return formatted_number kind, column, value if numeric_kind? kind
28
29
 
29
30
  formatted_text kind, value, &
@@ -51,6 +52,15 @@ module Recourse
51
52
  end
52
53
  end
53
54
 
55
+ # The word a reader answers with, which is the word the filter beside the column
56
+ # already offers. A column that was never answered holds neither, so it reads as
57
+ # the dash every other empty value does rather than as a no.
58
+ def affirmed(value)
59
+ return if value.nil?
60
+
61
+ t value ? 'recourse.affirmative' : 'recourse.negative'
62
+ end
63
+
54
64
  # One whole web address is a value to follow rather than to read, and anything
55
65
  # else is words — which the caller may have marking of its own for.
56
66
  def linked_or_marked(value, &)
@@ -18,7 +18,7 @@ module Recourse
18
18
  end
19
19
 
20
20
  # What the record says for one column, or a dash where it says nothing. A
21
- # boolean says something either way, and an icon says it, so only a value that
21
+ # boolean says something either way, and a word says it, so only a value that
22
22
  # formats to nothing at all reads as nothing.
23
23
  def resource_value(column)
24
24
  value = formatted_value column
@@ -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.2.1'
3
+ VERSION = '7.3.0'
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.2.1
4
+ version: 7.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - claudiob