Catalyst::Plugin::Cache boilerplate
Yuval Kogman [Sat, 22 Jul 2006 12:37:45 +0000 (12:37 +0000)]
Build.PL [new file with mode: 0644]
MANIFEST.SKIP [new file with mode: 0644]
lib/Catalyst/Plugin/Cache.pm
t/live_app.t

diff --git a/Build.PL b/Build.PL
new file mode 100644 (file)
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 (file)
index 0000000..a319ce2
--- /dev/null
@@ -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$
index faeb503..5269739 100644 (file)
@@ -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 ();
index 3e00b72..75fbc3f 100644 (file)
@@ -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");