w_syntax_tree-erb 0.9.3 → 0.9.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/Gemfile.lock +1 -1
- data/lib/syntax_tree/erb/format.rb +4 -1
- data/lib/syntax_tree/erb/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14545f225ceddbf06a7e0d3c53acb6e167e57a52eb603685de89fd474db64532
|
4
|
+
data.tar.gz: 2b0c5a2927d6ab3b9af64648e4991e0f02deb74803b57f2dac6e8c832765e8a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34cd2b99695f54e2a11fd15fc93a98e953600b5bae3e4edbe5c3d51fb0ea53e4ba22b91d099b3ae9036c0428b77b2c6fe321eb68699b5d7b59d0eae5910dd144
|
7
|
+
data.tar.gz: 779f4949a6684b4a18a89096c613518e656cad687877f1b23eadf4cc4969341681ee2926232a009a8b13662bd9e5ee246abfa8b5757f5c327fea762bc6b14756
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,20 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [0.9.4] - 2023-07-01
|
10
|
+
|
11
|
+
- Inline even more empty HTML-tags
|
12
|
+
|
13
|
+
```diff
|
14
|
+
<three-word-component
|
15
|
+
:attribute1
|
16
|
+
:attribute2
|
17
|
+
:attribute3="value"
|
18
|
+
->
|
19
|
+
-</three-word-component>
|
20
|
+
+></three-word-component>
|
21
|
+
```
|
22
|
+
|
9
23
|
## [0.9.3] - 2023-06-30
|
10
24
|
|
11
25
|
- Print empty html-tags on one line if possible
|
data/Gemfile.lock
CHANGED
@@ -51,7 +51,10 @@ module SyntaxTree
|
|
51
51
|
def visit_html(node)
|
52
52
|
# Make sure to group the tags together if there is no child nodes.
|
53
53
|
if node.elements.size == 0
|
54
|
-
q.group
|
54
|
+
q.group do
|
55
|
+
visit(node.opening)
|
56
|
+
visit(node.closing)
|
57
|
+
end
|
55
58
|
else
|
56
59
|
visit_block(node)
|
57
60
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: w_syntax_tree-erb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Newton
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-
|
12
|
+
date: 2023-07-01 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: prettier_print
|