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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8bf413854891332f7c07f2069844c37a24ca0df39de3a7b1ff414dfc28752b3b
4
- data.tar.gz: b3a85ad42ede7091cdbe0e22104fb1549e3831f164e5c57a797cc0561fa90b3f
3
+ metadata.gz: 14545f225ceddbf06a7e0d3c53acb6e167e57a52eb603685de89fd474db64532
4
+ data.tar.gz: 2b0c5a2927d6ab3b9af64648e4991e0f02deb74803b57f2dac6e8c832765e8a5
5
5
  SHA512:
6
- metadata.gz: 2611919aeb77f8bb7b9f6b1ad00aa5ba50f5ab9524f7b01781f2b7dccd66ee56e63b2da0a0206238713d9248c5b6ef4577d0ca1331ef9f4a01c7bd58bbc199ff
7
- data.tar.gz: fda0cc5b5af8190437a3364552e8f3b507c144f9fa08d25bcdcd76feb822e75a9f05223e98386205a52b62663e0d79cc0df803fc9649baaac3aedf8483eafff9
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- w_syntax_tree-erb (0.9.3)
4
+ w_syntax_tree-erb (0.9.4)
5
5
  prettier_print (>= 1.2.0)
6
6
  syntax_tree (>= 6.1.1)
7
7
 
@@ -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 { visit_block(node) }
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module SyntaxTree
4
4
  module ERB
5
- VERSION = "0.9.3"
5
+ VERSION = "0.9.4"
6
6
  end
7
7
  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.3
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-06-30 00:00:00.000000000 Z
12
+ date: 2023-07-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: prettier_print