Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
allow empty asciiname for author so all records get into ES
  • Loading branch information
mickeyn committed May 6, 2016
1 parent 08ba3b8 commit 340bac6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/MetaCPAN/Document/Author.pm
Expand Up @@ -23,7 +23,8 @@ has asciiname => (
is => 'ro',
required => 1,
index => 'analyzed',
isa => NonEmptySimpleStr,
isa => Str,
default => q{},
);

has [qw(website email)] =>
Expand Down
1 change: 1 addition & 0 deletions lib/MetaCPAN/Script/Author.pm
Expand Up @@ -60,6 +60,7 @@ sub index_authors {
my ( $name, $email, $homepage, $asciiname )
= ( @$data{qw(fullname email homepage asciiname)} );
$name = undef if ( ref $name );
$asciiname = q{} unless defined $asciiname;
$email = lc($pauseid) . '@cpan.org'
unless ( $email && Email::Valid->address($email) );
log_debug {
Expand Down

0 comments on commit 340bac6

Please sign in to comment.