From: Graham Knop Date: Tue, 17 May 2016 02:42:27 +0000 (-0400) Subject: add x_contributors data X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=26648fb062087cc9ccfed33f78755c91a939b6b1;p=p5sagit%2FDistar.git add x_contributors data --- diff --git a/lib/Distar.pm b/lib/Distar.pm index 817311c..fb4db68 100644 --- a/lib/Distar.pm +++ b/lib/Distar.pm @@ -146,6 +146,19 @@ sub _clone { if @$license == 1 && $license->[0] eq 'perl_5'; } + $meta->{x_contributors} ||= do { + my $author_email = + join '|', + map quotemeta, + map /(\<[^<>]+\@[^<>]\>)/, + @$Author; + [ + grep !/$author_email/, + map { chomp; s/^\s*\d+\s*//; utf8::decode($_); $_ } + `git shortlog -s --email HEAD` + ]; + }; + %$meta; }