moving testing again

This commit is contained in:
Ryan Voots 2017-04-11 11:42:46 -04:00
parent b780fd380e
commit de25d8c83d
4 changed files with 20 additions and 0 deletions

Binary file not shown.

10
getauth.pl Executable file
View file

@ -0,0 +1,10 @@
#!/usr/bin/env perl
use strict;
use lib './lib';
use Dist;
my $module = "Moose";
print Dist::get_author $module

View file

@ -16,5 +16,15 @@ while (my $l = <$fh>) {
$mod_to_dist{$module} = $dist;
}
sub get_author {
my $module = shift; # dist name or module name
if (my $dist = $mod_to_dist{$module}) {
if ($dist =~ m|^\w/\w\w/([^/]+)/[^/]+$|) {
return $1;
}
}
return '';
}
1;

Binary file not shown.