yaml-sort 2.2.1 → 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: 71ee5e9950197312df22f8cb27e87dd7fe223f8c320969edcb7130c2c9548ed5
4
- data.tar.gz: ca1948fa942e772f7ed9caade6b91683c92f7c20b685f24e508d4f669826ebef
3
+ metadata.gz: 645ea28f8b87a81c89e34ef07785fead69c974b290788c33ef86824f4f62501a
4
+ data.tar.gz: e1590c97f5fda4c67b8c4429793a66c8f6acedad33e419ffbc0014abf2a9fbd8
5
5
  SHA512:
6
- metadata.gz: 37f4ae4497b011da8e928f5d7c9ba315105e80a5de50f4052320fb7409de469a45a51c92d143bac5061706e7e5e3bcfb422a461ffcfa0ab4b2f1d2df7309c39c
7
- data.tar.gz: 4ba38b243d77ea33aa89c933eea5a3b98e2d7bed158d664d8f1020636c609e99d48c10cf462ec5e7db822ff73f3abf4f20693fc4ac0ea7585ae3ee343a316644
6
+ metadata.gz: 568da6c958f9aea830b39370125ac80ded2172004b6cfa699026599b5a31f528a4a7898c3dff3e6cb25c744f7d8934028e755d737f30ef1713862620b9f848a8
7
+ data.tar.gz: 4345a7ea2741f29a510584cc4d51a2b4c4e708841b8052870de413e3ce7f62733274c94928ac38feb061e6e3c3c5a52c00a0337104f4f288672f24324dff9716
data/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@ 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
+
14
+ ## [v2.2.2](https://github.com/smortex/yaml-sort/tree/v2.2.2) (2023-01-06)
15
+
16
+ [Full Changelog](https://github.com/smortex/yaml-sort/compare/v2.2.1...v2.2.2)
17
+
18
+ **Fixed bugs:**
19
+
20
+ - Fix parsing of "simple" multi-line VALUE [\#24](https://github.com/smortex/yaml-sort/pull/24) ([smortex](https://github.com/smortex))
21
+
6
22
  ## [v2.2.1](https://github.com/smortex/yaml-sort/tree/v2.2.1) (2023-01-04)
7
23
 
8
24
  [Full Changelog](https://github.com/smortex/yaml-sort/compare/v2.2.0...v2.2.1)
@@ -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
@@ -63,10 +56,11 @@ def scan(text)
63
56
  match += s.scan(/'/)
64
57
  end
65
58
  emit(:VALUE, match)
66
- when s.scan(/\S+/)
67
- match = s.matched
68
- until s.match?(/[\n]/) || s.eos?
69
- match += s.scan(/[^\n]+/)
59
+ when s.match?(/\S+/)
60
+ match = s.scan_until(/$/)
61
+
62
+ while s.match?("\n" + last_indent_value + " ") || s.match?(/\n[[:blank:]]*(?=\n)/)
63
+ match += s.scan(/\n[^\n]*(?=\n)/)
70
64
  end
71
65
  emit(:VALUE, match)
72
66
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Yaml
4
4
  module Sort
5
- VERSION = "2.2.1"
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.1
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-04 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