From: Yuval Kogman Date: Sat, 22 Jul 2006 12:37:45 +0000 (+0000) Subject: Catalyst::Plugin::Cache boilerplate X-Git-Tag: v0.01~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Plugin-Cache.git;a=commitdiff_plain;h=d6861a7f94985e2bba8c50bcaf4ec3b410998142 Catalyst::Plugin::Cache boilerplate --- diff --git a/Build.PL b/Build.PL new file mode 100644 index 0000000..f0b6a27 --- /dev/null +++ b/Build.PL @@ -0,0 +1,21 @@ +use strict; +use Module::Build; + +my $build = Module::Build->new( + create_makefile_pl => 'traditional', + license => 'perl', + module_name => 'Catalyst::Plugin::Cache', + requires => { + 'perl' => '5.8.1', + 'Catalyst' => '5.7', + 'Storable' => 0, + 'Test::Deep' => 0, + 'Test::More' => 0, + 'Test::Exception' => 0, + 'Task::Weaken' => 0, + }, + create_readme => 1, + sign => 1, +); +$build->create_build_script; + diff --git a/MANIFEST.SKIP b/MANIFEST.SKIP new file mode 100644 index 0000000..a319ce2 --- /dev/null +++ b/MANIFEST.SKIP @@ -0,0 +1,29 @@ +# Avoid version control files. +\bRCS\b +\bCVS\b +,v$ +\B\.svn\b + +# Avoid Makemaker generated and utility files. +\bMakefile$ +\bblib +\bMakeMaker-\d +\bpm_to_blib$ +\bblibdirs$ +^MANIFEST\.SKIP$ + +# Avoid Module::Build generated and utility files. +\bBuild$ +\b_build + +# Avoid temp and backup files. +~$ +\.tmp$ +\.old$ +\.bak$ +\#$ +\b\.# +^..*\.sw[po]$ + +# Hate M::B +\bBuild.PL$ diff --git a/lib/Catalyst/Plugin/Cache.pm b/lib/Catalyst/Plugin/Cache.pm index faeb503..5269739 100644 --- a/lib/Catalyst/Plugin/Cache.pm +++ b/lib/Catalyst/Plugin/Cache.pm @@ -6,6 +6,8 @@ use base qw/Class::Data::Inheritable Class::Accessor::Fast/; use strict; use warnings; +our $VERSION = "0.01"; + use Scalar::Util (); use Catalyst::Utils (); use Carp (); diff --git a/t/live_app.t b/t/live_app.t index 3e00b72..75fbc3f 100644 --- a/t/live_app.t +++ b/t/live_app.t @@ -18,10 +18,10 @@ use Test::WWW::Mechanize::Catalyst "CacheTestApp"; my $ua = Test::WWW::Mechanize::Catalyst->new; -$ua->get_ok("/bar"); +$ua->get_ok("http://localhost/bar"); $ua->content_is("not found"); -$ua->get_ok("/foo"); +$ua->get_ok("http://localhost//foo"); -$ua->get_ok("/bar"); +$ua->get_ok("http://localhost/bar"); $ua->content_is("Foo");