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:
parent
536fe59796
commit
f175d8f3f4
1 changed files with 1 additions and 1 deletions
2
Rakefile
2
Rakefile
|
@ -111,7 +111,7 @@ end
|
||||||
desc "list of authors"
|
desc "list of authors"
|
||||||
task :authors, [:commit_range, :format, :sep] do |t, a|
|
task :authors, [:commit_range, :format, :sep] do |t, a|
|
||||||
a.with_defaults :format => "%s (%d)", :sep => ", ", :commit_range => '--all'
|
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"
|
blake = "Blake Mizerany"
|
||||||
overall = 0
|
overall = 0
|
||||||
mapping = {
|
mapping = {
|
||||||
|
|
Loading…
Reference in a new issue