Skip to content

Commit 0d2bc0d

Browse files
committed
Fix contributors task.
1 parent a31928c commit 0d2bc0d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Rakefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -366,14 +366,15 @@ end
366366

367367
task :rdoc => ["doc:clobber", "doc:generate"]
368368

369+
desc "List contributors to RSpec"
369370
task :contributors do
370-
Projects.inject("") do |logs, dir|
371+
logs = Projects.each_with_object("") do |dir, _logs|
371372
path = ReposPath.join(dir)
372373
FileUtils.cd(path) do
373-
logs << `git log`
374+
_logs << `git log`
374375
end
375-
logs
376376
end
377+
377378
authors = logs.split("\n").grep(/^Author/).
378379
map{|l| l.sub(/Author: /,'')}.
379380
map{|l| l.split('<').first}.

0 commit comments

Comments
 (0)