Module: Diggit::DevelopersActivity::ActivityExtractor::Authors

Extended by:
Authors
Included in:
Authors
Defined in:
lib/diggit/developers_activity/activity_extractor/authors.rb

Overview

Deals with authors identity merging

Instance Method Summary collapse

Instance Method Details

#get_author(commit) ⇒ Object



17
18
19
20
# 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) ⇒ Object



10
11
12
13
14
15
# 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