Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

24 lines (18 sloc) 0.468 kB
module RepoDepot
class Commit < CodeHistory
def added_methods
Repository.new('', events.reject {|e| e.previous_state }).methods
end
def added_complexity
events.reduce(0.0) do |sum,e|
if not e.previous_state
sum += e.complexity
elsif e.previous_state.complexity >= e.complexity
sum += 0.0
else
sum += e.complexity - e.previous_state.complexity
end
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.