yaml-sort 2.2.2 → 2.2.3

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: 8fc2f27d56aec98cd2639b6751d584ef595133831e237de2424f9d4f4fef8495
4
- data.tar.gz: 89e5a82b06b5458c5592c65e28b97916b6a357203e65ac058b5bc167423dba3c
3
+ metadata.gz: 645ea28f8b87a81c89e34ef07785fead69c974b290788c33ef86824f4f62501a
4
+ data.tar.gz: e1590c97f5fda4c67b8c4429793a66c8f6acedad33e419ffbc0014abf2a9fbd8
5
5
  SHA512:
6
- metadata.gz: e1bd41a83d2ddade59a115f681cb832d0761a7cc27deee193fb8c3aa711137508e288ce4fd736019e161184cf1257160d04b7088f51a4931c695fd9a5ec67ee3
7
- data.tar.gz: 3d5f6d8359d14e62735bf7981a3c670c3156649ec4892f6eb6b4ef4c7019998f4940804795a34f5fad99f0fedd960a245af94fbb274d90fa5532e28da5370650
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)
@@ -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]+(?=\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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Yaml
4
4
  module Sort
5
- VERSION = "2.2.2"
5
+ VERSION = "2.2.3"
6
6
  end
7
7
  end
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.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-06 00:00:00.000000000 Z
11
+ date: 2023-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cri