git-lint 5.1.0 → 5.1.1

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: fc491876ba93cedb8a7967eac82e6c3151a843e89fc600dbba4170d630ff4834
4
- data.tar.gz: 423a17b3e635d73d3928d12d93551d84785eb3872f891495113ad396abefa6f9
3
+ metadata.gz: ee879ef7d2e54043b42c8c608a6bcf57869fe7593c65d797f5897dea3208cf18
4
+ data.tar.gz: 5aa959f0942970ce6881839d5a9c8d419faaf43bcdd5a0a5feb8e94cd71654f1
5
5
  SHA512:
6
- metadata.gz: c1b90dc230153a9829cb5a82e1f8e1139cb7c609862930197f1078f20aaf03fea3a46dbd2f8f6cb84f7262717db37b0b190370ab5a4bc9cb9f1150dd1670bd5f
7
- data.tar.gz: 7d82ed24f2b13784a2d81c44884fdbb9065eb86c3ffe84a85135a7fc188c62ff3f7b89c92766ec4e395e7e2c0b6e3ef89c654e8bb64f64cd7244d91aac1db86f
6
+ metadata.gz: '08255c0ed8001b3ebbefb067ccaa94a9319c24146d45c9a39fa9394129e7f72d38c8c5b7df300a5b88e2ffc90f37ed55aba727e07e07e0b8fc1d287caa9313b7'
7
+ data.tar.gz: 6e77fd97e3aea400d72072aa35b739760027259913776b54a5b4822b4f836f0d2b7d47a0b2510e0a80a415efe599302bea3f548db0c9d97776a247f51177fd89
checksums.yaml.gz.sig CHANGED
Binary file
data/README.adoc CHANGED
@@ -1191,7 +1191,7 @@ To test, run:
1191
1191
 
1192
1192
  [source,bash]
1193
1193
  ----
1194
- bundle exec rake
1194
+ bin/rake
1195
1195
  ----
1196
1196
 
1197
1197
  == link:https://www.alchemists.io/policies/license[License]
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 = "5.1.0"
5
+ spec.version = "5.1.1"
6
6
  spec.authors = ["Brooke Kuhlmann"]
7
7
  spec.email = ["brooke@alchemists.io"]
8
8
  spec.homepage = "https://www.alchemists.io/projects/git-lint"
@@ -42,11 +42,13 @@ module Git
42
42
  ].freeze
43
43
 
44
44
  # rubocop:disable Metrics/ParameterLists
45
- def initialize analyzers: ANALYZERS,
46
- collector: Collector.new,
47
- reporter: Reporters::Branch,
48
- **dependencies
49
- super(**dependencies)
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
@@ -23,8 +23,8 @@ module Git
23
23
 
24
24
  attr_reader :commit
25
25
 
26
- def initialize commit, **dependencies
27
- super(**dependencies)
26
+ def initialize(commit, **)
27
+ super(**)
28
28
  @commit = commit
29
29
  @filter_list = load_filter_list
30
30
  end
@@ -9,8 +9,8 @@ module Git
9
9
  class Branch
10
10
  include Git::Lint::Import[:kernel, :logger]
11
11
 
12
- def initialize analyzer: Analyzer.new, **dependencies
13
- super(**dependencies)
12
+ def initialize(analyzer: Analyzer.new, **)
13
+ super(**)
14
14
  @analyzer = analyzer
15
15
  end
16
16
 
@@ -9,8 +9,8 @@ module Git
9
9
  class Commit
10
10
  include Git::Lint::Import[:git, :kernel, :logger]
11
11
 
12
- def initialize analyzer: Analyzer.new, **dependencies
13
- super(**dependencies)
12
+ def initialize(analyzer: Analyzer.new, **)
13
+ super(**)
14
14
  @analyzer = analyzer
15
15
  end
16
16
 
@@ -8,8 +8,8 @@ module Git
8
8
  class Config
9
9
  include Git::Lint::Import[:kernel, :logger]
10
10
 
11
- def initialize configuration: Configuration::Loader::CLIENT, **dependencies
12
- super(**dependencies)
11
+ def initialize(configuration: Configuration::Loader::CLIENT, **)
12
+ super(**)
13
13
  @configuration = configuration
14
14
  end
15
15
 
@@ -8,8 +8,8 @@ module Git
8
8
  class Hook
9
9
  include Git::Lint::Import[:git, :kernel, :logger]
10
10
 
11
- def initialize analyzer: Analyzer.new, **dependencies
12
- super(**dependencies)
11
+ def initialize(analyzer: Analyzer.new, **)
12
+ super(**)
13
13
  @analyzer = analyzer
14
14
  end
15
15
 
@@ -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 sections: SECTIONS, client: CLIENT, **dependencies
17
- super(**dependencies)
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 configuration = Container[:configuration],
19
- client: Parser::CLIENT,
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
@@ -16,13 +16,13 @@ module Git
16
16
  :logger
17
17
  ]
18
18
 
19
- def initialize parser: Parser.new, **dependencies
20
- super(**dependencies)
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
- perform parser.call(arguments)
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 perform configuration
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.0
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-01-08 00:00:00.000000000 Z
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.2
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