recourse 5.12.1 → 5.12.2

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: 2673050153284f98f9c518b2379f0dc0f8c0d2cfb28bcbfb19060134279f1f2d
4
- data.tar.gz: 2b3b2f97109390472274e6867f96a4feb693ddddbdea203bfb391a8add857038
3
+ metadata.gz: 6dde202165a7bfa0c497a0ae06b118b3108536014fe7b439c6ef0f658f2bb295
4
+ data.tar.gz: 17d8781fda77d53d5bdf01199146342be707f634b955259a4499969c0341fdd6
5
5
  SHA512:
6
- metadata.gz: 8cb6c69def780562139d6e5a545a66c4c64b36ab1bcf79e4e8cdb1fb3e31a150644a2eafb4ff433a50f9d76b224537fa45c9655c347d93721170d6d3c848ef03
7
- data.tar.gz: e1c2309f6894f13a1b24b2eb52c85672b80ba5b75b1ff99727288157cac998605c2f88ccda86a2f93fc84bd4f4e9e86a3993b79fdcc7857cf3ee8731309af5e9
6
+ metadata.gz: adf3b5711fd9327cde802204c2d0a3a69c8943b602e133ba66863106a621719c46dc507706de2bfedc42116e5f97dcf751fa8a333c772c8b71fa747cb4e7d087
7
+ data.tar.gz: 41d333d13e8e3d5645b3314c8ef2ab61137fae5cf381e4197c7598893e45c188e624a5eafb3dd1fc813e39adf504448357726bf4c9b1028e663f37f63e2d8e49
@@ -22,14 +22,15 @@ module Recourse
22
22
  end
23
23
 
24
24
  # `Messages`, and `Booked messages` where a namespace leads — the same shape
25
- # the counted tab keeps. Humanized off the path for an index, since nothing else
26
- # answers; the model's own singular for one record, since there is a model to ask
27
- # and only ever one row of it. That singular is the word the bare action's button
28
- # takes, from the same split, so a tab and a button under one record cannot come
29
- # to disagree about what the resource is called.
25
+ # the counted tab keeps. The model's own word either way, plural for an index and
26
+ # singular for the one record a singular resource keeps, humanized off the path
27
+ # only where the name resolves to no model: a tab reading `Zips` beside a sidebar
28
+ # reading `ZIPs` is one resource called two things. That singular is the word the
29
+ # bare action's button takes, from the same split, so a tab and a button under one
30
+ # record cannot come to disagree about what the resource is called.
30
31
  def routed_tab_name(name, namespace, action)
31
32
  lead = namespace_words namespace
32
- title = action == :show ? Recourse.known_singular(name) : name.humanize
33
+ title = action == :show ? Recourse.known_singular(name) : Recourse.known_title(name)
33
34
  title = Recourse.downcase title if lead.present?
34
35
 
35
36
  [lead.presence&.upcase_first, title].compact.join ' '
@@ -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 = '5.12.1'
3
+ VERSION = '5.12.2'
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: 5.12.1
4
+ version: 5.12.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - claudiob