haml 6.1.2 → 6.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f721367f32b443559aa0aa20e75bd7b9d179fffbfff06873cca328f26ae70689
4
- data.tar.gz: dc52332427ab542277bb52374e6c20ba696180caad8a86cd04eee247c6c0f9bb
3
+ metadata.gz: 6fdb8a50c83ab63c697225ffc269dfcff134a8eac3d28f5b13c5b5a09257f849
4
+ data.tar.gz: f7027d35f57f74ece886ced333a6eefa2d5278086899ac1431b9ea81935c5cc2
5
5
  SHA512:
6
- metadata.gz: 13197f48f55be37cec0eb76bc6b9c2e32d37cc1b3e430a509bb9c362fbb1e8f44fb858f1d39b22a0b2c654dfb6b2c237756a08a4495cf31c42eae59a6ea15c77
7
- data.tar.gz: 073bc4c02899dea76c285bb8561df5631e3553fc3d939e30f94fe1671814ca5c3c812c3bcec251b3f0a562c03a2db606ef9b7e37b3014c50638cf2e29c44c465
6
+ metadata.gz: a72f386df2549eadf33e568fa2d33dba9f49fee6c9ef869a66c81a6d414f53fc0c1f6fc666a3434ca2df27cec89c4e7ed302336a009115ee678c426614b53b61
7
+ data.tar.gz: d9585240bf8cc82bb38d6f1dfad9f3c12f3b2654ada0fd7cf7972bf5018cc137917e522a3927510eab7aa90d923c0d5d1dc0352d98e1f586482e25c5f62f42b3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Haml Changelog
2
2
 
3
+ ## 6.1.3
4
+
5
+ * Add `Haml::RailsTemplate#default_format` for Turbo compatibility [#1144](https://github.com/haml/haml/issues/1144)
6
+
7
+ ## 6.1.2
8
+
9
+ * Use the rails template path as `filename` [#1140](https://github.com/haml/haml/issues/1140)
10
+
3
11
  ## 6.1.1
4
12
 
5
13
  * Fix an empty output of Ruby 3.1's Hash shorthand syntax [#1083](https://github.com/haml/haml/issues/1083)
@@ -102,6 +110,12 @@ Released on September 21, 2022
102
110
  `list_of`, `non_haml`, `precede`, `succeed`, `surround`, `tab_down`, `tab_up`, `with_tabs`
103
111
  * `:ruby` filter
104
112
  * Removed: `haml_io`
113
+ * Alternatives to the removed helpers:
114
+ * Some simple ones could work by copying [the original definition](https://github.com/haml/haml/blob/v5.2.2/lib/haml/helpers.rb).
115
+ * For helpers generating general HTML tags, also consider using what your framework provides, e.g. Rails `content_tag`.
116
+ Same applies to `capture_haml`, e.g. Rails `capture`.
117
+ * Ones that rely on `Haml::Buffer` have no direct alternative by design. They existed at the cost of performance.
118
+ You need to define a helper, instantiate a String buffer in it, append stuff to it, and call it inside `=`.
105
119
  * Only the following attributes and `aria`/`data` attributes are considered boolean attributes:
106
120
  * `allowfullscreen`, `async`, `autobuffer`, `autofocus`, `autoplay`, `checked`, `controls`, `default`,
107
121
  `defer`, `disabled`, `download`, `formnovalidate`, `hidden`, `inert`, `ismap`, `itemscope`, `loop`,
@@ -48,6 +48,11 @@ module Haml
48
48
  Engine.new(options).call(source)
49
49
  end
50
50
 
51
+ # Rails Turbo looks for this
52
+ def default_format
53
+ :html
54
+ end
55
+
51
56
  def supports_streaming?
52
57
  RailsTemplate.options[:streaming]
53
58
  end
data/lib/haml/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Haml
3
- VERSION = '6.1.2'
3
+ VERSION = '6.1.3'
4
4
  end
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.1.2
4
+ version: 6.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Natalie Weizenbaum
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: exe
14
14
  cert_chain: []
15
- date: 2023-08-12 00:00:00.000000000 Z
15
+ date: 2023-09-27 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: temple