From f175d8f3f48062806b6e1388592e5bc0c5e661b5 Mon Sep 17 00:00:00 2001 From: Andrey Koleshko Date: Sun, 19 Jan 2014 01:48:37 +0300 Subject: [PATCH] Reafactor creation hash with default value in Rakefile Pass default value as parameter for initializer rather than passing proc --- Rakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 4a8053e2..d4a6bf12 100644 --- a/Rakefile +++ b/Rakefile @@ -111,7 +111,7 @@ end desc "list of authors" task :authors, [:commit_range, :format, :sep] do |t, a| a.with_defaults :format => "%s (%d)", :sep => ", ", :commit_range => '--all' - authors = Hash.new { |h,k| h[k] = 0 } + authors = Hash.new(0) blake = "Blake Mizerany" overall = 0 mapping = {