recourse 5.0.1 → 5.1.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: 7a8357464f10172dc33f248b3a183bf9e63a51b1b4c78c5fab1ae96b68a6aa39
4
- data.tar.gz: 88cecc89ba2c80ee81fb6e3c58af0400708fc9aa6b980b8e40a4f9611e7ed341
3
+ metadata.gz: bc89ed83bcbaae940eaed20f48be082dc774898d05f74482b356b4eaf6ccdaa2
4
+ data.tar.gz: 6d12db3c10f106031e448badb96ae965e8ec4135d7f6bd85b78dd151ac039743
5
5
  SHA512:
6
- metadata.gz: e06ac2ef9a8e5ffa475d6d3313422e2649483482dddf7449cdc1c6e8487f932521c3efb88c6a673f94e712ef3ba5bcbcf69bc2985af33cd4356999f0cf318095
7
- data.tar.gz: 32647415aa6c438c9b1ca3837a2be956523e5867a71e224373e87d6cf75618100712f52161df64312c4d871fcd4f31a0dea2a825434214def63e49d88fa2ac51
6
+ metadata.gz: c7ef41021c4e0abd0211de0b2cceb10fd731ef1193b52f816417243263b51865c46135a6104a0daa7d17f6e57e57dfdeecf64b457f0229f3f2d66ea07bd90dbc
7
+ data.tar.gz: 30722d3d332f26c81bfe6327bfe51f5952fd2af2bb5dace8419f3f39daa3a8b72ea9f4f3000e7b0e15b33b79067f591a430a19ed3ef1707d61f64b5ab43f477e
data/CHANGELOG.md CHANGED
@@ -7,6 +7,16 @@ For more information about changelogs, check [Keep a Changelog](http://keepachan
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## 5.1.0 - 2026-09-14
11
+
12
+ * [Feature] The head past the gem's own tags is the host's, through a `recourses/head` partial
13
+
14
+ The layout named a host's icon under the four file names a Rails app might ship one at,
15
+ and fetched every one, three of them a 404 on a host that keeps its icons elsewhere. It
16
+ now renders `recourses/head` where a host — or a gem the host loads — provides one, and
17
+ writes no icon link of its own where nobody has. A host whose tab went blank writes its
18
+ icon links into that partial.
19
+
10
20
  ## 5.0.1 - 2026-09-14
11
21
 
12
22
  * [Fix] A required combobox starts empty rather than on its first option
@@ -41,15 +41,10 @@
41
41
  <%= render 'recourses/scheme' %>
42
42
  <%= primary_color_style %>
43
43
 
44
- <%# The host's own icon, under whichever of the four names it ships it: Rails 8
45
- writes `icon.png` and `icon.svg`, and an older app has a `favicon`. The browser
46
- takes the first it can fetch, so an app that has done nothing but draw a route
47
- still wears its own tab. -%>
48
- <link rel='icon' href='/icon.png' type='image/png'>
49
- <link rel='icon' href='/icon.svg' type='image/svg+xml'>
50
- <link rel='icon' href='/favicon.ico' sizes='any'>
51
- <link rel='icon' href='/favicon.png' type='image/png'>
52
- <link rel='apple-touch-icon' href='/icon.png'>
44
+ <%# The rest of the head is the host's: whatever it puts in a `recourses/head` partial
45
+ — the icons its tab wears, say — is drawn here, from the host's own views or from a
46
+ gem it loads, and nothing is guessed at where nobody has written one. -%>
47
+ <%= render 'recourses/head' if lookup_context.exists? 'recourses/head', [], true %>
53
48
 
54
49
  <%# Turbo, Bootstrap and a Stimulus application with every controller this markup
55
50
  names, started once under `window.Stimulus`. In the head, so a controller exists
@@ -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.0.1'
3
+ VERSION = '5.1.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: 5.0.1
4
+ version: 5.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - claudiob