Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed git-rank-contributers for ruby 1.9

String.each has been depricated since ruby 1.9 which cause this script to fail.
  • Loading branch information...
commit 3c2a7505289dc57fa1d50ff2bb0b30adbc503a40 1 parent 48fc890
@ksmandersen ksmandersen authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  .scripts/git-rank-contributors
View
2  .scripts/git-rank-contributors
@@ -34,7 +34,7 @@ htmlize = ARGV.delete("-h")
author = nil
state = :pre_author
-`git log -M -C -C -p --no-color`.each do |l|
+`git log -M -C -C -p --no-color`.each_line do |l|
case
when (state == :pre_author || state == :post_author) && l =~ /Author: (.*)$/
author = $1
Please sign in to comment.
Something went wrong with that request. Please try again.