yalphabetize 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/yalphabetize/file_yalphabetizer.rb +2 -2
- data/lib/yalphabetize/version.rb +1 -1
- data/lib/yalphabetize/yalphabetizer.rb +6 -6
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db5c206b439820c318f76ccbe2d619b5447cc845da80d3dfa19b35fb9a056591
|
4
|
+
data.tar.gz: 7071afd335644554083b00b0bc5e76391e015642fb8b2070496a0bc8a05d4b60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2bc9f38dde46a29af96fd2fe8e1c1411ced5eb56eec823456ab408f3d4e972354606e1493b23d99154a4931a302619d2f7c03c8b3eea2eae9f2aa9ce174c017d
|
7
|
+
data.tar.gz: 7d3126ce78da54e013f77710f2f0613f13848eb52914ca1b75b02c21665b696c0f615328657a3da85220167fb5b8a2f1e899b4071f964cc5255218780ed03f91
|
@@ -33,11 +33,11 @@ module Yalphabetize
|
|
33
33
|
end
|
34
34
|
|
35
35
|
def offences?
|
36
|
-
offence_detector_class.new(stream_node, order_checker_class:
|
36
|
+
offence_detector_class.new(stream_node, order_checker_class:).offences?
|
37
37
|
end
|
38
38
|
|
39
39
|
def alphabetize
|
40
|
-
alphabetizer_class.new(stream_node, order_checker_class:
|
40
|
+
alphabetizer_class.new(stream_node, order_checker_class:).call
|
41
41
|
end
|
42
42
|
|
43
43
|
def handle_aliases
|
data/lib/yalphabetize/version.rb
CHANGED
@@ -32,13 +32,13 @@ module Yalphabetize
|
|
32
32
|
def process_file(file_path)
|
33
33
|
file_yalphabetizer_class.new(
|
34
34
|
file_path,
|
35
|
-
reader_class
|
36
|
-
offence_detector_class
|
37
|
-
logger
|
35
|
+
reader_class:,
|
36
|
+
offence_detector_class:,
|
37
|
+
logger:,
|
38
38
|
autocorrect: options[:autocorrect],
|
39
|
-
alphabetizer_class
|
40
|
-
writer_class
|
41
|
-
order_checker_class:
|
39
|
+
alphabetizer_class:,
|
40
|
+
writer_class:,
|
41
|
+
order_checker_class:
|
42
42
|
).call
|
43
43
|
end
|
44
44
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yalphabetize
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Jenkins
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|
@@ -59,7 +59,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '0'
|
61
61
|
requirements: []
|
62
|
-
rubygems_version: 3.
|
62
|
+
rubygems_version: 3.3.26
|
63
63
|
signing_key:
|
64
64
|
specification_version: 4
|
65
65
|
summary: Alphabetize your YAML files
|