lib/gitwakatime/commit.rb in gitwakatime-0.1.1 vs lib/gitwakatime/commit.rb in gitwakatime-0.1.2
- old
+ new
@@ -17,10 +17,10 @@
def oldest_dependent
@files.sort { |f| f.commit.date }.first
end
def time_in_seconds
- commited_files.collect {|f| f.time_in_seconds}.inject(:+)
+ commited_files.map(&:time_in_seconds).inject(:+)
end
private
def get_files