git-lint 4.0.0 → 4.2.0

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: 8db52556e39c3841f3c14399aba51d98569a2be8507ddb491db2141f1a5c69ef
4
- data.tar.gz: 88f6abbbc71e0359ce9c4478cd18b087cc84d6845cfb3aea076ffbb2aeffec69
3
+ metadata.gz: bf45a81cc2f62bfa8b59725e355fb1bbcc7dcfd7d9207bff2383c2ed19db33d0
4
+ data.tar.gz: e9e057e6ecfb930d0f535ed226631ac402ec23e7b6388fab78f39564ebe2f5e7
5
5
  SHA512:
6
- metadata.gz: 5114c6e63c3f59b6c7643e8eb201f6119ed3fd5cfcdfa518f3fe90287e34f2b27b74d0f89f4890f560e58bf1244b89f94f64f14ce8c7a2371d0dc1abce60bef2
7
- data.tar.gz: fa5b831b4f0f938dd16d579647813ff49baabf73d960c70a5dcaff74b6785c9111a2513428cf00cc18bf00227975639650d5152d7e87731493415c815e36448f
6
+ metadata.gz: 5e73f3559cd84bcb9a29f14029bb9a110d7ce53443eda45238a25c998280156dff9a87036874374e188070c06252923d82b8797885cacdc19a66e39d1fdcc57b
7
+ data.tar.gz: 42b11c8435acf551b8dc4af82469d540730753fdeb2b01a2c1eca01720fb286a4ba49191d612762881533feefba2e386241788a7d5e5c6f054902b73f63e219b
checksums.yaml.gz.sig CHANGED
Binary file
data/README.adoc CHANGED
@@ -25,6 +25,7 @@ toc::[]
25
25
 
26
26
  == Requirements
27
27
 
28
+ . link:https://git-scm.com[Git]
28
29
  . link:https://www.ruby-lang.org[Ruby]
29
30
 
30
31
  == Setup
@@ -36,23 +37,6 @@ To install, run:
36
37
  gem install git-lint
37
38
  ----
38
39
 
39
- == Upgrade
40
-
41
- If upgrading from 2.0.0 to 3.0.0, you'll need to make the following changes:
42
-
43
- * The YAML configuration requires a top-level `:analyzers:` key for which all analyzer
44
- configurations should be listed under. See the _Configuration_ section below for more details.
45
- * The `--config` command requires either an `edit` or `view` argument now.
46
- * The `--analyze` command can accept a `--sha` option for passing in the hash of the SHA you want to
47
- analyze. If using this as a post commit Git Hook, you'll need to update your Bash script
48
- accordingly.
49
- * The _Commit Body Line Length_ analyzer configuration has replaced `length` with `maximum` as the
50
- key for defining maximum line length.
51
- * The _Commit Body Issue Tracker Link_ analyzer has been replaced with the _Commit Body Tracker
52
- Shorthand_ analyzer. See documentation below for details.
53
- * The _Commit Subject Length_ analyzer has replaced `length` with `maximum` as the key for defining
54
- maximum subject length.
55
-
56
40
  == Usage
57
41
 
58
42
  === Command Line Interface (CLI)
@@ -234,6 +218,7 @@ variables. The default configuration is:
234
218
  :commit_subject_prefix:
235
219
  :enabled: true
236
220
  :severity: :error
221
+ :delimiter: " "
237
222
  :includes:
238
223
  - Fixed
239
224
  - Added
@@ -717,6 +702,7 @@ Automatically ignores _fixup!_ or _squash!_ commit prefixes when calculating sub
717
702
  |===
718
703
  | Enabled | Severity | Defaults
719
704
  | true | error | includes: (see below)
705
+ | | | delimiter: " "
720
706
  |===
721
707
 
722
708
  Ensures each commit subject uses consistent prefixes that explain _what_ is being committed. The
@@ -751,6 +737,10 @@ milestones and Git tag histories. For a deeper dive on subject prefixes and good
751
737
  general, please read about link:https://www.alchemists.io/articles/git_commit_anatomy[commit anatomy
752
738
  ] to learn more. 🎉
753
739
 
740
+ Each prefix is delimited by a space which is the default setting but can be customized if desired.
741
+ Whatever you choose for a delimiter will not affect Git's special bang prefixes as described in the
742
+ tip below.
743
+
754
744
  💡 This analyzer automatically ignores _amend!_, _fixup!_, or _squash!_ commit prefixes when used as
755
745
  a Git Hook in order to not disturb interactive rebase workflows.
756
746
 
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 = "4.0.0"
5
+ spec.version = "4.2.0"
6
6
  spec.authors = ["Brooke Kuhlmann"]
7
7
  spec.email = ["brooke@alchemists.io"]
8
8
  spec.homepage = "https://www.alchemists.io/projects/git-lint"
@@ -13,6 +13,7 @@ Gem::Specification.new do |spec|
13
13
  "bug_tracker_uri" => "https://github.com/bkuhlmann/git-lint/issues",
14
14
  "changelog_uri" => "https://www.alchemists.io/projects/git-lint/versions",
15
15
  "documentation_uri" => "https://www.alchemists.io/projects/git-lint",
16
+ "funding_uri" => "https://github.com/sponsors/bkuhlmann",
16
17
  "label" => "Git Lint",
17
18
  "rubygems_mfa_required" => "true",
18
19
  "source_code_uri" => "https://github.com/bkuhlmann/git-lint"
@@ -22,14 +23,14 @@ Gem::Specification.new do |spec|
22
23
  spec.cert_chain = [Gem.default_cert_path]
23
24
 
24
25
  spec.required_ruby_version = "~> 3.1"
