Sha256: 2a5841db653aca1d092b40f4d93d385ab5238d65871d783ba4694f7a92e023c3

Contents?: true

Size: 1.02 KB

Versions: 22

Compression:

Stored size: 1.02 KB

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 doc/AUTHORS'
task :authors do
  authors = Hash.new(0)

  `git shortlog -nse`.scan(/(\d+)\s(.+)\s<(.*)>$/) do |count, name, email|
    case name
    when "ahoward"
      name, email = "Ara T. Howard", "ara.t.howard@gmail.com"
    when "Martin Hilbig blueonyx@dev-area.net"
      name, email = "Martin Hilbig", "blueonyx@dev-area.net"
    when "Michael Fellinger m.fellinger@gmail.com"
      name, email = "Michael Fellinger", "m.fellinger@gmail.com"
    end

    authors[[name, email]] += count.to_i
  end

  File.open('doc/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

22 entries across 22 versions & 4 rubygems

Version Path
Pistos-ramaze-2009.04.08 tasks/authors.rake
Pistos-ramaze-2009.06.12 tasks/authors.rake
manveru-ramaze-2009.04.01 tasks/authors.rake
manveru-ramaze-2009.04.08 tasks/authors.rake
manveru-ramaze-2009.04.18 tasks/authors.rake
manveru-ramaze-2009.04.22 tasks/authors.rake
manveru-ramaze-2009.04 tasks/authors.rake
manveru-ramaze-2009.05.08 tasks/authors.rake
manveru-ramaze-2009.05 tasks/authors.rake
manveru-ramaze-2009.06.04 tasks/authors.rake
manveru-ramaze-2009.06.12 tasks/authors.rake
manveru-ramaze-2009.06 tasks/authors.rake
manveru-ramaze-2009.07 tasks/authors.rake
rjspotter-ramaze-2009.06.29 tasks/authors.rake
rjspotter-ramaze-2009.06.31 tasks/authors.rake
ramaze-2009.10 tasks/authors.rake
ramaze-2009.07 tasks/authors.rake
ramaze-2009.05 tasks/authors.rake
ramaze-2009.04 tasks/authors.rake
ramaze-2009.06.04 tasks/authors.rake