From 83f66b4646b999abd11b3bdc86124da4a0e617ca Mon Sep 17 00:00:00 2001 From: Masahiro Nagano Date: Thu, 10 Mar 2011 00:00:28 +0900 Subject: [PATCH] initial commit --- .gitignore | 11 +++++++++++ .shipit | 1 + Changes | 4 ++++ MANIFEST.SKIP | 21 +++++++++++++++++++++ Makefile.PL | 13 +++++++++++++ README | 27 +++++++++++++++++++++++++++ lib/Scope/Container/DBI.pm | 32 ++++++++++++++++++++++++++++++++ t/00_compile.t | 4 ++++ xt/01_podspell.t | 11 +++++++++++ xt/01_podspell.t~ | 10 ++++++++++ xt/02_perlcritic.t | 8 ++++++++ xt/03_pod.t | 4 ++++ xt/perlcriticrc | 2 ++ 13 files changed, 148 insertions(+) create mode 100644 .gitignore create mode 100644 .shipit create mode 100644 Changes create mode 100644 MANIFEST.SKIP create mode 100644 Makefile.PL create mode 100644 README create mode 100644 lib/Scope/Container/DBI.pm create mode 100644 t/00_compile.t create mode 100644 xt/01_podspell.t create mode 100644 xt/01_podspell.t~ create mode 100644 xt/02_perlcritic.t create mode 100644 xt/03_pod.t create mode 100644 xt/perlcriticrc diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c38068c --- /dev/null +++ b/.gitignore @@ -0,0 +1,11 @@ +cover_db +META.yml +Makefile +blib +inc +pm_to_blib +MANIFEST +Makefile.old +nytprof.out +MANIFEST.bak +*.sw[po] diff --git a/.shipit b/.shipit new file mode 100644 index 0000000..8731dce --- /dev/null +++ b/.shipit @@ -0,0 +1 @@ +steps = FindVersion, ChangeVersion, CheckChangeLog, DistTest, Commit, Tag, MakeDist, UploadCPAN diff --git a/Changes b/Changes new file mode 100644 index 0000000..dbe112c --- /dev/null +++ b/Changes @@ -0,0 +1,4 @@ +Revision history for Perl extension Scope::Container::DBI + +0.01 Thu Mar 10 00:00:20 2011 + - original version diff --git a/MANIFEST.SKIP b/MANIFEST.SKIP new file mode 100644 index 0000000..fb4c7b4 --- /dev/null +++ b/MANIFEST.SKIP @@ -0,0 +1,21 @@ +\bRCS\b +\bCVS\b +^MANIFEST\. +^Makefile$ +~$ +^# +\.old$ +^blib/ +^pm_to_blib +^MakeMaker-\d +\.gz$ +\.cvsignore +^t/9\d_.*\.t +^t/perlcritic +^tools/ +\.svn/ +^[^/]+\.yaml$ +^[^/]+\.pl$ +^\.shipit$ +^\.git/ +\.sw[po]$ diff --git a/Makefile.PL b/Makefile.PL new file mode 100644 index 0000000..abe607c --- /dev/null +++ b/Makefile.PL @@ -0,0 +1,13 @@ +use inc::Module::Install; +name 'Scope-Container-DBI'; +all_from 'lib/Scope/Container/DBI.pm'; + +# requires ''; + +tests 't/*.t'; +author_tests 'xt'; + +test_requires 'Test::More'; +auto_set_repository; +auto_include; +WriteAll; diff --git a/README b/README new file mode 100644 index 0000000..87cc0a4 --- /dev/null +++ b/README @@ -0,0 +1,27 @@ +This is Perl module Scope::Container::DBI. + +INSTALLATION + +Scope::Container::DBI installation is straightforward. If your CPAN shell is set up, +you should just be able to do + + % cpan Scope::Container::DBI + +Download it, unpack it, then build it as per the usual: + + % perl Makefile.PL + % make && make test + +Then install it: + + % make install + +DOCUMENTATION + +Scope::Container::DBI documentation is available as in POD. So you can do: + + % perldoc Scope::Container::DBI + +to read the documentation online with your favorite pager. + +Masahiro Nagano diff --git a/lib/Scope/Container/DBI.pm b/lib/Scope/Container/DBI.pm new file mode 100644 index 0000000..a248356 --- /dev/null +++ b/lib/Scope/Container/DBI.pm @@ -0,0 +1,32 @@ +package Scope::Container::DBI; +use strict; +use warnings; +our $VERSION = '0.01'; + +1; +__END__ + +=head1 NAME + +Scope::Container::DBI - + +=head1 SYNOPSIS + + use Scope::Container::DBI; + +=head1 DESCRIPTION + +Scope::Container::DBI is + +=head1 AUTHOR + +Masahiro Nagano Ekazeburo {at} gmail.comE + +=head1 SEE ALSO + +=head1 LICENSE + +This library is free software; you can redistribute it and/or modify +it under the same terms as Perl itself. + +=cut diff --git a/t/00_compile.t b/t/00_compile.t new file mode 100644 index 0000000..a349f6d --- /dev/null +++ b/t/00_compile.t @@ -0,0 +1,4 @@ +use strict; +use Test::More tests => 1; + +BEGIN { use_ok 'Scope::Container::DBI' } diff --git a/xt/01_podspell.t b/xt/01_podspell.t new file mode 100644 index 0000000..fd5743b --- /dev/null +++ b/xt/01_podspell.t @@ -0,0 +1,11 @@ +use Test::More; +eval q{ use Test::Spelling }; +plan skip_all => "Test::Spelling is not installed." if $@; +add_stopwords(map { split /[\s\:\-]/ } ); +$ENV{LANG} = 'C'; +set_spell_cmd("aspell -l en list") if `which aspell`; +all_pod_files_spelling_ok('lib'); +__DATA__ +Masahiro Nagano +kazeburo {at} gmail.com +Scope::Container::DBI diff --git a/xt/01_podspell.t~ b/xt/01_podspell.t~ new file mode 100644 index 0000000..67a850b --- /dev/null +++ b/xt/01_podspell.t~ @@ -0,0 +1,10 @@ +use Test::More; +eval q{ use Test::Spelling }; +plan skip_all => "Test::Spelling is not installed." if $@; +add_stopwords(map { split /[\s\:\-]/ } ); +$ENV{LANG} = 'C'; +all_pod_files_spelling_ok('lib'); +__DATA__ +Masahiro Nagano +kazeburo {at} gmail.com +Scope::Container::DBI diff --git a/xt/02_perlcritic.t b/xt/02_perlcritic.t new file mode 100644 index 0000000..b977df8 --- /dev/null +++ b/xt/02_perlcritic.t @@ -0,0 +1,8 @@ +use strict; +use Test::More; +eval { + require Test::Perl::Critic; + Test::Perl::Critic->import( -profile => 'xt/perlcriticrc'); +}; +plan skip_all => "Test::Perl::Critic is not installed." if $@; +all_critic_ok('lib'); diff --git a/xt/03_pod.t b/xt/03_pod.t new file mode 100644 index 0000000..437887a --- /dev/null +++ b/xt/03_pod.t @@ -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(); diff --git a/xt/perlcriticrc b/xt/perlcriticrc new file mode 100644 index 0000000..fa96144 --- /dev/null +++ b/xt/perlcriticrc @@ -0,0 +1,2 @@ +[TestingAndDebugging::ProhibitNoStrict] +allow=refs