Skip to content

Instantly share code, notes, and snippets.

View JacobNinja's full-sized avatar

JR Richardson JacobNinja

View GitHub Profile
@JacobNinja
JacobNinja / Gemfile
Created June 22, 2012 02:21 — forked from mattjmorrison/Gemfile
Dynamic Thor Group
source 'https://rubygems.org'
gem 'thor'
@JacobNinja
JacobNinja / ruby
Last active December 15, 2015 13:29 — forked from Jimgerneer/ruby
class CommitScore
ScoreValue = Struct.new(:email, :score)
def initialize(commit_values)
@commit_values = commit_values
end
def score
grouped_commits_by_email.map {|(email, commits) score_value(email, commits) }