git-lint 5.1.0 → 5.1.1
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
- checksums.yaml.gz.sig +0 -0
- data/README.adoc +1 -1
- data/git-lint.gemspec +1 -1
- data/lib/git/lint/analyzer.rb +7 -5
- data/lib/git/lint/analyzers/abstract.rb +2 -2
- data/lib/git/lint/cli/actions/analyze/branch.rb +2 -2
- data/lib/git/lint/cli/actions/analyze/commit.rb +2 -2
- data/lib/git/lint/cli/actions/config.rb +2 -2
- data/lib/git/lint/cli/actions/hook.rb +2 -2
- data/lib/git/lint/cli/parser.rb +2 -2
- data/lib/git/lint/cli/parsers/core.rb +2 -4
- data/lib/git/lint/cli/shell.rb +4 -4
- data.tar.gz.sig +0 -0
- metadata +3 -3
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee879ef7d2e54043b42c8c608a6bcf57869fe7593c65d797f5897dea3208cf18
|
4
|
+
data.tar.gz: 5aa959f0942970ce6881839d5a9c8d419faaf43bcdd5a0a5feb8e94cd71654f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '08255c0ed8001b3ebbefb067ccaa94a9319c24146d45c9a39fa9394129e7f72d38c8c5b7df300a5b88e2ffc90f37ed55aba727e07e07e0b8fc1d287caa9313b7'
|
7
|
+
data.tar.gz: 6e77fd97e3aea400d72072aa35b739760027259913776b54a5b4822b4f836f0d2b7d47a0b2510e0a80a415efe599302bea3f548db0c9d97776a247f51177fd89
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/README.adoc
CHANGED
data/git-lint.gemspec
CHANGED
data/lib/git/lint/analyzer.rb
CHANGED
@@ -42,11 +42,13 @@ module Git
|
|
42
42
|
].freeze
|
43
43
|
|
44
44
|
# rubocop:disable Metrics/ParameterLists
|
45
|
-
def initialize
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
45
|
+
def initialize(
|
46
|
+
analyzers: ANALYZERS,
|
47
|
+
collector: Collector.new,
|
48
|
+
reporter: Reporters::Branch,
|
49
|
+
**
|
50
|
+
)
|
51
|
+
super(**)
|
50
52
|
@analyzers = analyzers
|
51
53
|
@collector = collector
|
52
54
|
@reporter = reporter
|
@@ -8,8 +8,8 @@ module Git
|
|
8
8
|
class Config
|
9
9
|
include Git::Lint::Import[:kernel, :logger]
|
10
10
|
|
11
|
-
def initialize
|
12
|
-
super(**
|
11
|
+
def initialize(configuration: Configuration::Loader::CLIENT, **)
|
12
|
+
super(**)
|
13
13
|
@configuration = configuration
|
14
14
|
end
|
15
15
|
|
data/lib/git/lint/cli/parser.rb
CHANGED
@@ -13,8 +13,8 @@ module Git
|
|
13
13
|
CLIENT = OptionParser.new nil, 40, " "
|
14
14
|
SECTIONS = [Parsers::Core, Parsers::Analyze].freeze # Order matters.
|
15
15
|
|
16
|
-
def initialize
|
17
|
-
super(**
|
16
|
+
def initialize(sections: SECTIONS, client: CLIENT, **)
|
17
|
+
super(**)
|
18
18
|
@sections = sections
|
19
19
|
@client = client
|
20
20
|
@configuration_duplicate = configuration.dup
|
@@ -15,10 +15,8 @@ module Git
|
|
15
15
|
|
16
16
|
def self.call(...) = new(...).call
|
17
17
|
|
18
|
-
def initialize
|
19
|
-
|
20
|
-
**dependencies
|
21
|
-
super(**dependencies)
|
18
|
+
def initialize(configuration = Container[:configuration], client: Parser::CLIENT, **)
|
19
|
+
super(**)
|
22
20
|
@configuration = configuration
|
23
21
|
@client = client
|
24
22
|
end
|
data/lib/git/lint/cli/shell.rb
CHANGED
@@ -16,13 +16,13 @@ module Git
|
|
16
16
|
:logger
|
17
17
|
]
|
18
18
|
|
19
|
-
def initialize
|
20
|
-
super(**
|
19
|
+
def initialize(parser: Parser.new, **)
|
20
|
+
super(**)
|
21
21
|
@parser = parser
|
22
22
|
end
|
23
23
|
|
24
24
|
def call arguments = Core::EMPTY_ARRAY
|
25
|
-
|
25
|
+
act_on parser.call(arguments)
|
26
26
|
rescue OptionParser::ParseError, Errors::Base => error
|
27
27
|
logger.error { error.message }
|
28
28
|
end
|
@@ -31,7 +31,7 @@ module Git
|
|
31
31
|
|
32
32
|
attr_reader :parser
|
33
33
|
|
34
|
-
def
|
34
|
+
def act_on configuration
|
35
35
|
case configuration
|
36
36
|
in action_analyze: true, analyze_sha: nil then analyze_branch.call
|
37
37
|
in action_analyze: true, analyze_sha: String => sha then analyze_commit.call sha
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-lint
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.1.
|
4
|
+
version: 5.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
@@ -28,7 +28,7 @@ cert_chain:
|
|
28
28
|
CxDe2+VuChj4I1nvIHdu+E6XoEVlanUPKmSg6nddhkKn2gC45Kyzh6FZqnzH/CRp
|
29
29
|
RFE=
|
30
30
|
-----END CERTIFICATE-----
|
31
|
-
date: 2023-
|
31
|
+
date: 2023-02-05 00:00:00.000000000 Z
|
32
32
|
dependencies:
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: cogger
|
@@ -297,7 +297,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
297
297
|
- !ruby/object:Gem::Version
|
298
298
|
version: '0'
|
299
299
|
requirements: []
|
300
|
-
rubygems_version: 3.4.
|
300
|
+
rubygems_version: 3.4.6
|
301
301
|
signing_key:
|
302
302
|
specification_version: 4
|
303
303
|
summary: A command line interface for linting Git commits.
|
metadata.gz.sig
CHANGED
Binary file
|