- Switch to being a Moose role, removing dependencies on
Class::Data::Inheritable and Class::Accessor (Andrey Kostenko in
RT#51089)
+ - Make Pod tests mandatory for authors but never run otherwise
+ - Switch to Test::NoTabs to ensure no tabs, rather than
+ Test::Perl::Critic
0.26 2009-12-06 12:30:00
- Fix Pod to show less nasty method of assigning config by calling
use strict;
use warnings;
use inc::Module::Install 0.91;
+use Module::Install::AuthorRequires;
+use Module::Install::AuthorTests;
name 'Catalyst-Plugin-Static-Simple';
all_from 'lib/Catalyst/Plugin/Static/Simple.pm';
requires 'Moose';
requires 'namespace::autoclean';
+test_requires 'Test::More';
+
+author_requires 'Test::NoTabs';
+author_requires 'Test::Pod' => '1.14';
+author_requires 'Test::Pod::Coverage' => '1.04';
+
+author_tests 't/author';
+
if( can_use 'Catalyst::Plugin::SubRequest' ) {
unless( can_use 'Catalyst::Plugin::SubRequest' => '0.08' ) {
print "** WARNING **\n"
+++ /dev/null
-use Test::More;
-
-eval "use Test::Pod 1.14";
-plan skip_all => 'Test::Pod 1.14 required' if $@;
-plan skip_all => 'set TEST_POD to enable this test' unless $ENV{TEST_POD};
-
-all_pod_files_ok();
+++ /dev/null
-use Test::More;
-
-eval "use Test::Pod::Coverage 1.04";
-plan skip_all => 'Test::Pod::Coverage 1.04 required' if $@;
-plan skip_all => 'set TEST_POD to enable this test' unless $ENV{TEST_POD};
-
-all_pod_coverage_ok();
+++ /dev/null
-include = CodeLayout::ProhibitHardTabs
-only = 1
-
-[CodeLayout::ProhibitHardTabs]
-allow_leading_tabs = 0
\ No newline at end of file
+++ /dev/null
-use strict;
-use warnings;
-
-use File::Spec;
-use FindBin ();
-use Test::More;
-
-if ( !-e "$FindBin::Bin/../MANIFEST.SKIP" ) {
- plan skip_all => 'Critic test only for developers.';
-}
-else {
- eval { require Test::Perl::Critic };
- if ( $@ ) {
- plan tests => 1;
- fail( 'You must install Test::Perl::Critic to run 04critic.t' );
- exit;
- }
-}
-
-my $rcfile = File::Spec->catfile( 't', '04critic.rc' );
-Test::Perl::Critic->import( -profile => $rcfile );
-all_critic_ok();
\ No newline at end of file
--- /dev/null
+use strict;
+use warnings;
+use Test::More;
+
+use Test::Pod 1.14;
+
+all_pod_files_ok();
--- /dev/null
+use Test::More;
+
+use Test::Pod::Coverage 1.04;
+
+all_pod_coverage_ok();
--- /dev/null
+use strict;
+use warnings;
+use Test::More;
+use Test::NoTabs;
+
+all_perl_files_ok(qw/lib/);
+