git-lint 6.0.0 → 6.0.2

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: 5ffca289e0b59fadd72f484cacf157edd85858593f8c8c100f14c4fea847c81f
4
- data.tar.gz: 262ecb9b537ca4e748f39ae2a1d5a874bdbf6bb2d944301a5de4d1eab8198866
3
+ metadata.gz: e234c9703bd892b03507b64ffaa3675838660f7e79479b4d59a022154ff634ac
4
+ data.tar.gz: 040ab0d1460832d935d089ea7e5aa0b1cbc985b7abd3c0b9be6839432d32e590
5
5
  SHA512:
6
- metadata.gz: d4e25d238b757637080e02a784a3d2df421fbf52633ca9f933e48bc2f7b8cd4f7d2e96c1c0acc190184bb058fa90d8e9984d131e0bd00cd55de4cfadfbba4298
7
- data.tar.gz: b5a690ba1f82862963bb6c45de94933f514a94dc3f01fd2e439dc024f8383a74fb8d65824519bb06da997fa181c01dee1c6013b9f29600666d035cb2d6d0c8dd
6
+ metadata.gz: 89e874e4a9942f598f9c8f73622845a08d79330ee0a28bb1340bb9d48a2bb879690af7fcf8a77c3e453f1f952eb5f0b94b4921b63f2d14251d29c2a2508c32b5
7
+ data.tar.gz: 62482ab57b42551a46b61ad6839872312c1551275ae5e29a155fb73cb5d180eca1c8f72103ed28de2afa40bddf7940098c6ded2837bf84f7fe46265858d5b0bc
checksums.yaml.gz.sig CHANGED
Binary file
data/README.adoc CHANGED
@@ -52,21 +52,7 @@ gem install git-lint
52
52
 
53
53
  From the command line, type: `git-lint --help`
54
54
 
55
- ....
56
- USAGE
57
- git-lint [OPTIONS]
58
- git-lint COMMAND [OPTIONS]
59
-
60
- OPTIONS
61
- --hook PATH Hook for analyzing unsaved commits.
62
- -v, --version Show version.
63
- -h, --help [COMMAND] Show this message.
64
-
65
- COMMANDS
66
- config Manage configuration.
67
- Path is dynamic per current directory.
68
- analyze Analyze branch or commit(s).
69
- ....
55
+ image:https://alchemists.io/images/projects/git-lint/screenshots/usage.png[Usage,width=588,height=353,role=focal_point]
70
56
 
71
57
  To check if your Git commit history is clean, run: `git-lint analyze --branch`. It will exit with a failure if at least one issue with error severity is detected.
72
58
 
data/exe/git-lint CHANGED
@@ -3,4 +3,4 @@
3
3
 
4
4
  require "git/lint"
5
5
 
6
- Git::Lint::CLI::Shell.new.call ARGV
6
+ Git::Lint::CLI::Shell.new.call
data/git-lint.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "git-lint"
5
- spec.version = "6.0.0"
5
+ spec.version = "6.0.2"
6
6
  spec.authors = ["Brooke Kuhlmann"]
7
7
  spec.email = ["brooke@alchemists.io"]
8
8
  spec.homepage = "https://alchemists.io/projects/git-lint"
@@ -10,40 +10,20 @@ require "tone"
10
10
 
11
11
  module Git
12
12
  module Lint
13
- # :nocov:
14
13
  # Provides a global gem container for injection into other objects.
15
14
  module Container
16
15
  extend Dry::Container::Mixin
17
16
 
18
- register :configuration do
19
- self[:defaults].add_loader(Etcher::Loaders::YAML.new(self[:xdg_config].active))
20
- .then { |registry| Etcher.call registry }
21
- end
22
-
23
- register :defaults do
24
- Etcher::Registry.new(contract: Configuration::Contract, model: Configuration::Model)
25
- .add_loader(Etcher::Loaders::YAML.new(self[:defaults_path]))
26
- end
27
-
28
- register(:color) { Tone.new }
29
- register(:environment) { ENV }
30
- register(:git) { Gitt::Repository.new }
31
- register(:defaults_path) { Pathname(__dir__).join("configuration/defaults.yml") }
32
- register(:xdg_config) { Runcom::Config.new "git-lint/configuration.yml" }
33
- register(:specification) { Spek::Loader.call "#{__dir__}/../../../git-lint.gemspec" }
34
- register(:kernel) { Kernel }
35
- register(:logger) { Cogger.new formatter: :emoji }
36
-
37
17
  namespace :trailers do
