Skip to content

Commit

Permalink
Merge pull request #1233 from metacpan/haarg/add-pumpkings-in-setup
Browse files Browse the repository at this point in the history
copy 08pumpkings file to fake cpan in test setup
  • Loading branch information
haarg authored Jul 8, 2024
2 parents eb8a5f0 + 21e60a5 commit fe99525
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions t/00_setup.t
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ $src_dir->child('bugs.tsv')->copy( $fakecpan_dir->child('bugs.tsv') );
$src_dir->child('mirrors.json')
->copy( $fakecpan_dir->child(qw(indices mirrors.json)) );

$src_dir->child('08pumpkings.txt.gz')
->copy( $fakecpan_dir->child(qw(authors 08pumpkings.txt.gz)) );

write_find_ls($fakecpan_dir);

$server->index_permissions;
Expand Down
13 changes: 13 additions & 0 deletions t/lib/MetaCPAN/DarkPAN.pm
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,18 @@ sub _write_06perms {
$modules_dir->child('06perms.txt')->spew($content);
}

sub _write_08pumpkings {
my $self = shift;

my @pumpkings = qw(
HAARG
);

my $content = join '', map "$_\n", @pumpkings;

$self->base_dir->child(qw(authors 08pumpkings.txt.gz))
->spew( { binmode => ':gzip' }, $content );
}

__PACKAGE__->meta->make_immutable;
1;

0 comments on commit fe99525

Please sign in to comment.