| 1 | package Dist::Zilla::Plugin::PickyPodWeaver; | ||
| 2 | BEGIN { | ||
| 3 | $Dist::Zilla::Plugin::PickyPodWeaver::VERSION = '1.122720'; | ||
| 4 | } | ||
| 5 | |||
| 6 | use Moose; | ||
| 7 | with 'Dist::Zilla::Role::Plugin'; | ||
| 8 | extends 'Dist::Zilla::Plugin::PodWeaver'; | ||
| 9 | |||
| 10 | override 'found_files' => sub { | ||
| 11 | return [ grep {$_->content =~ m/^# ABSTRACT: /m} @{super()} ]; | ||
| 12 | }; | ||
| 13 | |||
| 14 | __PACKAGE__->meta->make_immutable; | ||
| 15 | no Moose; | ||
| 16 | 1; |