yaml-sort 2.2.2 → 2.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/yaml/sort/parser.rb +2 -9
- data/lib/yaml/sort/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: 645ea28f8b87a81c89e34ef07785fead69c974b290788c33ef86824f4f62501a
|
4
|
+
data.tar.gz: e1590c97f5fda4c67b8c4429793a66c8f6acedad33e419ffbc0014abf2a9fbd8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 568da6c958f9aea830b39370125ac80ded2172004b6cfa699026599b5a31f528a4a7898c3dff3e6cb25c744f7d8934028e755d737f30ef1713862620b9f848a8
|
7
|
+
data.tar.gz: 4345a7ea2741f29a510584cc4d51a2b4c4e708841b8052870de413e3ce7f62733274c94928ac38feb061e6e3c3c5a52c00a0337104f4f288672f24324dff9716
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file.
|
|
3
3
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
|
4
4
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
5
5
|
|
6
|
+
## [v2.2.3](https://github.com/smortex/yaml-sort/tree/v2.2.3) (2023-01-09)
|
7
|
+
|
8
|
+
[Full Changelog](https://github.com/smortex/yaml-sort/compare/v2.2.2...v2.2.3)
|
9
|
+
|
10
|
+
**Fixed bugs:**
|
11
|
+
|
12
|
+
- Fix parsing of blank lines in multi-line VALUE [\#27](https://github.com/smortex/yaml-sort/pull/27) ([smortex](https://github.com/smortex))
|
13
|
+
|
6
14
|
## [v2.2.2](https://github.com/smortex/yaml-sort/tree/v2.2.2) (2023-01-06)
|
7
15
|
|
8
16
|
[Full Changelog](https://github.com/smortex/yaml-sort/compare/v2.2.1...v2.2.2)
|
data/lib/yaml/sort/parser.rb
CHANGED
@@ -37,13 +37,6 @@ def scan(text)
|
|
37
37
|
emit(:ANCHOR, s.matched[1..-1])
|
38
38
|
when s.scan(/\*[[:alnum:]]+/)
|
39
39
|
emit(:ALIAS, s.matched[1..-1])
|
40
|
-
when s.scan(/[|>][-+]?(?=\n)/)
|
41
|
-
match = s.matched
|
42
|
-
|
43
|
-
while s.match?("\n" + last_indent_value + " ")
|
44
|
-
match += s.scan(/\n[^\n]+(?=\n)/)
|
45
|
-
end
|
46
|
-
emit(:VALUE, match)
|
47
40
|
when s.scan(/"/)
|
48
41
|
match = s.matched
|
49
42
|
loop do
|
@@ -66,8 +59,8 @@ def scan(text)
|
|
66
59
|
when s.match?(/\S+/)
|
67
60
|
match = s.scan_until(/$/)
|
68
61
|
|
69
|
-
while s.match?("\n" + last_indent_value + " ")
|
70
|
-
match += s.scan(/\n[^\n]
|
62
|
+
while s.match?("\n" + last_indent_value + " ") || s.match?(/\n[[:blank:]]*(?=\n)/)
|
63
|
+
match += s.scan(/\n[^\n]*(?=\n)/)
|
71
64
|
end
|
72
65
|
emit(:VALUE, match)
|
73
66
|
end
|
data/lib/yaml/sort/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yaml-sort
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Romain Tartière
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-01-
|
11
|
+
date: 2023-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cri
|