w_syntax_tree-erb 0.9.1 → 0.9.2

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: bc192c98db6bb573305fc6bfec6cbf35415eb53376ddb19a977e95f0d0812453
4
- data.tar.gz: 20c52afb0c5650fcb0ed0cfac5ad259e852a958ee1480d6c201d465e2dca2f33
3
+ metadata.gz: 9ebb5ab1bbcd632cf3e6b4dffa3eee540b6feff33ac8d0e7bec89de2b2171ebe
4
+ data.tar.gz: 3a11a343fb6ebd9b83e715e71e4dd615e997dc73e500b1b4b7f841055edc01db
5
5
  SHA512:
6
- metadata.gz: 4037694cab3fb721931d23d6b71b6702c8317a8cfcc02385f5ffead99b12b05928a449cf61f2d5ccd56fde08a42c1a3eab5bce933930e5af7758334c078a2e6c
7
- data.tar.gz: fac163a673ebf3f60900162cd63f3f6cc7d5f227ecb7098d72a769a9156d031a7f579b1237e5fa63fc50d8a5672c487f433d6e2b940fc39a002c28cb055ee26f
6
+ metadata.gz: e5440a04f66cc2117e4be78d6736afeee2aa28f2baf76208d4de2a4225a0b5d81597d4f834d9e228f31f1a8e7a7f4814a90e321cda5972d177c2ee05691ad086
7
+ data.tar.gz: 67eac9bcb1faac4736047b2870f80b8173073c74d5c74fe4c2900d0a917780c86405b6b7968abd40efff4d55efc2a8ddf7fabce8e0434260734ddc611c2f0312
data/CHANGELOG.md CHANGED
@@ -6,6 +6,10 @@ 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.2] - 2023-06-30
10
+
11
+ - Handle whitespace in HTML-strings using ERB-tags
12
+
9
13
  ## [0.9.1] - 2023-06-28
10
14
 
11
15
  - Handle formatting of multi-line ERB-tags with more than one statement.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- w_syntax_tree-erb (0.9.1)
4
+ w_syntax_tree-erb (0.9.2)
5
5
  prettier_print (>= 1.2.0)
6
6
  syntax_tree (>= 6.1.1)
7
7
 
@@ -11,7 +11,11 @@ module SyntaxTree
11
11
 
12
12
  # Visit a Token node.
13
13
  def visit_token(node)
14
- q.text(node.value.strip)
14
+ if %i[text whitespace].include?(node.type)
15
+ q.text(node.value)
16
+ else
17
+ q.text(node.value.strip)
18
+ end
15
19
  end
16
20
 
17
21
  # Visit a Document node.
@@ -2,6 +2,6 @@
2
2
 
3
3
  module SyntaxTree
4
4
  module ERB
5
- VERSION = "0.9.1"
5
+ VERSION = "0.9.2"
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.1
4
+ version: 0.9.2
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-28 00:00:00.000000000 Z
12
+ date: 2023-06-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: prettier_print