Sha256: cfe15df0796aa82a2002c28cb0f7ec61dc9087cee55b26f5b6413258e1d54df0

Contents?: true

Size: 706 Bytes

Versions: 13

Compression:

Stored size: 706 Bytes

Contents

# Once git has a fix for the glibc in handling .mailmap and another fix for
# allowing empty mail address to be mapped in .mailmap we won't have to handle
# them manually.

desc 'Update AUTHORS'
task :authors do
  authors = Hash.new(0)

  `git shortlog -nse`.scan(/(\d+)\s(.+)\s<(.*)>$/) do |count, name, email|
    authors[[name, email]] += count.to_i
  end

  File.open('AUTHORS', 'w+') do |io|
    io.puts "Following persons have contributed to #{GEMSPEC.name}."
    io.puts '(Sorted by number of submitted patches, then alphabetically)'
    io.puts ''
    authors.sort_by{|(n,e),c| [-c, n.downcase] }.each do |(name, email), count|
      io.puts("%6d %s <%s>" % [count, name, email])
    end
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
ffi-tk-2010.08.23 tasks/authors.rake
ver-2010.08 tasks/authors.rake
ffi-tk-2010.08 tasks/authors.rake
ffi-tk-2010.06 tasks/authors.rake
ffi-tk-2010.03 tasks/authors.rake
ffi-tk-2010.02 tasks/authors.rake
ver-2010.02 tasks/authors.rake
ffi-tk-2010.01 tasks/authors.rake
ffi-tk-2010.01.02 tasks/authors.rake
ver-2009.12.14 tasks/authors.rake
ffi-tk-2009.12.14 tasks/authors.rake
ver-2009.11.29 tasks/authors.rake
ffi-tk-2009.11.29 tasks/authors.rake