Sha256: 915b5f7641320038b8949724c7a4b5315cae043699bc6d2120d83926bd0cfb7b

Contents?: true

Size: 1004 Bytes

Versions: 29

Compression:

Stored size: 1004 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|
    case name
    when "bougyman"
      name, email = "TJ Vanderpoel", "bougy.man@gmail.com"
    when /riscfuture/i
      name, email = "Tim Morgan", "riscfuture@gmail.com"
    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('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

29 entries across 27 versions & 8 rubygems

Version Path
bougyman-autumn-3.1.1 tasks/authors.rake
bougyman-autumn-3.1.10 tasks/authors.rake
bougyman-autumn-3.1.11 tasks/authors.rake
bougyman-autumn-3.1.3 tasks/authors.rake
bougyman-autumn-3.1.4 tasks/authors.rake
bougyman-autumn-3.1.6 tasks/authors.rake
bougyman-autumn-3.1.7 tasks/authors.rake
bougyman-autumn-3.1.8 tasks/authors.rake
bougyman-autumn-3.1.9 tasks/authors.rake
bougyman-freeswitcher-0.1.4 tasks/authors.rake
bougyman-freeswitcher-0.3.0 tasks/authors.rake
bougyman-freeswitcher-0.3.1 tasks/authors.rake
bougyman-freeswitcher-0.4.0 tasks/authors.rake
bougyman-name_parse-0.0.3 tasks/authors.rake
bougyman-name_parse-0.0.4 tasks/authors.rake
bougyman-name_parse-0.0.5 tasks/authors.rake
deathsyn-seedling-0.0.1 tasks/authors.rake
deathsyn-seedling-0.0.1 lib/templates/core/tasks/authors.rake
name_parse-0.0.5 tasks/authors.rake
autumn-3.1.11 tasks/authors.rake