Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 0fa4207
Showing
12 changed files
with
169 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
META.yml | ||
Makefile | ||
Makefile.old | ||
blib | ||
inc | ||
pm_to_blib | ||
temp.pl | ||
MANIFEST.bak | ||
pod.html | ||
*.tmp | ||
cover_db | ||
startup.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
steps = FindVersion, ChangeVersion, DistTest, Commit, Tag, MakeDist, UploadCPAN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
|
||
vim:set ft=changelog: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
^xt/ | ||
^tools/ | ||
\.svn/ | ||
\.git/ | ||
^[^/]+\.yaml$ | ||
^[^/]+\.pl$ | ||
^\.shipit$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
BEGIN { | ||
my @mip = qw( | ||
Module::Install::AuthorTests | ||
Module::Install::Repository | ||
Module::Install::ReadmeFromPod | ||
Module::Install::TestBase | ||
); | ||
for (@mip) { | ||
eval "require $_"; | ||
if ($@) { | ||
eval "require inc::$_"; | ||
if ($@) { | ||
warn $@; | ||
printf("# Install following (perl Makefile.PL | cpanm):\n%s", join("\n", @mip)); | ||
exit 1; | ||
} | ||
} | ||
} | ||
}; | ||
|
||
use inc::Module::Install; | ||
name 'Plack-Middleware-AccessCount'; | ||
all_from 'lib/Plack/Middleware/AccessCount.pm'; | ||
|
||
requires 'Exporter::Lite'; | ||
|
||
build_requires 'Test::Most'; | ||
|
||
# Module::Install::AuthorTests | ||
author_tests('xt'); | ||
|
||
# Module::Install::Repository | ||
auto_set_repository; | ||
|
||
# Module::Install::TestBase | ||
use_test_base; | ||
|
||
# Module::Install::ReadmeFromPod | ||
readme_from 'lib/Plack/Middleware/AccessCount.pm'; | ||
|
||
auto_include; | ||
WriteAll; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
This is Perl module Text::Xatena. | ||
|
||
INSTALLATION | ||
|
||
Plack::Middleware::AccessCount installation is straightforward. If your CPAN shell is set up, | ||
you should just be able to do | ||
|
||
% cpan Plack::Middleware::AccessCount | ||
|
||
Download it, unpack it, then build it as per the usual: | ||
|
||
% perl Makefile.PL | ||
% make && make test | ||
|
||
Then install it: | ||
|
||
% make install | ||
|
||
DOCUMENTATION | ||
|
||
Plack::Middleware::AccessCount documentation is available as in POD. So you can do: | ||
|
||
% perldoc Plack::Middleware::AccessCount | ||
|
||
to read the documentation online with your favorite pager. | ||
|
||
cho45 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package Plack::Middleware::AccessCount; | ||
|
||
use strict; | ||
use warnings; | ||
|
||
our $VERSION = '0.01'; | ||
|
||
|
||
1; | ||
__END__ | ||
=encoding utf8 | ||
=head1 NAME | ||
Plack::Middleware::AccessCount - | ||
=head1 SYNOPSIS | ||
use Plack::Middleware::AccessCount; | ||
=head1 DESCRIPTION | ||
Plack::Middleware::AccessCount is | ||
=head1 AUTHOR | ||
cho45 E<lt>cho45@lowreal.netE<gt> | ||
=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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
use strict; | ||
use Test::More tests => 1; | ||
|
||
BEGIN { use_ok 'Plack::Middleware::AccessCount' } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[TestingAndDebugging::ProhibitNoStrict] | ||
allow=refs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
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'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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\:\-]+/ } <DATA>); | ||
$ENV{LANG} = 'C'; | ||
set_spell_cmd("aspell -l en list") if `which aspell`; | ||
all_pod_files_spelling_ok('lib'); | ||
|
||
__DATA__ | ||
cho45 |