App-podify
view release on metacpan or search on metacpan
Revision history for perl distribution App-podify
0.03 2016-04-06T15:26:16+0200
- Try to fix "The getpwuid function is unimplemented"
0.02 2016-03-10T22:35:56+0100
- File::Find report paths with "/"
0.01 2016-02-09T08:21:54+0100
- Can move POD to bottom
- Can add POD to new modules
- Can process single file and directories
script/podify.pl view on Meta::CPAN
return [
sprintf("=head1 NAME\n\n%s - TODO\n\n", $self->{module_name} || 'Unknown'),
$self->{module_version} ? printf("=head1 VERSION\n\n$%s\n\n", $self->{module_version}) : (),
sprintf("=head1 SYNOPSIS\n\nTODO\n\n"),
sprintf("=head1 DESCRIPTION\n\nTODO\n\n"),
sprintf("=head1 ATTRIBUTES\n\n"),
map({ sprintf "=head2 %s\n\n", delete $self->{attrs}{$_} } sort keys %{$self->{attrs} || {}}),
sprintf("=head1 METHODS\n\n"),
map({ sprintf "=head2 %s\n\n", delete $self->{subs}{$_} } sort keys %{$self->{subs} || {}}),
sprintf("=head1 AUTHOR\n\n%s\n\n", $ENV{PODIFY_AUTHOR} || (getpwuid $<)[6] || (getpwuid $<)[0]),
sprintf("=head1 COPYRIGHT AND LICENSE\n\nTODO\n\n"),
sprintf("=head1 SEE ALSO\n\nTODO\n\n"),
];
}
sub post_process {
my $self = shift;
delete $self->{attrs}{$_} or delete $self->{subs}{$_} for keys %{$self->{documented}};
}
( run in 0.327 second using v1.01-cache-2.11-cpan-8d75d55dd25 )