hanami-view 3.0.1 → 3.0.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 +4 -4
- data/CHANGELOG.md +9 -1
- data/lib/hanami/view/tilt.rb +9 -1
- data/lib/hanami/view/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3b270d38aebea10944584306a2d98739fee992ee7614d7d1044a0354d2ace9d2
|
|
4
|
+
data.tar.gz: d4b9ce9f19b22f56d6d69c1b0b07473ba2f216c32b9acefba37bb8eea161c6c4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 210a3403a40ae0b5f0dc9280bb8730f1c01645e0de3a4558a9f8d9426e6c58e187950925999cd69bc5271e003ed59f444acaddeceb22f488d58ae6eaf796b9b6
|
|
7
|
+
data.tar.gz: c7d8a0a6093ecdb535ffe862e2ff02e6ebbddd7a6ca072044a20a4064fb91c0c3f30f6fdfe66a94237195c1dec61097b3ec13f1f7a465d2c203bd817c470040b
|
data/CHANGELOG.md
CHANGED
|
@@ -19,7 +19,15 @@ and this project adheres to [Break Versioning](https://www.taoensso.com/break-ve
|
|
|
19
19
|
|
|
20
20
|
### Security
|
|
21
21
|
|
|
22
|
-
[Unreleased]: https://github.com/hanami/view/compare/v3.0.
|
|
22
|
+
[Unreleased]: https://github.com/hanami/view/compare/v3.0.2...HEAD
|
|
23
|
+
|
|
24
|
+
## [3.0.2] - 2026-08-21
|
|
25
|
+
|
|
26
|
+
### Fixed
|
|
27
|
+
|
|
28
|
+
- Ensure `Hanami::View::ERB::Engine` is still used for `.html.erb` templates with Tilt 2.9. (@timriley in #284)
|
|
29
|
+
|
|
30
|
+
[3.0.2]: https://github.com/hanami/view/compare/v3.0.1...v3.0.2
|
|
23
31
|
|
|
24
32
|
## [3.0.1] - 2026-08-14
|
|
25
33
|
|
data/lib/hanami/view/tilt.rb
CHANGED
|
@@ -19,7 +19,15 @@ module Hanami
|
|
|
19
19
|
# behavior.
|
|
20
20
|
#
|
|
21
21
|
# Unregistering first ensures our engines are always used, regardless of load order.
|
|
22
|
-
|
|
22
|
+
#
|
|
23
|
+
# Tilt also matches the longest registered extension first (see `Tilt::Mapping#split`), and
|
|
24
|
+
# it registers "html.erb" as an extension of its own. So a template named "index.html.erb"
|
|
25
|
+
# would match "html.erb" and never reach the engine we register for "erb" below.
|
|
26
|
+
#
|
|
27
|
+
# We unregister "html.erb" without registering a replacement. This leaves Tilt to fall back
|
|
28
|
+
# to "erb", which means our own engine is used, and any `renderer_engine_mapping` given for
|
|
29
|
+
# `erb:` continues to work.
|
|
30
|
+
mapping.unregister "erb", "rhtml", "html.erb", "haml", "slim"
|
|
23
31
|
|
|
24
32
|
# Register our own ERB template.
|
|
25
33
|
mapping.register_lazy "Hanami::View::ERB::Template", "hanami/view/erb/template", "erb", "rhtml"
|
data/lib/hanami/view/version.rb
CHANGED