module Diggit::DevelopersActivity::ActivityExtractor::Authors

Deals with authors identity merging

Public Instance Methods

get_author(commit) click to toggle source
# File lib/diggit/developers_activity/activity_extractor/authors.rb, line 17
def get_author(commit)
        author = commit.author[:name].downcase
        ((defined? @authors_merge) && (@authors_merge.key? author)) ? @authors_merge[author] : author
end
read_options(source_options) click to toggle source
# File lib/diggit/developers_activity/activity_extractor/authors.rb, line 10
def read_options(source_options)
        @authors_merge = {}
        source_options['authors'].each_pair do |k, v|
                @authors_merge[k.downcase] = v.downcase
        end
end