git_fame 3.2.7 → 3.2.9

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: 6d40cbfb00e983e80572c3c98b6d402eeea466206276c9b851ee585abce82549
4
- data.tar.gz: 85fd057be7392eb99d344ec5d115f5eea0a1fd8edf29c73654bf6a2ce9db2a2e
3
+ metadata.gz: bf56419f8fff519bdd1ee13c17ff68ab62950d826575eba5176d1c3958497be1
4
+ data.tar.gz: fd32e232ff696ba2ba5fa5638f238b7cf66f0e58a436f4028e9757f351d82203
5
5
  SHA512:
6
- metadata.gz: 9783e3e800d4d23da8f71627763f409e5255dad1631d1a5b7042a20a86b77aac3328ecfc9a67faed824ba22ef03e4db7fc556336e4895386670f47ee628f0bf8
7
- data.tar.gz: d0971f3dfc2d44bae671809366c766f683c83ee99ff26e99499fb2a27e657d4bf154e0cc13e067723d03969bc6c230d9bbd661c9dbde97e4d183376d510bddc2
6
+ metadata.gz: 79c50cc4e85c1a13805cd70fa43358b468b87c386d6d9b85b4d679fa1212bded08c97bb4dded8422d72722de963770492aa1f291b99008101825baf3d4b0c77f
7
+ data.tar.gz: 0f0b50bf223b3132858e60d50b240f9c8e15ce5fa05bc31796bb67493244eabf7f5bb28e99be7eac589629bffa364bb31298c9f7010825ab48ff564b148b6ed9
@@ -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.7"
4
+ VERSION = "3.2.9"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git_fame
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.7
4
+ version: 3.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Linus Oleander