class Stefon::Surveyor::AddedFiles
This class gives points to the top commiter of the repo proportionally to each file that a user adds
Public Instance Methods
call()
click to toggle source
# File lib/stefon/surveyor/added_files.rb, line 8 def call score_added_files.weight_scores(@weight) end
call_verbose()
click to toggle source
# File lib/stefon/surveyor/added_files.rb, line 12 def call_verbose # There is only 1 top commiter author = GitUtil.top_commiter.first Surveyor::SurveyorStore[[ [author, ["The top commiter in this repo is: #{author}"]] ]] end
score_added_files()
click to toggle source
# File lib/stefon/surveyor/added_files.rb, line 20 def score_added_files if (num_added_files = @grit.repo.status.added.count) > 0 @scores[GitUtil.top_commiter] += num_added_files end @scores end