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 (commit) = commit.[:name].downcase ((defined? @authors_merge) && (@authors_merge.key? )) ? @authors_merge[] : end |
#read_options(source_options) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/diggit/developers_activity/activity_extractor/authors.rb', line 10 def () @authors_merge = {} ['authors'].each_pair do |k, v| @authors_merge[k.downcase] = v.downcase end end |