haml 6.2.4 → 6.2.5
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 +5 -0
- data/REFERENCE.md +19 -0
- data/lib/haml/rails_template.rb +3 -0
- data/lib/haml/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '04895f8afe060e69be088815a9faed390ecc4d39bde694c8ee5e3e5f8f983060'
|
4
|
+
data.tar.gz: '08945029ffc506dc045529f46091816ada3216b66890abe88f6087daad1a2683'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b2ab06d62ba1bdc9db0bed98683e37729c7fa4bbe7f9b16c66980187419555352928951867b808cefc43cc08bde35e556b0e9e8436a76489e3c7dcbd3193f255
|
7
|
+
data.tar.gz: 203b1917e76333725badee59e2c350d72b9806e5c218688ec4b878a35753c10b1fc9fe88408b52bf23c5bfa5755be69cf4c86f90cb370403c9e36177fd9033a8
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Haml Changelog
|
2
2
|
|
3
|
+
## 6.2.5
|
4
|
+
|
5
|
+
* Deprecate `Haml::RailsTemplate#default_format` that was added in v6.1.3
|
6
|
+
* See [the reference](https://github.com/haml/haml/blob/v6.2.5/REFERENCE.md#turbo) for suggested alternatives.
|
7
|
+
|
3
8
|
## 6.2.4
|
4
9
|
|
5
10
|
* Support case-in statement [#1155](https://github.com/haml/haml/issues/1155)
|
data/REFERENCE.md
CHANGED
@@ -1295,3 +1295,22 @@ automatically, and so should be passed through
|
|
1295
1295
|
same effect.
|
1296
1296
|
|
1297
1297
|
Blocks of literal text can be preserved using the [`:preserve` filter](#preserve-filter).
|
1298
|
+
|
1299
|
+
## Turbo
|
1300
|
+
|
1301
|
+
For people using Turbo-rails and Haml 6+ need to either:
|
1302
|
+
* follow the naming convention with the html format (ie. ensure any `.haml` files end `.html.haml`), or
|
1303
|
+
* add a monkey patch as follows:
|
1304
|
+
|
1305
|
+
```rb
|
1306
|
+
# config/initializers/haml.rb
|
1307
|
+
require "haml/rails_template"
|
1308
|
+
|
1309
|
+
module Haml
|
1310
|
+
class RailsTemplate
|
1311
|
+
def default_format
|
1312
|
+
:html
|
1313
|
+
end
|
1314
|
+
end
|
1315
|
+
end
|
1316
|
+
```
|
data/lib/haml/rails_template.rb
CHANGED
@@ -50,6 +50,9 @@ module Haml
|
|
50
50
|
|
51
51
|
# Rails Turbo looks for this
|
52
52
|
def default_format
|
53
|
+
warn "warning: Haml::RailsTemplate#default_format is deprecated and will be removed in the next Haml version 6.3.0. "\
|
54
|
+
"Please monkey-patch this method yourself, or simply use appropriate HTML extensions. "\
|
55
|
+
"See https://github.com/haml/haml/blob/v6.2.5/REFERENCE.md#turbo for details."
|
53
56
|
:html
|
54
57
|
end
|
55
58
|
|
data/lib/haml/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: haml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.2.
|
4
|
+
version: 6.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Natalie Weizenbaum
|
@@ -9,10 +9,10 @@ authors:
|
|
9
9
|
- Norman Clarke
|
10
10
|
- Akira Matsuda
|
11
11
|
- Takashi Kokubun
|
12
|
-
autorequire:
|
12
|
+
autorequire:
|
13
13
|
bindir: exe
|
14
14
|
cert_chain: []
|
15
|
-
date: 2023-12-
|
15
|
+
date: 2023-12-10 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: temple
|
@@ -322,7 +322,7 @@ licenses:
|
|
322
322
|
- MIT
|
323
323
|
metadata:
|
324
324
|
rubygems_mfa_required: 'true'
|
325
|
-
post_install_message:
|
325
|
+
post_install_message:
|
326
326
|
rdoc_options: []
|
327
327
|
require_paths:
|
328
328
|
- lib
|
@@ -338,7 +338,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
338
338
|
version: '0'
|
339
339
|
requirements: []
|
340
340
|
rubygems_version: 3.4.10
|
341
|
-
signing_key:
|
341
|
+
signing_key:
|
342
342
|
specification_version: 4
|
343
343
|
summary: An elegant, structured (X)HTML/XML templating engine.
|
344
344
|
test_files: []
|