25
- spec.add_dependency "auto_injector", "~> 0.4"
26
- spec.add_dependency "cogger", "~> 0.0"
26
+ spec.add_dependency "auto_injector", "~> 0.5"
27
+ spec.add_dependency "cogger", "~> 0.1"
27
28
  spec.add_dependency "dry-container", "~> 0.9"
28
- spec.add_dependency "git_plus", "~> 1.1"
29
+ spec.add_dependency "git_plus", "~> 1.3"
29
30
  spec.add_dependency "pastel", "~> 0.8"
30
- spec.add_dependency "refinements", "~> 9.2"
31
- spec.add_dependency "runcom", "~> 8.2"
32
- spec.add_dependency "spek", "~> 0.2"
31
+ spec.add_dependency "refinements", "~> 9.4"
32
+ spec.add_dependency "runcom", "~> 8.4"
33
+ spec.add_dependency "spek", "~> 0.3"
33
34
  spec.add_dependency "zeitwerk", "~> 2.5"
34
35
 
35
36
  spec.bindir = "exe"
@@ -20,7 +20,11 @@ module Git
20
20
 
21
21
  protected
22
22
 
23
- def load_filter_list = Kit::FilterList.new(settings.includes)
23
+ def load_filter_list
24
+ settings.includes
25
+ .map { |prefix| "#{prefix}#{settings.delimiter}" }
26
+ .then { |list| Kit::FilterList.new list }
27
+ end
24
28
 
25
29
  def locally_prefixed? = !ci? && commit.prefix?
26
30
 
@@ -85,6 +85,7 @@
85
85
  :commit_subject_prefix:
86
86
  :enabled: true
87
87
  :severity: :error
88
+ :delimiter: " "
88
89
  :includes:
89
90
  - Fixed
90
91
  - Added
@@ -5,6 +5,7 @@ module Git
5
5
  module Configuration
6
6
  # Defines analyzer specific settings.
7
7
  Setting = Struct.new(
8
+ :delimiter,
8
9
  :enabled,
9
10
  :excludes,
10
11
  :id,
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: 4.0.0
4
+ version: 4.2.0
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: 2022-04-10 00:00:00.000000000 Z
31
+ date: 2022-05-15 00:00:00.000000000 Z
32
32
  dependencies:
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: auto_injector
@@ -36,28 +36,28 @@ dependencies:
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '0.4'
39
+ version: '0.5'
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: '0.4'
46
+ version: '0.5'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: cogger
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '0.0'
53
+ version: '0.1'
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: '0.0'
60
+ version: '0.1'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: dry-container
63
63
  requirement: !ruby/object:Gem::Requirement
@@ -78,14 +78,14 @@ dependencies:
78
78
  requirements:
79
79
  - - "~>"
80
80
  - !ruby/object:Gem::Version
81
- version: '1.1'
81
+ version: '1.3'
82
82
  type: :runtime
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - "~>"
87
87
  - !ruby/object:Gem::Version
88
- version: '1.1'
88
+ version: '1.3'
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: pastel
91
91
  requirement: !ruby/object:Gem::Requirement
@@ -106,42 +106,42 @@ dependencies:
106
106
  requirements:
107
107
  - - "~>"
108
108
  - !ruby/object:Gem::Version
109
- version: '9.2'
109
+ version: '9.4'
110
110
  type: :runtime
111
111
  prerelease: false
112
112
  version_requirements: !ruby/object:Gem::Requirement
113
113
  requirements:
114
114
  - - "~>"
115
115
  - !ruby/object:Gem::Version
116
- version: '9.2'
116
+ version: '9.4'
117
117
  - !ruby/object:Gem::Dependency
118
118
  name: runcom
119
119
  requirement: !ruby/object:Gem::Requirement
120
120
  requirements:
121
121
  - - "~>"
122
122
  - !ruby/object:Gem::Version
123
- version: '8.2'
123
+ version: '8.4'
124
124
  type: :runtime
125
125
  prerelease: false
126
126
  version_requirements: !ruby/object:Gem::Requirement
127
127
  requirements:
128
128
  - - "~>"
129
129
  - !ruby/object:Gem::Version
130
- version: '8.2'
130
+ version: '8.4'
131
131
  - !ruby/object:Gem::Dependency
132
132
  name: spek
133
133
  requirement: !ruby/object:Gem::Requirement
134
134
  requirements:
135
135
  - - "~>"
136
136
  - !ruby/object:Gem::Version
137
- version: '0.2'
137
+ version: '0.3'
138
138
  type: :runtime
139
139
  prerelease: false
140
140
  version_requirements: !ruby/object:Gem::Requirement
141
141
  requirements:
142
142
  - - "~>"
143
143
  - !ruby/object:Gem::Version
144
- version: '0.2'
144
+ version: '0.3'
145
145
  - !ruby/object:Gem::Dependency
146
146
  name: zeitwerk
147
147
  requirement: !ruby/object:Gem::Requirement
@@ -241,6 +241,7 @@ metadata:
241
241
  bug_tracker_uri: https://github.com/bkuhlmann/git-lint/issues
242
242
  changelog_uri: https://www.alchemists.io/projects/git-lint/versions
243
243
  documentation_uri: https://www.alchemists.io/projects/git-lint
244
+ funding_uri: https://github.com/sponsors/bkuhlmann
244
245
  label: Git Lint
245
246
  rubygems_mfa_required: 'true'
246
247
  source_code_uri: https://github.com/bkuhlmann/git-lint
@@ -259,7 +260,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
259
260
  - !ruby/object:Gem::Version
260
261
  version: '0'
261
262
  requirements: []
262
- rubygems_version: 3.3.11
263
+ rubygems_version: 3.3.13
263
264
  signing_key:
264
265
  specification_version: 4
265
266
  summary: A command line interface for linting Git commits.
metadata.gz.sig CHANGED
Binary file