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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cfd4f5b396df91cbef8969c45d2619115365a83856411998e92f9bf9ba35d027
4
- data.tar.gz: fd73d60f403a32f11a4261caf786dc33ba7f53c891edbf50dfcfe44f2445fb5c
3
+ metadata.gz: 3b270d38aebea10944584306a2d98739fee992ee7614d7d1044a0354d2ace9d2
4
+ data.tar.gz: d4b9ce9f19b22f56d6d69c1b0b07473ba2f216c32b9acefba37bb8eea161c6c4
5
5
  SHA512:
6
- metadata.gz: c7958b7d98292e6595c0abde96ce7ba136d2ac75d2036d415668ded39a6a44435349b5fa6ea0bf87486e3a7c55ff54bce5be971a62bc7b70e5d2cad18dad4ff9
7
- data.tar.gz: 4baa7d74944594e1af1357ed042b1cae7cc1577200e026f9da575142ac199824dece54a67158bf1a3e1f1a698ac72774e01433d20052d306fa8d3a0a670d08e4
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.1...HEAD
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
 
@@ -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
- mapping.unregister "erb", "rhtml", "haml", "slim"
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"
@@ -3,6 +3,6 @@
3
3
  module Hanami
4
4
  class View
5
5
  # @api public
6
- VERSION = "3.0.1"
6
+ VERSION = "3.0.2"
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hanami-view
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hanakai team