1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00

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

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