recourse 7.8.0 → 7.8.1

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: ef994330ff07b59a25b51df0085cb01c2dc185eeb894dffdc5b8c76da6649fce
4
- data.tar.gz: c624dbd0807e00bfe19b19f7a0fe413899cefdc315d86992e15f777792283a56
3
+ metadata.gz: db928d015c6b427908eac64f93319534dafb40dd089916ab38782241ba6264dd
4
+ data.tar.gz: 68abc102048e76b5440c010cba4f039e2c5388496c258bc8cc73c23adadfb940
5
5
  SHA512:
6
- metadata.gz: 28a0ce06e41b63c192c14867dbae545d12cf151bc0e577c4214a67b44e3b4331198d4d82b0a3da3972eb385120245d7c87b04b0b8f1c98114eee876f9a4c94bf
7
- data.tar.gz: 336d2192bdfe954b7363ff45249b597e44f8481d2efe58469deeceee40eff786456253cf2b354910b2dbe8f5ce07ee101e7852a627d02a90a910151716fa54cf
6
+ metadata.gz: ce01d852728a901751c26b717fa7008143a36b96038cf9e672f121a38c3929d83bd24b4e45575bbe13439362a850a11a513288e4bed372678e2d4385071c833d
7
+ data.tar.gz: 798c8ccef55728658d9ec54b7a5076b80c6f83888e8c6728ba53958445ee0b4c12c599744c88134650c3ec4989fb690dd4480ecf280b2f9751cefd14c20c0e92
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.8.1 - 2026-09-20
11
+
12
+ * [FIX] A retrieval route is named after its resource
13
+
14
+ A collection route takes its name from the scope around it, so four retrievable
15
+ resources under one parent all answered to `provider_retrieval` and only the first
16
+ kept the name. Each is `provider_visits_retrieval` now, and the other three have a
17
+ path helper again.
18
+
10
19
  ## 7.8.0 - 2026-09-20
11
20
 
12
21
  * [FEATURE] A resource may say its rows can be fetched again
@@ -46,7 +46,11 @@ module Recourse
46
46
  # neither.
47
47
  def draw_retrieval
48
48
  Controllers.define_missing [current_module, 'retrievals'].compact.join('/')
49
- collection { resource :retrieval, only: :create }
49
+ # Named after the resource as well as the parent: a collection route takes its
50
+ # name from the scope around it, so four retrievals under one parent would all
51
+ # answer to `provider_retrieval` and only the first would keep the name.
52
+ named = "#{parent_resource.name}_retrieval"
53
+ collection { resource :retrieval, only: :create, as: named }
50
54
  end
51
55
 
52
56
  # The row a table's bookmark square writes: one record kept by whoever is looking,
@@ -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.8.0'
3
+ VERSION = '7.8.1'
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.8.0
4
+ version: 7.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - claudiob