git-lint 7.2.0 → 7.3.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: fcc9a89d1f6ab23bfdbe7532dc16b78e88d8080e8ed01aeb94395a333d37835a
4
- data.tar.gz: 6819ade704aa18ccb86af366fe3078a72670eefcc16b9a40a736749e188ab969
3
+ metadata.gz: 194a4c2e558c2753694dbce8962d3f314c7c0308df5d7568d1b0d129131a22c9
4
+ data.tar.gz: 7624429127d4c487d80ec7b2fb126fafbc786449281c6b01824a0a5e35f27b3d
5
5
  SHA512:
6
- metadata.gz: 7cfed461a4afc9878e7312db8e96bec4d08a7aafbedd184d5b054676a7ada2f55cc56719b77205689f68813f8a2224b9f464296accd1d60188d9df63a04591e2
7
- data.tar.gz: 7681ade12e5e42d5e319275fd197527e1abc13d10e75369c8ff583f3138fe809490ff2a1f2412e56eaf9e34efc1b992de05822d96b21c7a3c3e0705d068f154c
6
+ metadata.gz: 35ad6f62a9723b69ef418152dd0f2d24ae297b420ce63de8a704a3db9ac9bf19fd16626f58d4206d4d17b6bc8d9bf976e988469a0a89062ecd66ea7fec410b46
7
+ data.tar.gz: 2edd84e01fb206fb6b5bb1ecad0ba332a1aee0e0d7e8f4aa3b52835370a7f80d10611380204a5aa2ded19becadb9a514927f18dc2ca78fcdbf70def58747f033
checksums.yaml.gz.sig CHANGED
Binary file
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 = "7.2.0"
5
+ spec.version = "7.3.0"
6
6
  spec.authors = ["Brooke Kuhlmann"]
7
7
  spec.email = ["brooke@alchemists.io"]
8
8
  spec.homepage = "https://alchemists.io/projects/git-lint"
@@ -24,16 +24,16 @@ Gem::Specification.new do |spec|
24
24
 
25
25
  spec.required_ruby_version = "~> 3.3"
26
26
  spec.add_dependency "cogger", "~> 0.15"
27
+ spec.add_dependency "containable", "~> 0.0"
27
28
  spec.add_dependency "core", "~> 1.0"
28
- spec.add_dependency "dry-container", "~> 0.11"
29
29
  spec.add_dependency "dry-monads", "~> 1.6"
30
30
  spec.add_dependency "dry-schema", "~> 1.13"
31
- spec.add_dependency "etcher", "~> 1.0"
31
+ spec.add_dependency "etcher", "~> 1.3"
32
32
  spec.add_dependency "gitt", "~> 3.2"
33
- spec.add_dependency "infusible", "~> 3.4"
33
+ spec.add_dependency "infusible", "~> 3.5"
34
34
  spec.add_dependency "refinements", "~> 12.1"
35
35
  spec.add_dependency "runcom", "~> 11.0"
36
- spec.add_dependency "sod", "~> 0.4"
36
+ spec.add_dependency "sod", "~> 0.8"
37
37
  spec.add_dependency "spek", "~> 3.0"
38
38
  spec.add_dependency "tone", "~> 1.0"
39
39
  spec.add_dependency "zeitwerk", "~> 2.6"
@@ -8,7 +8,7 @@ module Git
8
8
  class CircleCI
9
9
  include Git::Lint::Import[:git]
10
10
 
11
- def call = git.commits("origin/#{branch_default}..#{branch_name}")
11
+ def call = git.commits "origin/#{branch_default}..#{branch_name}"
12
12
 
13
13
  private
14
14
 
@@ -8,7 +8,7 @@ module Git
8
8
  class GitHubAction
9
9
  include Git::Lint::Import[:git]
10
10
 
11
- def call = git.commits("origin/#{branch_default}..#{branch_name}")
11
+ def call = git.commits "origin/#{branch_default}..#{branch_name}"
12
12
 
13
13
  private
14
14
 
@@ -8,7 +8,7 @@ module Git
8
8
  class Local
9
9
  include Git::Lint::Import[:git]
10
10
 
11
- def call = git.commits("#{branch_default}..#{branch_name}")
11
+ def call = git.commits "#{branch_default}..#{branch_name}"
12
12
 
13
13
  private
14
14
 
@@ -7,13 +7,13 @@ module Git
7
7
  module Commits
8
8
  # Automatically detects and loads host.
9
9
  class Loader
