Permalink
Browse files

modernize package

  • Loading branch information...
1 parent da2e8c5 commit 7bb98f7935ed412b282668b27a8106f9f4125f97 @tokuhirom committed Nov 5, 2011
Showing with 553 additions and 64 deletions.
  1. +20 −0 .gitignore
  2. +27 −0 Build.PL
  3. +379 −0 LICENSE
  4. +10 −18 MANIFEST
  5. +19 −0 MANIFEST.SKIP
  6. +0 −11 Makefile.PL
  7. +0 −27 README
  8. +2 −1 lib/Template/Plugin/MobileJPPictogram.pm
  9. +0 −5 t/98_perlcritic.t
  10. +0 −2 t/perlcriticrc
  11. +60 −0 xt/01_podspell.t
  12. +12 −0 xt/02_perlcritic.t
  13. +4 −0 xt/03_pod.t
  14. +4 −0 xt/04_minimum_version.t
  15. +5 −0 xt/05_cpan_meta.t
  16. +11 −0 xt/06_meta_author.t
View
@@ -0,0 +1,20 @@
+
+Makefile
+inc/
+ppport.h
+*.sw[po]
+*.bak
+*.old
+Build
+_build/
+xshelper.h
+tags
+pm_to_blib
+blib/
+META.yml
+MYMETA.*
+META.json
+META.yml
+README
+^inc/
+Template-Plugin-MobileJPPictogram-*/
View
@@ -0,0 +1,27 @@
+use strict;
+use warnings FATAL => 'all';
+use Module::Build;
+
+my $build = Module::Build->new(
+ license => 'perl',
+ recursive_test_files => 1,
+ dynamic_config => 0,
+ build_requires => { 'Test::More' => '0.98' },
+ configure_requires => { 'Module::Build' => '0.38' },
+ requires => {
+ 'Filter::Util::Call' => '0',
+ 'Encode::JP::Mobile::Charnames' => '0',
+ 'Encode::JP::Mobile' => '0',
+ 'Template' => '0',
+ 'perl' => '5.008008',
+ },
+ no_index => { 'directory' => [ 'inc', 't' ] },
+ name => 'Template-Plugin-MobileJPPictogram',
+ module_name => 'Template::Plugin::MobileJPPictogram',
+
+ test_files => ( -d '.git' || $ENV{RELEASE_TESTING} ) ? 't/ xt/' : 't/',
+
+ create_readme => 1,
+ create_license => 1,
+);
+$build->create_build_script();
View
379 LICENSE

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -1,25 +1,17 @@
+.gitignore
+Build.PL
Changes
-inc/Module/Install.pm
-inc/Module/Install/Base.pm
-inc/Module/Install/Can.pm
-inc/Module/Install/Fetch.pm
-inc/Module/Install/Include.pm
-inc/Module/Install/Makefile.pm
-inc/Module/Install/Metadata.pm
-inc/Module/Install/TestBase.pm
-inc/Module/Install/Win32.pm
-inc/Module/Install/WriteAll.pm
-inc/Spiffy.pm
-inc/Test/Base.pm
-inc/Test/Base/Filter.pm
-inc/Test/Builder.pm
-inc/Test/Builder/Module.pm
-inc/Test/More.pm
-inc/YAML.pm
lib/Template/Plugin/MobileJPPictogram.pm
-Makefile.PL
+LICENSE
MANIFEST This list of files
+META.json
META.yml
README
t/00_compile.t
t/01_simple.t
+xt/01_podspell.t
+xt/02_perlcritic.t
+xt/03_pod.t
+xt/04_minimum_version.t
+xt/05_cpan_meta.t
+xt/06_meta_author.t
View
@@ -17,3 +17,22 @@
^[^/]+\.yaml$
^[^/]+\.pl$
^\.shipit$
+^\.git/
+^[^/]+\.gz$
+\.sw[po]$
+^Build$
+^ppport.h$
+^xshelper.h$
+cover_db
+nytprof
+perltidy.ERR$
+^README.pod$
+^README.mkdn$
+^tags$
+^MYMETA\.
+\b_build
+^MANIFEST\.SKIP
+\b\.gitignore
+\.bak$
+^inc/
+^Template-Plugin-MobileJPPictogram-
View
@@ -1,11 +0,0 @@
-use inc::Module::Install;
-name 'Template-Plugin-MobileJPPictogram';
-all_from 'lib/Template/Plugin/MobileJPPictogram.pm';
-
-requires $_ for (qw/Template Encode::JP::Mobile Encode::JP::Mobile::Charnames/);
-
-test_requires 'Test::More';
-test_requires 'YAML';
-use_test_base;
-auto_include;
-WriteAll;
View
27 README
@@ -1,27 +0,0 @@
-This is Perl module Template::Plugin::MobileJPPictogram.
-
-INSTALLATION
-
-Template::Plugin::MobileJPPictogram installation is straightforward. If your CPAN shell is set up,
-you should just be able to do
-
- % cpan Template::Plugin::MobileJPPictogram
-
-Download it, unpack it, then build it as per the usual:
-
- % perl Makefile.PL
- % make && make test
-
-Then install it:
-
- % make install
-
-DOCUMENTATION
-
-Template::Plugin::MobileJPPictogram documentation is available as in POD. So you can do:
-
- % perldoc Template::Plugin::MobileJPPictogram
-
-to read the documentation online with your favorite pager.
-
-Tokuhiro Matsuno
@@ -2,6 +2,7 @@ package Template::Plugin::MobileJPPictogram;
use strict;
use warnings;
+use 5.0080008;
our $VERSION = '0.02';
require Template::Plugin;
@@ -92,7 +93,7 @@ format with Unicode.
=head1 AUTHOR
-Tokuhiro Matsuno E<lt>tokuhirom aaaatttt gmail dotottto commmmmE<gt>
+Tokuhiro Matsuno E<lt>tokuhirom aaaatttt@ gmail dotottto commmmmE<gt>
=head1 SEE ALSO
View
@@ -1,5 +0,0 @@
-use strict;
-use Test::More;
-eval { use Test::Perl::Critic -profile => 't/perlcriticrc' };
-plan skip_all => "Test::Perl::Critic is not installed." if $@;
-all_critic_ok('lib');
View
@@ -1,2 +0,0 @@
-[TestingAndDebugging::ProhibitNoStrict]
-allow=refs
View
@@ -0,0 +1,60 @@
+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__
+Tokuhiro Matsuno
+
+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
+Tokuhiro
+Matsuno
+Svn
+svn
+diff
+Gosuke
+Miyashita
+mysqldiff
+mmm
View
@@ -0,0 +1,12 @@
+use strict;
+use Test::More;
+eval q{
+ use Test::Perl::Critic 1.02 -exclude => [
+ 'Subroutines::ProhibitSubroutinePrototypes',
+ 'Subroutines::ProhibitExplicitReturnUndef',
+ 'TestingAndDebugging::ProhibitNoStrict',
+ 'ControlStructures::ProhibitMutatingListFunctions',
+ ]
+};
+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();
View
@@ -0,0 +1,11 @@
+use strict;
+use Test::More;
+eval "use Parse::CPAN::Meta";
+plan skip_all => "Parse::CPAN::Meta required for testing META.yml" unless eval "use Parse::CPAN::Meta; 1;";
+plan skip_all => "There is no META.yml" unless -f "META.yml";
+
+my $meta = Parse::CPAN::Meta->load_file('META.yml');
+isnt($meta->{author}->[0], 'unknown', 'author info');
+cmp_ok($meta->{'build_requires'}->{'Test::More'}, '>=', '0.98');
+ok($meta->{'requires'}->{'perl'}, 'metayml_declares_perl_version');
+done_testing;

0 comments on commit 7bb98f7

Please sign in to comment.