Reafactor creation hash with default value in Rakefile

Pass default value as parameter for initializer rather than passing proc
This commit is contained in:
Andrey Koleshko 2014-01-19 01:48:37 +03:00
parent 536fe59796
commit f175d8f3f4
1 changed files with 1 additions and 1 deletions

View File

@ -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 = {