38
- register(:collaborator) { /\ACo.*Authored.*By.*\Z/i }
39
- register(:format) { /\AFormat.*\Z/i }
40
- register(:issue) { /\AIssue.*\Z/i }
41
- register(:signer) { /\ASigned.*By.*\Z/i }
42
- register(:tracker) { /\ATracker.*\Z/i }
18
+ register(:collaborator, memoize: true) { /\ACo.*Authored.*By.*\Z/i }
19
+ register(:format, memoize: true) { /\AFormat.*\Z/i }
20
+ register(:issue, memoize: true) { /\AIssue.*\Z/i }
21
+ register(:signer, memoize: true) { /\ASigned.*By.*\Z/i }
22
+ register(:tracker, memoize: true) { /\ATracker.*\Z/i }
43
23
  end
44
24
 
45
25
  namespace :parsers do
46
- register(:person) { Gitt::Parsers::Person.new }
26
+ register(:person, memoize: true) { Gitt::Parsers::Person.new }
47
27
  end
48
28
 
49
29
  namespace :sanitizers do
@@ -52,10 +32,35 @@ module Git
52
32
  end
53
33
 
54
34
  namespace :validators do
55
- register(:capitalization) { Validators::Capitalization.new }
56
- register(:email) { Validators::Email.new }
57
- register(:name) { Validators::Name.new }
35
+ register(:capitalization, memoize: true) { Validators::Capitalization.new }
36
+ register(:email, memoize: true) { Validators::Email.new }
37
+ register(:name, memoize: true) { Validators::Name.new }
38
+ end
39
+
40
+ register :configuration, memoize: true do
41
+ self[:defaults].add_loader(Etcher::Loaders::YAML.new(self[:xdg_config].active))
42
+ .then { |registry| Etcher.call registry }
43
+ end
44
+
45
+ register :defaults, memoize: true do
46
+ Etcher::Registry.new(contract: Configuration::Contract, model: Configuration::Model)
47
+ .add_loader(Etcher::Loaders::YAML.new(self[:defaults_path]))
58
48
  end
49
+
50
+ register :defaults_path, memoize: true do
51
+ Pathname(__dir__).join("configuration/defaults.yml")
52
+ end
53
+
54
+ register :specification, memoize: true do
55
+ Spek::Loader.call "#{__dir__}/../../../git-lint.gemspec"
56
+ end
57
+
58
+ register(:color, memoize: true) { Tone.new }
59
+ register(:environment) { ENV }
60
+ register(:git, memoize: true) { Gitt::Repository.new }
61
+ register(:xdg_config, memoize: true) { Runcom::Config.new "git-lint/configuration.yml" }
62
+ register(:logger, memoize: true) { Cogger.new formatter: :emoji }
63
+ register :kernel, Kernel
59
64
  end
60
65
  end
61
66
  end
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: 6.0.0
4
+ version: 6.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
@@ -35,7 +35,7 @@ cert_chain:
35
35
  3n5C8/6Zh9DYTkpcwPSuIfAga6wf4nXc9m6JAw8AuMLaiWN/r/2s4zJsUHYERJEu
36
36
  gZGm4JqtuSg8pYjPeIJxS960owq+SfuC+jxqmRA54BisFCv/0VOJi7tiJVY=
37
37
  -----END CERTIFICATE-----
38
- date: 2023-06-16 00:00:00.000000000 Z
38
+ date: 2023-07-27 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: cogger
@@ -339,7 +339,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
339
339
  - !ruby/object:Gem::Version
340
340
  version: '0'
341
341
  requirements: []
342
- rubygems_version: 3.4.14
342
+ rubygems_version: 3.4.17
343
343
  signing_key:
344
344
  specification_version: 4
345
345
  summary: A command line interface for linting Git commits.
metadata.gz.sig CHANGED
Binary file