git_fame 3.2.7 → 3.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/git_fame/collector.rb +2 -2
- data/lib/git_fame/command.rb +3 -3
- data/lib/git_fame/diff.rb +2 -2
- data/lib/git_fame/render.rb +1 -1
- data/lib/git_fame/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a1c66a9dc0828103bb9d7788cba43562c63f53cb3f2794522da746597dc0ea4
|
4
|
+
data.tar.gz: e03a6a3bf21b4058dde18b6bdd6b51047e7ef90ff2b47d314eb7bd5fb8fc00f7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9fd7421ed1c21ba249d780d805c19281c7ddfc8d2fae2ae183ac3dc6d8fdd2c434928a77f45d54b459107efd037b4b222865ac0ea65d90949cc20de7c76d7fd0
|
7
|
+
data.tar.gz: 198758ed1ce0d767fc46f9ad8f6a916de04aae680033b7af8dbbef52e076f39b83afa6430694e33df51853ba8f6c7058ddc314a152ade33b4aa63c41999e2074
|
data/lib/git_fame/collector.rb
CHANGED
@@ -9,7 +9,7 @@ module GitFame
|
|
9
9
|
|
10
10
|
# @return [Collector]
|
11
11
|
def call
|
12
|
-
Result.new(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:
|
39
|
+
email:
|
40
40
|
}
|
41
41
|
})
|
42
42
|
end
|
data/lib/git_fame/command.rb
CHANGED
@@ -125,7 +125,7 @@ module GitFame
|
|
125
125
|
end
|
126
126
|
|
127
127
|
thread = spinner.run do
|
128
|
-
Render.new(result
|
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
|
153
|
+
Collector.new(filter:, diff:, **options)
|
154
154
|
end
|
155
155
|
|
156
156
|
def diff
|
157
|
-
Diff.new(commit
|
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(&
|
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(&
|
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
|
data/lib/git_fame/render.rb
CHANGED
@@ -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
|
29
|
+
print table.render(:unicode, width:, resize: true, alignment: [:center])
|
30
30
|
end
|
31
31
|
|
32
32
|
private
|
data/lib/git_fame/version.rb
CHANGED