Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
cho45 committed Jul 14, 2011
0 parents commit 0fa4207
Show file tree
Hide file tree
Showing 12 changed files with 169 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .gitignore
@@ -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

1 change: 1 addition & 0 deletions .shipit
@@ -0,0 +1 @@
steps = FindVersion, ChangeVersion, DistTest, Commit, Tag, MakeDist, UploadCPAN
2 changes: 2 additions & 0 deletions Changes
@@ -0,0 +1,2 @@

vim:set ft=changelog:
21 changes: 21 additions & 0 deletions 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
^xt/
^tools/
\.svn/
\.git/
^[^/]+\.yaml$
^[^/]+\.pl$
^\.shipit$
42 changes: 42 additions & 0 deletions Makefile.PL
@@ -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;
27 changes: 27 additions & 0 deletions README
@@ -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
38 changes: 38 additions & 0 deletions lib/Plack/Middleware/AccessCount.pm
@@ -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
4 changes: 4 additions & 0 deletions t/00_compile.t
@@ -0,0 +1,4 @@
use strict;
use Test::More tests => 1;

BEGIN { use_ok 'Plack::Middleware::AccessCount' }
2 changes: 2 additions & 0 deletions t/perlcriticrc
@@ -0,0 +1,2 @@
[TestingAndDebugging::ProhibitNoStrict]
allow=refs
5 changes: 5 additions & 0 deletions xt/98_perlcritic.t
@@ -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');
4 changes: 4 additions & 0 deletions xt/99_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();
10 changes: 10 additions & 0 deletions xt/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\:\-]+/ } <DATA>);
$ENV{LANG} = 'C';
set_spell_cmd("aspell -l en list") if `which aspell`;
all_pod_files_spelling_ok('lib');

__DATA__
cho45

0 comments on commit 0fa4207

Please sign in to comment.