#!/usr/bin/perl -w
use strict;
-my ($committer, $patch, $author, $date);
+my ($committer, $patch, $author);
+use utf8;
use Getopt::Long;
use Text::Wrap;
$Text::Wrap::columns = 80;
my $result = GetOptions (
# modes
- "who" => \$who,
- "rank" => \$rank,
+ "who" => \$who,
+ "rank" => \$rank,
"thanks-applied" => \$ta,
- "missing" => \$ack ,
- "tap" => \$tap,
+ "missing" => \$ack ,
+ "tap" => \$tap,
+
# modifiers
- "authors" => \$author_file,
- "percentage" => \$percentage, # show as %age
- "cumulative" => \$cumulative,
- "reverse" => \$reverse,
+ "authors=s" => \$author_file,
+ "percentage" => \$percentage, # show as %age
+ "cumulative" => \$cumulative,
+ "reverse" => \$reverse,
);
if (!$result or ( $rank + $ta + $who + $ack + $tap != 1 ) or !@ARGV) {
}
$author_file ||= './AUTHORS';
-die "Can't locate '$author_file'. Specify it with '--author <path>'."
+die "Can't locate '$author_file'. Specify it with '--authors <path>'."
unless -f $author_file;
my $map = generate_known_author_map();
for (@lines) {
next if m/^$/;
next if m/^(\S*?)^Merge:/ism; # skip merge commits
- if (m/^(.*?)^Author:\s*(.*?)^AuthorDate:\s*(.*?)^Commit:\s*(.*?)^(.*)$/gism) {
+ if (m/^(.*?)^Author:\s*(.*?)^AuthorDate:\s*.*?^Commit:\s*(.*?)^(.*)$/gism) {
# new patch
- ( $patch, $author, $date, $committer ) = ( $1, $2, $3, $4 );
+ ( $patch, $author, $committer ) = ( $1, $2, $3 );
chomp($author);
unless ($author) { die $_ }
chomp($committer);
"arbor\100al37al08.telecel.pt"
, # reported perlbug ticket 5196 - no actual code contribution. no real name - jrv 20091006
"oracle\100pcr8.pcr.com", # Reported perlbug ticket 1015 - no patch - Probably Ed Eddington ed@pcr.com
+ "snaury\100gmail.com", # Reported cpan ticket 35943, with patch for fix
;
#
my (%count, %raw);
foreach my $filename (@authors) {
open FH, "<$filename" or die "Can't open $filename: $!";
- binmode FH, ':encoding(ISO-8859-1)';
+ binmode FH, ':encoding(UTF-8)';
while (<FH>) {
next if /^\#/;
next if /^-- /;
$name =~ s/\s*\z//;
$raw{$email} = $name;
$count{$email}++;
- } elsif (/^([-A-Za-z0-9 .\'À-ÖØöø-ÿ]+)[\t\n]/) {
+ } elsif (/^([-A-Za-z0-9 .\'À-ÖØöø-ÿ]+)[\t\n]/) {
# Name only
$untraced{$1}++;
sub _raw_address {
my $addr = shift;
my $real_name;
- if ( $addr =~ /<.*>/ ) {
+ if ($addr =~ /(?:\\?")?\s*\(via RT\) <perlbug-followup\@perl\.org>$/p) {
+ my $name = ${^PREMATCH};
+ $addr = 'perlbug-followup@perl.org';
+ #
+ # Try to find the author
+ #
+ while (my ($email, $author_name) = each %authors) {
+ if ($name eq $author_name) {
+ $addr = $email;
+ $real_name = $name;
+ last;
+ }
+ }
+ }
+ elsif ( $addr =~ /<.*>/ ) {
$addr =~ s/^\s*(.*)\s*<\s*(.*?)\s*>.*$/$2/;
$real_name = $1;
}
demerphq demerphq\100gmail.com
+ yves.orton\100de.mci.com
+ yves.orton\100mciworldcom.de
++ yves.orton\100booking.com
+ demerphq\100dromedary.booking.com
+ demerphq\100gemini.(none)
+ demerphq\100camel.booking.com
sky sky\100nanisky.com
+ artur\100contiller.se
+ arthur\100contiller.se
+smueller 7k8lrvf02\100sneakemail.com
++ kjx9zthh3001\100sneakemail.com
++ dtr8sin02\100sneakemail.com
++ rt8363b02\100sneakemail.com
++ o6hhmk002\100sneakemail.com
++ smueller\100cpan.org
++ l2ot9pa02\100sneakemail.com
++ wyp3rlx02\100sneakemail.com
++ 0mgwtfbbq\100sneakemail.com
++ xyey9001\100sneakemail.com
steveh steve.m.hay\100googlemail.com
+ stevehay\100planit.com
+ steve.hay\100uk.radan.com
# Mere mortals.
#
\043####\100juerd.nl juerd\100cpan.org
++ juerd\100c3.convolution.nl
+ juerd\100convolution.nl
-7k8lrvf02\100sneakemail.com kjx9zthh3001\100sneakemail.com
-+ dtr8sin02\100sneakemail.com
-+ rt8363b02\100sneakemail.com
-+ o6hhmk002\100sneakemail.com
-+ smueller\100cpan.org
-+ l2ot9pa02\100sneakemail.com
-+ wyp3rlx02\100sneakemail.com
-+ 0mgwtfbbq\100sneakemail.com
-+ xyey9001\100sneakemail.com
a.r.ferreira\100gmail.com aferreira\100shopzilla.com
abe\100ztreet.demon.nl abeltje\100cpan.org
abela\100hsc.fr abela\100geneanet.org
bert\100alum.mit.edu bert\100genscan.com
bigbang7\100gmail.com ddascalescu+github\100gmail.com
blgl\100stacken.kth.se blgl\100hagernas.com
++ 2bfjdsla52kztwejndzdstsxl9athp\100gmail.com
brian.d.foy\100gmail.com bdfoy\100cpan.org
BQW10602\100nifty.com sadahiro\100cpan.org
chromatic\100wgz.org chromatic\100rmci.net
+ckuskie\100cadence.com colink\100perldreamer.com
claes\100surfar.nu claes\100versed.se
clintp\100geeksalad.org cpierce1\100ford.com
clkao\100clkao.org clkao\100bestpractical.com
david\100kineticode.com david\100wheeler.com
+ david\100wheeler.net
dennis\100booking.com dennis\100camel.ams6.corp.booking.com
++ dennis.kaarsemaker\100booking.com
+ dennis\100kaarsemaker.net
dev-perl\100pimb.org knew-p5p\100pimb.org
+ lists-p5p\100pimb.org
joseph\100cscaper.com joseph\1005sigma.com
joshua\100rodd.us jrodd\100pbs.org
jtobey\100john-edwin-tobey.org jtobey\100user1.channel1.com
-jpeacock\100rowman.com john.peacock\100havurah-software.org
+jpeacock\100messagesystems.com john.peacock\100havurah-software.org
+ jpeacock\100havurah-software.org
+ jpeacock\100dsl092-147-156.wdc1.dsl.speakeasy.net
+ jpeacock\100jpeacock-hp.doesntexist.org
+ jpeacock\100cpan.org
++ jpeacock\100rowman.com
jql\100accessone.com jql\100jql.accessone.com
jsm28\100hermes.cam.ac.uk jsm28\100cam.ac.uk
+ kane\100xs4all.nl
+ jos\100dwim.org
+ jib\100ripe.net
+keith.s.thompson\100gmail.com kst\100mib.org
ken\100mathforum.org kenahoo\100gmail.com
+ ken.williams\100thomsonreuters.com
kroepke\100dolphin-services.de kay\100dolphin-services.de
lutherh\100stratcom.com lutherh\100infinet.com
mab\100wdl.loral.com markb\100rdcf.sm.unisys.com
marcel\100codewerk.com gr\100univie.ac.at
+marcgreen\100cpan.org marcgreen\100wpi.edu
+markleightonfisher\100gmail.com fisherm\100tce.com
mark.p.lutz\100boeing.com tecmpl1\100triton.ca.boeing.com
marnix\100gmail.com pttesac!marnix!vanam
marty+p5p\100kasei.com marty\100martian.org
joshua.pritikin\100db.com joshua\100paloalto.com
+litt\100acm.org tlhackque\100yahoo.com
+
+meyering@asic.sc.ti.com jim\100meyering.net
+
okamoto\100corp.hp.com okamoto\100hpcc123.corp.hp.com
orwant\100oreilly.com orwant\100media.mit.edu
+ khw\100khw-desktop.(none)
radu\100netsoft.ro rgreab\100fx.ro
+rajagopa\100pauline.schrodinger.com rajagopa\100schrodinger.com
raphael.manfredi\100pobox.com raphael_manfredi\100grenoble.hp.com
module@renee-baecker.de renee.baecker\100smart-websolutions.de
+ reneeb\100reneeb-desktop.(none)
+ otrs\100ubuntu.(none)
++ perl\100renee-baecker.de
richard.foley\100rfi.net richard.foley\100t-online.de
+ richard.foley\100ubs.com
+ richard.foley\100ubsw.com
+ perl.p5p\100rjbs.manxome.org
rjk\100linguist.dartmouth.edu rjk\100linguist.thayer.dartmouth.edu
+ rjk-perl-p5p\100tamias.net
++ rjk\100tamias.net
rjray\100redhat.com rjray\100uswest.com
rmgiroux\100acm.org rmgiroux\100hotmail.com
+ mgiroux\100bear.com
robin\100cpan.org robin\100kitsite.com
roderick\100argon.org roderick\100gate.net
+ roderick\100ibcinc.com
+root\100ub32.org argrath\100ub32.org
rootbeer\100teleport.com rootbeer\100redcat.com
+ tomphoenix\100unknown
rurban\100x-ray.at rurban\100cpan.org
-
++ rurban\100cpanel.net
sartak\100bestpractical.com sartak\100gmail.com
++ code\100sartak.org
sadinoff\100olf.com danny-cpan\100sadinoff.com
schubiger\100cpan.org steven\100accognoscere.org
+ sts\100accognoscere.org
wolfgang.laun\100alcatel.at wolfgang.laun\100chello.at
+ wolfgang.laun\100thalesgroup.com
+ wolfgang.laun\100gmail.com
+wolfsage\100gmail.com mhorsfall\100darmstadtium.(none)
yath\100yath.de yath-perlbug\100yath.de
jkeen@verizon.net jkeenan@cpan.org