Sha256: e45fb288023ecd4150ea33e937b270ff0d96e2f6a03f931ba6a4bee797d78ae7

Contents?: true

Size: 1.06 KB

Versions: 45

Compression:

Stored size: 1.06 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 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"
    when /jayson/i
      name, email = "Jayson Vaughn", "vaughn.jayson@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

45 entries across 45 versions & 2 rubygems

Version Path
bougyman-freeswitcher-0.4.1 tasks/authors.rake
bougyman-freeswitcher-0.4.2 tasks/authors.rake
freeswitcher-0.8.0 tasks/authors.rake
freeswitcher-0.7.1 tasks/authors.rake
freeswitcher-0.7.0 tasks/authors.rake
freeswitcher-0.6.18 tasks/authors.rake
freeswitcher-0.6.17 tasks/authors.rake
freeswitcher-0.6.16 tasks/authors.rake
freeswitcher-0.6.15 tasks/authors.rake
freeswitcher-0.6.14 tasks/authors.rake
freeswitcher-0.6.13 tasks/authors.rake
freeswitcher-0.6.12 tasks/authors.rake
freeswitcher-0.6.11 tasks/authors.rake
freeswitcher-0.6.10 tasks/authors.rake
freeswitcher-0.6.9 tasks/authors.rake
freeswitcher-0.6.8 tasks/authors.rake
freeswitcher-0.6.7 tasks/authors.rake
freeswitcher-0.6.6 tasks/authors.rake
freeswitcher-0.6.5 tasks/authors.rake
freeswitcher-0.6.4 tasks/authors.rake