haml 6.1.2-java → 6.1.3-java

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: c207bda3154c0dd51a94e779751650c9caaaea1368d32106cdcac5abee1ec51c
4
- data.tar.gz: bf8cc80cf573ca66ecb03f66114179ce4389b31003ae8123699a2eeec2e154c3
3
+ metadata.gz: a7da897e6ef824a17684d84279f66aa5a21323899f34225bdc0851b99c14c76e
4
+ data.tar.gz: 9af0a48cd7c535df7828c2143cd2efa0b14b8b9c97a46412b28043735c9e251e
5
5
  SHA512:
6
- metadata.gz: 6a6a0003a1a1b2938fce423477866098dc68d3267199578d4ddec31537f13fdc08b1243aa7f853c9910c55f1a587b4c1b36fdb9e05f3d10c0d425916bd2fdf22
7
- data.tar.gz: 4dd6d9decfc40933f201e0b18b9f6988002abd763afc7b3e2205e028ab3468aa6ad12c870dbdb95ea044b4444e7d52714d9651faeca6b408f3a8b0ca2f88aa94
6
+ metadata.gz: 579bb896c3393bc7622168aca11c52859c0e4c412d38b00bdecc6741cefe91d25d9d2477956893cc6b039bb46bac4c1170cc0f7cfe435d89beebc766619225e7
7
+ data.tar.gz: 89aa428f24ebbc96b95ffb4ef17e51db31930fa397e3e7b7d9730c6a62b4b27b5a22548431a6e82ebd3a93c1594221d8f13b5a9360119784f2a72f3221be355a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
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
+
3
7
  ## 6.1.2
4
8
 
