Sha256: c02a72bf1cce03de1861343d5d0718e56651ca1ba571963898660d858f716d4d

Contents?: true

Size: 543 Bytes

Versions: 7

Compression:

Stored size: 543 Bytes

Contents

desc 'Update doc/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('guide/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

7 entries across 7 versions & 1 rubygems

Version Path
ramaze-2023.01.06 tasks/authors.rake
ramaze-2012.12.08 tasks/authors.rake
ramaze-2012.12.08b tasks/authors.rake
ramaze-2012.04.14 tasks/authors.rake
ramaze-2012.03.07 tasks/authors.rake
ramaze-2011.12.28 tasks/authors.rake
ramaze-2011.10.23 tasks/authors.rake