Permalink
Browse files

better packaging

  • Loading branch information...
1 parent c14df8f commit 275b3ce1bc1483d1935e08d9c2bae984db70a23c @tokuhirom committed Oct 18, 2011
Showing with 470 additions and 5 deletions.
  1. +1 −0 .gitignore
  2. +379 −0 LICENSE
  3. +1 −0 MANIFEST.SKIP
  4. +10 −5 Makefile.PL
  5. +2 −0 lib/App/cpanoutdated.pm
  6. +51 −0 xt/01_podspell.t
  7. +13 −0 xt/02_perlcritic.t
  8. +4 −0 xt/03_pod.t
  9. +4 −0 xt/04_minimum_version.t
  10. +5 −0 xt/05_cpan_meta.t
View
@@ -19,3 +19,4 @@ tags
MYMETA.*
META.json
README
+App-cpanoutdated-*/
View
379 LICENSE

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -34,3 +34,4 @@ perltidy.ERR$
^MANIFEST\.SKIP
\b\.gitignore
\.bak$
+^App-cpanoutdated-
View
@@ -2,13 +2,18 @@ use ExtUtils::MakeMaker;
WriteMakefile(
NAME => 'App::cpanoutdated',
VERSION_FROM => "lib/App/cpanoutdated.pm",
+ LICENSE => 'perl',
PREREQ_PM => {
- 'LWP' => 0,
- 'IO::Zlib' => 0,
- 'version' => 0,
- 'local::lib' => 1.006008,
+ 'LWP' => 0,
+ 'IO::Zlib' => 0,
+ 'version' => 0,
+ 'local::lib' => 1.006008,
'ExtUtils::MakeMaker' => 6.56,
- 'CPAN::DistnameInfo' => 0.10,
+ 'CPAN::DistnameInfo' => 0.10,
},
EXE_FILES => ['bin/cpan-outdated'],
+ MIN_PERL_VERSION => '5.008001',
+ ( -d '.git' || $ENV{RELEASE_TESTING} )
+ ? ( test => { TESTS => 't/*.t xt/*.t', }, )
+ : (),
);
View
@@ -1,3 +1,5 @@
package App::cpanoutdated;
+use strict;
+use warnings;
our $VERSION = "0.18";
1;
View
@@ -0,0 +1,51 @@
+use strict;
+use Test::More;
+eval q{ use Test::Spelling };
+plan skip_all => "Test::Spelling is not installed." if $@;
+add_stopwords(map { split /[\s\:\-]/ } <DATA>);
+$ENV{LANG} = 'C';
+my $spell_cmd;
+foreach my $path (split(/:/, $ENV{PATH})) {
+ -x "$path/spell" and $spell_cmd="spell", last;
+ -x "$path/ispell" and $spell_cmd="ispell -l", last;
+ -x "$path/aspell" and $spell_cmd="aspell list", last;
+}
+plan skip_all => "no spell/ispell/aspell" unless $spell_cmd;
+
+set_spell_cmd($spell_cmd);
+all_pod_files_spelling_ok('lib');
+__DATA__
+[% config.author %]
+[% module %]
+tokuhirom
+AAJKLFJEF
+GMAIL
+COM
+Tatsuhiko
+Miyagawa
+Kazuhiro
+Osawa
+lestrrat
+typester
+cho45
+charsbar
+coji
+clouder
+gunyarakun
+hio_d
+hirose31
+ikebe
+kan
+kazeburo
+daisuke
+maki
+TODO
+API
+URL
+URI
+db
+TTerse
+irc
+org
+CSS
+Amon
View
@@ -0,0 +1,13 @@
+use strict;
+use Test::More;
+eval q{
+ use Test::Perl::Critic 1.02 -exclude => [
+ 'Subroutines::ProhibitSubroutinePrototypes',
+ 'Subroutines::ProhibitExplicitReturnUndef',
+ 'TestingAndDebugging::ProhibitNoStrict',
+ 'ControlStructures::ProhibitMutatingListFunctions',
+ 'InputOutput::RequireEncodingWithUTF8Layer',
+ ]
+};
+plan skip_all => "Test::Perl::Critic 1.02+ is not installed." if $@;
+all_critic_ok('lib');
View
@@ -0,0 +1,4 @@
+use Test::More;
+eval "use Test::Pod 1.00";
+plan skip_all => "Test::Pod 1.00 required for testing POD" if $@;
+all_pod_files_ok();
View
@@ -0,0 +1,4 @@
+use Test::More;
+eval "use Test::MinimumVersion 0.101080";
+plan skip_all => "Test::Minimumversion required for testing perl minimum version" if $@;
+all_minimum_version_from_metayml_ok();
View
@@ -0,0 +1,5 @@
+use Test::More;
+eval "use Test::CPAN::Meta";
+plan skip_all => "Test::CPAN::Meta required for testing META.yml" if $@;
+plan skip_all => "There is no META.yml" unless -f "META.yml";
+meta_yaml_ok();

0 comments on commit 275b3ce

Please sign in to comment.