Skip to content

Commit

Permalink
Use eval block syntax to load podspelling plugin
Browse files Browse the repository at this point in the history
and explicitly remove it from prereqs
  • Loading branch information
rwstauner committed May 25, 2015
1 parent f5038ec commit 3057268
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions dist.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ copyright_year = 2010

Prepender.skip = share/.+

[RemovePrereqs]
remove = Dist::Zilla::Plugin::Test::PodSpelling

[Prereqs / RuntimeRequires]
; Encoding
Dist::Zilla = 5
Expand Down
2 changes: 1 addition & 1 deletion lib/Dist/Zilla/PluginBundle/Author/RWSTAUNER.pm
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ with qw(
# Dist::Zilla::Role::DynamicConfig is not necessary: payload is already dynamic

# don't require it in case it won't install somewhere
my $spelling_tests = eval 'require Dist::Zilla::Plugin::Test::PodSpelling';
my $spelling_tests = eval { require Dist::Zilla::Plugin::Test::PodSpelling; };

# cannot use $self->name for class methods
sub _bundle_name {
Expand Down

0 comments on commit 3057268

Please sign in to comment.