git_fame 3.2.5 → 3.2.8

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: 58ea5cdfe649107be0f070007a7afdaaf224c1b675dec07b10885d6322f1cd2f
4
- data.tar.gz: 6af47beae33a6702ea34e78eff852d347e6b83b45ba678370ef658bd430019bf
3
+ metadata.gz: 5a1c66a9dc0828103bb9d7788cba43562c63f53cb3f2794522da746597dc0ea4
4
+ data.tar.gz: e03a6a3bf21b4058dde18b6bdd6b51047e7ef90ff2b47d314eb7bd5fb8fc00f7
5
5
  SHA512:
6
- metadata.gz: 01d434ca86764aa8d58f1f1409b7c6fdc84376f646934716a442945d9647d5c0ba25177ca04ec902f3057e56c58ac02e0d4aaf385d44b64e56e11f5a04dcbdda
7
- data.tar.gz: 4169ab2d5ec1b44108b9ca796dede4c9eab410975fb3ebf3a4a68c99f3fc83a2077e62410fe04a72ec3662fb37746285bc4006379b5e554ad769507e9f92978a
6
+ metadata.gz: 9fd7421ed1c21ba249d780d805c19281c7ddfc8d2fae2ae183ac3dc6d8fdd2c434928a77f45d54b459107efd037b4b222865ac0ea65d90949cc20de7c76d7fd0
7
+ data.tar.gz: 198758ed1ce0d767fc46f9ad8f6a916de04aae680033b7af8dbbef52e076f39b83afa6430694e33df51853ba8f6c7058ddc314a152ade33b4aa63c41999e2074
@@ -9,7 +9,7 @@ module GitFame
9
9
 
10
10
  # @return [Collector]
11
11
  def call
12
- Result.new(contributions: contributions)
12
+ Result.new(contributions:)
13
13
  end
14
14
 
15
15
  private
@@ -36,7 +36,7 @@ module GitFame
36
36
  files: files[email],
37
37
  author: {
38
38
  name: names[email],
39
- email: email
39
+ email:
40
40
  }
41
41
  })
42
42
  end
@@ -125,7 +125,7 @@ module GitFame
125
125
  end
126
126
 
127
127
  thread = spinner.run do
128
- Render.new(result: result, **options(:branch))
128
+ Render.new(result:, **options(:branch))
129
129
  end
130
130
 
131
131
  thread.value.call
@@ -150,11 +150,11 @@ module GitFame
150
150
  end
151
151
 
152
152
  def collector
153
- Collector.new(filter: filter, diff: diff, **options)
153
+ Collector.new(filter:, diff:, **options)
154
154
  end
155
155
 
156
156
  def diff
157
- Diff.new(commit: commit, **options)
157
+ Diff.new(commit:, **options)
158
158
  end
159
159
 
160
160
  def options(*args)
data/lib/git_fame/diff.rb CHANGED
@@ -11,11 +11,11 @@ module GitFame
11
11
  # @yield [Hash]
12
12
  #
13
13
  # @return [void]
14
- def each(&block)
14
+ def each(&)
15
15
  tree.walk(:preorder).each do |root, entry|
16
16
  case entry
17
17
  in { type: :blob, name: file, oid: }
18
- Rugged::Blame.new(repo, root + file, newest_commit: commit).each(&block)
18
+ Rugged::Blame.new(repo, root + file, newest_commit: commit).each(&)
19
19
  in { type: type, name: file }
20
20
  say("Ignore type [%s] in for %s", type, root + file)
21
21
  end
@@ -26,7 +26,7 @@ module GitFame
26
26
  table << [c.name, c.email, c.lines.f, c.commits.count.f, c.files.count.f, c.dist(self)]
27
27
  end
28
28
 
29
- print table.render(:unicode, width: width, resize: true, alignment: [:center])
29
+ print table.render(:unicode, width:, resize: true, alignment: [:center])
30
30
  end
31
31
 
32
32
  private
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GitFame
4
- VERSION = "3.2.5"
4
+ VERSION = "3.2.8"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git_fame
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.5
4
+ version: 3.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Linus Oleander
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-11-08 00:00:00.000000000 Z
11
+ date: 2024-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport