Sha256: 366a1540204cca4f5a527d7f4eb153ebb2c13603ee4f5fdfa393ce7c0ed0ce72

Contents?: true

Size: 266 Bytes

Versions: 3

Compression:

Stored size: 266 Bytes

Contents

class AuthorsCommitStats < CommitStats
  include StatsHash

  def initialize
    super
    @hash = Hash.new
  end

  def update(commit)
    super(commit)

    author = commit[:author]
    @hash[author] ||= CommitStats.new
    @hash[author].update(commit)
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
gitstats-rb-2.0.0 lib/gitstats/stats/commit/author.rb
gitstats-ruby-1.0.1 lib/gitstats/stats/commit/author.rb
gitstats-ruby-1.0.0 lib/gitstats/stats/commit/author.rb