git_fame 3.2.7 → 3.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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: bf56419f8fff519bdd1ee13c17ff68ab62950d826575eba5176d1c3958497be1
         | 
| 4 | 
            +
              data.tar.gz: fd32e232ff696ba2ba5fa5638f238b7cf66f0e58a436f4028e9757f351d82203
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 79c50cc4e85c1a13805cd70fa43358b468b87c386d6d9b85b4d679fa1212bded08c97bb4dded8422d72722de963770492aa1f291b99008101825baf3d4b0c77f
         | 
| 7 | 
            +
              data.tar.gz: 0f0b50bf223b3132858e60d50b240f9c8e15ce5fa05bc31796bb67493244eabf7f5bb28e99be7eac589629bffa364bb31298c9f7010825ab48ff564b148b6ed9
         | 
    
        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