Permalink
Browse files

move to Module::Install

  • Loading branch information...
1 parent 72524a5 commit bb03056bbf9db59b143abb3421c5c7b6c4165641 @2shortplanks committed Jan 27, 2012
Showing with 605 additions and 26 deletions.
  1. +0 −15 Build.PL
  2. +13 −11 Makefile.PL
  3. +7 −0 xt/001pod.t
  4. +11 −0 xt/002podcoverage.t
  5. +13 −0 xt/003perlcritic.t
  6. +561 −0 xt/anyperlperlcriticrc
View
@@ -1,15 +0,0 @@
-use Module::Build;
-
-my $build = new Module::Build
-(
- module_name => 'Template::Plugin::Textile',
- license => 'perl',
- requires => {
- Template => 2.00,
- Text::Textile => 0.5,
- },
- create_makefile_pl => 'traditional',
-);
-
-$build->create_build_script;
-
View
@@ -1,11 +1,13 @@
- use ExtUtils::MakeMaker;
- WriteMakefile
- ('DISTNAME' => 'Template-Plugin-Textile',
- 'VERSION' => '1.01',
- 'PL_FILES' => {},
- 'PREREQ_PM' => {
- 'Text::Textile' => '0.5',
- 'Template' => '2',
-
- },
- );
+use inc::Module::Install;
+
+name 'Template-Plugin-Textile';
+all_from 'lib/Template/Plugin/Textile.pm';
+
+requires 'Template' => 2.00;
+requires 'Text::Textile' => 2.12;
+
+license 'perl';
+githubmeta;
+author_tests('xt');
+
+WriteAll;
View
@@ -0,0 +1,7 @@
+#!perl
+############## STANDARD Test::Pod TEST - DO NOT EDIT ####################
+use strict;
+use Test::More;
+eval "use Test::Pod 1.14";
+plan skip_all => "Test::Pod 1.14 required for testing POD" if $@;
+all_pod_files_ok();
View
@@ -0,0 +1,11 @@
+#!perl
+############ STANDARD Pod::Coverage TEST - DO NOT EDIT ##################
+use Test::More;
+use strict;
+eval "use Test::Pod::Coverage 1.04";
+plan skip_all => "Test::Pod::Coverage 1.04 required for testing POD coverage"
+ if $@;
+all_pod_coverage_ok({
+ coverage_class => 'Pod::Coverage::CountParents',
+ also_private => [ qr/\A (?:has_|load|new) /x], # load and new are standard plugin methods
+});
View
@@ -0,0 +1,13 @@
+#!perl
+############ STANDARD Perl::Critic TEST - DO NOT EDIT ##################
+use strict;
+use File::Spec::Functions;
+use FindBin;
+use Test::More;
+unless (require Test::Perl::Critic) {
+ Test::More::plan(
+ skip_all => "Test::Perl::Critic required for complaining compliance"
+ );
+}
+Test::Perl::Critic->import( -profile => catfile( $FindBin::Bin, "anyperlperlcriticrc" ) );
+Test::Perl::Critic::all_critic_ok();
Oops, something went wrong.

0 comments on commit bb03056

Please sign in to comment.