5
9
  * Use the rails template path as `filename` [#1140](https://github.com/haml/haml/issues/1140)
@@ -106,6 +110,12 @@ Released on September 21, 2022
106
110
  `list_of`, `non_haml`, `precede`, `succeed`, `surround`, `tab_down`, `tab_up`, `with_tabs`
107
111
  * `:ruby` filter
108
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 `=`.
109
119
  * Only the following attributes and `aria`/`data` attributes are considered boolean attributes:
110
120
  * `allowfullscreen`, `async`, `autobuffer`, `autofocus`, `autoplay`, `checked`, `controls`, `default`,
111
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: java
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-25 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
  requirement: !ruby/object:Gem::Requirement
@@ -21,8 +21,8 @@ dependencies:
21
21
  - !ruby/object:Gem::Version
22
22
  version: 0.8.2
23
23
  name: temple
24
- type: :runtime
25
24
  prerelease: false
25
+ type: :runtime
26
26
  version_requirements: !ruby/object:Gem::Requirement
27
27
  requirements:
28
28
  - - ">="
@@ -35,8 +35,8 @@ dependencies:
35
35
  - !ruby/object:Gem::Version
36
36
  version: '0'
37
37
  name: thor
38
- type: :runtime
39
38
  prerelease: false
39
+ type: :runtime
40
40
  version_requirements: !ruby/object:Gem::Requirement
41
41
  requirements:
42
42
  - - ">="
@@ -49,8 +49,8 @@ dependencies:
49
49
  - !ruby/object:Gem::Version
50
50
  version: '0'
51
51
  name: tilt
52
- type: :runtime
53
52
  prerelease: false
53
+ type: :runtime
54
54
  version_requirements: !ruby/object:Gem::Requirement
55
55
  requirements:
56
56
  - - ">="
@@ -63,8 +63,8 @@ dependencies:
63
63
  - !ruby/object:Gem::Version
64
64
  version: '0'
65
65
  name: benchmark_driver
66
- type: :development
67
66
  prerelease: false
67
+ type: :development
68
68
  version_requirements: !ruby/object:Gem::Requirement
69
69
  requirements:
70
70
  - - ">="
@@ -77,8 +77,8 @@ dependencies:
77
77
  - !ruby/object:Gem::Version
78
78
  version: '0'
79
79
  name: bundler
80
- type: :development
81
80
  prerelease: false
81
+ type: :development
82
82
  version_requirements: !ruby/object:Gem::Requirement
83
83
  requirements:
84
84
  - - ">="
@@ -91,8 +91,8 @@ dependencies:
91
91
  - !ruby/object:Gem::Version
92
92
  version: '0'
93
93
  name: coffee-script
94
- type: :development
95
94
  prerelease: false
95
+ type: :development
96
96
  version_requirements: !ruby/object:Gem::Requirement
97
97
  requirements:
98
98
  - - ">="
@@ -105,8 +105,8 @@ dependencies:
105
105
  - !ruby/object:Gem::Version
106
106
  version: '0'
107
107
  name: erubi
108
- type: :development
109
108
  prerelease: false
109
+ type: :development
110
110
  version_requirements: !ruby/object:Gem::Requirement
111
111
  requirements:
112
112
  - - ">="
@@ -119,8 +119,8 @@ dependencies:
119
119
  - !ruby/object:Gem::Version
120
120
  version: '5'
121
121
  name: haml
122
- type: :development
123
122
  prerelease: false
123
+ type: :development
124
124
  version_requirements: !ruby/object:Gem::Requirement
125
125
  requirements:
126
126
  - - ">="
@@ -133,8 +133,8 @@ dependencies:
133
133
  - !ruby/object:Gem::Version
134
134
  version: '0'
135
135
  name: less
136
- type: :development
137
136
  prerelease: false
137
+ type: :development
138
138
  version_requirements: !ruby/object:Gem::Requirement
139
139
  requirements:
140
140
  - - ">="
@@ -147,8 +147,8 @@ dependencies:
147
147
  - !ruby/object:Gem::Version
148
148
  version: '1.1'
149
149
  name: minitest-reporters
150
- type: :development
151
150
  prerelease: false
151
+ type: :development
152
152
  version_requirements: !ruby/object:Gem::Requirement
153
153
  requirements:
154
154
  - - "~>"
@@ -161,8 +161,8 @@ dependencies:
161
161
  - !ruby/object:Gem::Version
162
162
  version: '4.0'
163
163
  name: rails
164
- type: :development
165
164
  prerelease: false
165
+ type: :development
166
166
  version_requirements: !ruby/object:Gem::Requirement
167
167
  requirements:
168
168
  - - ">="
@@ -175,8 +175,8 @@ dependencies:
175
175
  - !ruby/object:Gem::Version
176
176
  version: '0'
177
177
  name: rake
178
- type: :development
179
178
  prerelease: false
179
+ type: :development
180
180
  version_requirements: !ruby/object:Gem::Requirement
181
181
  requirements:
182
182
  - - ">="
@@ -189,8 +189,8 @@ dependencies:
189
189
  - !ruby/object:Gem::Version
190
190
  version: '0'
191
191
  name: rake-compiler
192
- type: :development
193
192
  prerelease: false
193
+ type: :development
194
194
  version_requirements: !ruby/object:Gem::Requirement
195
195
  requirements:
196
196
  - - ">="
@@ -203,8 +203,8 @@ dependencies:
203
203
  - !ruby/object:Gem::Version
204
204
  version: '0'
205
205
  name: sass
206
- type: :development
207
206
  prerelease: false
207
+ type: :development
208
208
  version_requirements: !ruby/object:Gem::Requirement
209
209
  requirements:
210
210
  - - ">="
@@ -217,8 +217,8 @@ dependencies:
217
217
  - !ruby/object:Gem::Version
218
218
  version: '0'
219
219
  name: slim
220
- type: :development
221
220
  prerelease: false
221
+ type: :development
222
222
  version_requirements: !ruby/object:Gem::Requirement
223
223
  requirements:
224
224
  - - ">="
@@ -231,8 +231,8 @@ dependencies:
231
231
  - !ruby/object:Gem::Version
232
232
  version: '0'
233
233
  name: string_template
234
- type: :development
235
234
  prerelease: false
235
+ type: :development
236
236
  version_requirements: !ruby/object:Gem::Requirement
237
237
  requirements:
238
238
  - - ">="
@@ -245,8 +245,8 @@ dependencies:
245
245
  - !ruby/object:Gem::Version
246
246
  version: '0'
247
247
  name: unindent
248
- type: :development
249
248
  prerelease: false
249
+ type: :development
250
250
  version_requirements: !ruby/object:Gem::Requirement
251
251
  requirements:
252
252
  - - ">="