10
- include Hosts::Import[
11
- :circle_ci,
10
+ include Import[
12
11
  :git,
13
- :git_hub_action,
14
- :netlify_ci,
15
- :local,
16
- :environment
12
+ :environment,
13
+ circle_ci: "hosts.circle_ci",
14
+ git_hub_action: "hosts.git_hub_action",
15
+ netlify_ci: "hosts.git_hub_action",
16
+ local: "hosts.local"
17
17
  ]
18
18
 
19
19
  using Refinements::String
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "cogger"
4
- require "dry-container"
4
+ require "containable"
5
5
  require "etcher"
6
6
  require "gitt"
7
7
  require "runcom"
@@ -12,76 +12,77 @@ module Git
12
12
  module Lint
13
13
  # Provides a global gem container for injection into other objects.
14
14
  module Container
15
- extend Dry::Container::Mixin
15
+ extend Containable
16
16
 
17
17
  namespace :trailers do
18
- register :collaborator, memoize: true do
18
+ register :collaborator do
19
19
  Configuration::Trailer[name: "Co-authored-by", pattern: /\ACo.*authored.*by.*\Z/i]
20
20
  end
21
21
 
22
- register :format, memoize: true do
22
+ register :format do
23
23
  Configuration::Trailer[name: "Format", pattern: /\AFormat.*\Z/i]
24
24
  end
25
25
 
26
- register :issue, memoize: true do
26
+ register :issue do
27
27
  Configuration::Trailer[name: "Issue", pattern: /\AIssue.*\Z/i]
28
28
  end
29
29
 
30
- register :milestone, memoize: true do
30
+ register :milestone do
31
31
  Configuration::Trailer[name: "Milestone", pattern: /\AMilestone.*\Z/i]
32
32
  end
33
33
 
34
- register :reviewer, memoize: true do
34
+ register :reviewer do
35
35
  Configuration::Trailer[name: "Reviewer", pattern: /\AReviewer.*\Z/i]
36
36
  end
37
37
 
38
- register :signer, memoize: true do
38
+ register :signer do
39
39
  Configuration::Trailer[name: "Signed-off-by", pattern: /\ASigned.*off.*by.*\Z/i]
40
40
  end
41
41
 
42
- register :tracker, memoize: true do
42
+ register :tracker do
43
43
  Configuration::Trailer[name: "Tracker", pattern: /\ATracker.*\Z/i]
44
44
  end
45
45
  end
46
46
 
47
47
  namespace :parsers do
48
- register(:person, memoize: true) { Gitt::Parsers::Person.new }
48
+ register(:person) { Gitt::Parsers::Person.new }
49
49
  end
50
50
 
51
51
  namespace :sanitizers do
52
- register(:signature) { Gitt::Sanitizers::Signature }
52
+ register :signature, Gitt::Sanitizers::Signature
53
53
  end
54
54
 
55
55
  namespace :validators do
56
- register(:capitalization, memoize: true) { Validators::Capitalization.new }
57
- register(:email, memoize: true) { Validators::Email.new }
58
- register(:name, memoize: true) { Validators::Name.new }
59
- register(:repeated_word, memoize: true) { Validators::RepeatedWord.new }
56
+ register(:capitalization) { Validators::Capitalization.new }
57
+ register(:email) { Validators::Email.new }
58
+ register(:name) { Validators::Name.new }
59
+ register(:repeated_word) { Validators::RepeatedWord.new }
60
60
  end
61
61
 
62
- register :configuration, memoize: true do
62
+ namespace :hosts do
63
+ register(:circle_ci) { Commits::Hosts::CircleCI.new }
64
+ register(:git_hub_action) { Commits::Hosts::GitHubAction.new }
65
+ register(:netlify_ci) { Commits::Hosts::NetlifyCI.new }
66
+ register(:local) { Commits::Hosts::Local.new }
67
+ end
68
+
69
+ register :configuration do
63
70
  self[:defaults].add_loader(Etcher::Loaders::YAML.new(self[:xdg_config].active))
64
71
  .then { |registry| Etcher.call registry }
65
72
  end
66
73
 
67
- register :defaults, memoize: true do
74
+ register :defaults do
68
75
  Etcher::Registry.new(contract: Configuration::Contract, model: Configuration::Model)
69
76
  .add_loader(Etcher::Loaders::YAML.new(self[:defaults_path]))
70
77
  end
71
78
 
72
- register :defaults_path, memoize: true do
73
- Pathname(__dir__).join("configuration/defaults.yml")
74
- end
75
-
76
- register :specification, memoize: true do
77
- Spek::Loader.call "#{__dir__}/../../../git-lint.gemspec"
78
- end
79
-
80
- register(:color, memoize: true) { Tone.new }
81
- register(:environment) { ENV }
82
- register(:git, memoize: true) { Gitt::Repository.new }
83
- register(:xdg_config, memoize: true) { Runcom::Config.new "git-lint/configuration.yml" }
84
- register(:logger, memoize: true) { Cogger.new id: "git-lint" }
79
+ register(:defaults_path) { Pathname(__dir__).join("configuration/defaults.yml") }
80
+ register(:specification) { Spek::Loader.call "#{__dir__}/../../../git-lint.gemspec" }
81
+ register(:color) { Tone.new }
82
+ register :environment, ENV
83
+ register(:git) { Gitt::Repository.new }
84
+ register(:xdg_config) { Runcom::Config.new "git-lint/configuration.yml" }
85
+ register(:logger) { Cogger.new id: "git-lint" }
85
86
  register :kernel, Kernel
86
87
  end
87
88
  end
@@ -4,6 +4,6 @@ require "infusible"
4
4
 
5
5
  module Git
6
6
  module Lint
7
- Import = Infusible.with Container
7
+ Import = Infusible[Container]
8
8
  end
9
9
  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: 7.2.0
4
+ version: 7.3.0
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: 2024-03-27 00:00:00.000000000 Z
38
+ date: 2024-04-03 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: cogger
@@ -52,33 +52,33 @@ dependencies:
52
52
  - !ruby/object:Gem::Version
53
53
  version: '0.15'
54
54
  - !ruby/object:Gem::Dependency
55
- name: core
55
+ name: containable
56
56
  requirement: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: '1.0'
60
+ version: '0.0'
61
61
  type: :runtime
62
62
  prerelease: false
63
63
  version_requirements: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '1.0'
67
+ version: '0.0'
68
68
  - !ruby/object:Gem::Dependency
69
- name: dry-container
69
+ name: core
70
70
  requirement: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '0.11'
74
+ version: '1.0'
75
75
  type: :runtime
76
76
  prerelease: false
77
77
  version_requirements: !ruby/object:Gem::Requirement
78
78
  requirements:
79
79
  - - "~>"
80
80
  - !ruby/object:Gem::Version
81
- version: '0.11'
81
+ version: '1.0'
82
82
  - !ruby/object:Gem::Dependency
83
83
  name: dry-monads
84
84
  requirement: !ruby/object:Gem::Requirement
@@ -113,14 +113,14 @@ dependencies:
113
113
  requirements:
114
114
  - - "~>"
115
115
  - !ruby/object:Gem::Version
116
- version: '1.0'
116
+ version: '1.3'
117
117
  type: :runtime
118
118
  prerelease: false
119
119
  version_requirements: !ruby/object:Gem::Requirement
120
120
  requirements:
121
121
  - - "~>"
122
122
  - !ruby/object:Gem::Version
123
- version: '1.0'
123
+ version: '1.3'
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: gitt
126
126
  requirement: !ruby/object:Gem::Requirement
@@ -141,14 +141,14 @@ dependencies:
141
141
  requirements:
142
142
  - - "~>"
143
143
  - !ruby/object:Gem::Version
144
- version: '3.4'
144
+ version: '3.5'
145
145
  type: :runtime
146
146
  prerelease: false
147
147
  version_requirements: !ruby/object:Gem::Requirement
148
148
  requirements:
149
149
  - - "~>"
150
150
  - !ruby/object:Gem::Version
151
- version: '3.4'
151
+ version: '3.5'
152
152
  - !ruby/object:Gem::Dependency
153
153
  name: refinements
154
154
  requirement: !ruby/object:Gem::Requirement
@@ -183,14 +183,14 @@ dependencies:
183
183
  requirements:
184
184
  - - "~>"
185
185
  - !ruby/object:Gem::Version
186
- version: '0.4'
186
+ version: '0.8'
187
187
  type: :runtime
188
188
  prerelease: false
189
189
  version_requirements: !ruby/object:Gem::Requirement
190
190
  requirements:
191
191
  - - "~>"
192
192
  - !ruby/object:Gem::Version
193
- version: '0.4'
193
+ version: '0.8'
194
194
  - !ruby/object:Gem::Dependency
195
195
  name: spek
196
196
  requirement: !ruby/object:Gem::Requirement
@@ -294,9 +294,7 @@ files:
294
294
  - lib/git/lint/cli/shell.rb
295
295
  - lib/git/lint/collector.rb
296
296
  - lib/git/lint/commits/hosts/circle_ci.rb
297
- - lib/git/lint/commits/hosts/container.rb
298
297
  - lib/git/lint/commits/hosts/git_hub_action.rb
299
- - lib/git/lint/commits/hosts/import.rb
300
298
  - lib/git/lint/commits/hosts/local.rb
301
299
  - lib/git/lint/commits/hosts/netlify_ci.rb
302
300
  - lib/git/lint/commits/loader.rb
metadata.gz.sig CHANGED
Binary file
@@ -1,23 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "dry/container"
4
-
5
- module Git
6
- module Lint
7
- module Commits
8
- module Hosts
9
- # Provides a single container with application and host specific dependencies.
10
- module Container
11
- extend Dry::Container::Mixin
12
-
13
- merge Git::Lint::Container
14
-
15
- register(:circle_ci) { CircleCI.new }
16
- register(:git_hub_action) { GitHubAction.new }
17
- register(:netlify_ci) { NetlifyCI.new }
18
- register(:local) { Local.new }
19
- end
20
- end
21
- end
22
- end
23
- end
@@ -1,13 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "infusible"
4
-
5
- module Git
6
- module Lint
7
- module Commits
8
- module Hosts
9
- Import = Infusible.with Container
10
- end
11
- end
12
- end
13
- end