[Catalyst-commits] r13274 - in trunk/Catalyst-Plugin-Cache: . t

t0m at dev.catalyst.perl.org t0m at dev.catalyst.perl.org
Thu May 20 16:38:24 GMT 2010


Author: t0m
Date: 2010-05-20 17:38:24 +0100 (Thu, 20 May 2010)
New Revision: 13274

Modified:
   trunk/Catalyst-Plugin-Cache/
   trunk/Catalyst-Plugin-Cache/Makefile.PL
   trunk/Catalyst-Plugin-Cache/t/basic.t
   trunk/Catalyst-Plugin-Cache/t/config_backend_class.t
   trunk/Catalyst-Plugin-Cache/t/currying_conf.t
   trunk/Catalyst-Plugin-Cache/t/key_regexes.t
Log:
Cleanups


Property changes on: trunk/Catalyst-Plugin-Cache
___________________________________________________________________
Modified: svn:ignore
   - MANIFEST
MANIFEST.bak

   + inc
blib
pm_to_blib
META.yml
Makefile
Makefile.old
MANIFEST
MANIFEST.bak


Modified: trunk/Catalyst-Plugin-Cache/Makefile.PL
===================================================================
--- trunk/Catalyst-Plugin-Cache/Makefile.PL	2010-05-20 03:34:10 UTC (rev 13273)
+++ trunk/Catalyst-Plugin-Cache/Makefile.PL	2010-05-20 16:38:24 UTC (rev 13274)
@@ -1,18 +1,15 @@
-use ExtUtils::MakeMaker;
-WriteMakefile(
-    'NAME'         => 'Catalyst::Plugin::Cache',
-    'VERSION_FROM' => 'lib/Catalyst/Plugin/Cache.pm',
-    'PREREQ_PM'    => {
-        'Catalyst'        => '5.7',
-        'Storable'        => 0,
-        'Task::Weaken'    => 0,
-        'Test::Deep'      => 0,
-        'Test::Exception' => 0,
-        'Test::More'      => 0,
-        'MRO::Compat'     => 0,
-	'ok'              => 0,
-   },
-    'INSTALLDIRS' => 'site',
-    'EXE_FILES'   => [],
-    'PL_FILES'    => {},
-);
+use inc::Module::Install;
+
+name 'Catalyst-Plugin-Cache';
+all_from 'lib/Catalyst/Plugin/Cache.pm';
+requires        'Catalyst'        => '5.7';
+requires 'Storable'        => 0;
+requires        'Task::Weaken'    => 0;
+test_requires        'Test::Deep'      => 0;
+test_requires        'Test::Exception' => 0;
+test_requires        'Test::More'      => '0.88';
+requires        'MRO::Compat'     => 0;
+
+resources repository => 'http://dev.catalyst.perl.org/repos/Catalyst/trunk/Catalyst-Plugin-Cache';
+WriteAll;
+

Modified: trunk/Catalyst-Plugin-Cache/t/basic.t
===================================================================
--- trunk/Catalyst-Plugin-Cache/t/basic.t	2010-05-20 03:34:10 UTC (rev 13273)
+++ trunk/Catalyst-Plugin-Cache/t/basic.t	2010-05-20 16:38:24 UTC (rev 13274)
@@ -6,7 +6,7 @@
 use Test::More 'no_plan';
 use Test::Exception;
 
-use ok "Catalyst::Plugin::Cache";
+use_ok "Catalyst::Plugin::Cache";
 
 use Catalyst::Plugin::Cache::Backend::Memory;
 

Modified: trunk/Catalyst-Plugin-Cache/t/config_backend_class.t
===================================================================
--- trunk/Catalyst-Plugin-Cache/t/config_backend_class.t	2010-05-20 03:34:10 UTC (rev 13273)
+++ trunk/Catalyst-Plugin-Cache/t/config_backend_class.t	2010-05-20 16:38:24 UTC (rev 13274)
@@ -3,9 +3,9 @@
 use strict;
 use warnings;
 
-use Test::More 'no_plan';
+use Test::More;
 
-use ok "Catalyst::Plugin::Cache";
+use_ok "Catalyst::Plugin::Cache";
 
 {
     package MockApp;
@@ -35,3 +35,5 @@
 
 is_deeply( $registered, MyCache->new({ param => "foo" }), "params sent correctly" );
 
+done_testing;
+

Modified: trunk/Catalyst-Plugin-Cache/t/currying_conf.t
===================================================================
--- trunk/Catalyst-Plugin-Cache/t/currying_conf.t	2010-05-20 03:34:10 UTC (rev 13273)
+++ trunk/Catalyst-Plugin-Cache/t/currying_conf.t	2010-05-20 16:38:24 UTC (rev 13274)
@@ -3,12 +3,12 @@
 use strict;
 use warnings;
 
-use Test::More 'no_plan';
+use Test::More;
 use Test::Deep qw/superhashof cmp_deeply/;
 
 use Scalar::Util qw/refaddr/;
 
-use ok "Catalyst::Plugin::Cache";
+use_ok "Catalyst::Plugin::Cache";
 
 {
     package MockApp;
@@ -57,3 +57,5 @@
 
 is( refaddr( $c->cache("bar") ), refaddr( $c->cache("bar") ), "since bar is hard coded as an object it's always the same" );
 
+done_testing;
+

Modified: trunk/Catalyst-Plugin-Cache/t/key_regexes.t
===================================================================
--- trunk/Catalyst-Plugin-Cache/t/key_regexes.t	2010-05-20 03:34:10 UTC (rev 13273)
+++ trunk/Catalyst-Plugin-Cache/t/key_regexes.t	2010-05-20 16:38:24 UTC (rev 13274)
@@ -3,10 +3,10 @@
 use strict;
 use warnings;
 
-use Test::More 'no_plan';
+use Test::More;
 
-use ok "Catalyst::Plugin::Cache";
-use ok "Catalyst::Plugin::Cache::Choose::KeyRegexes";
+use_ok "Catalyst::Plugin::Cache";
+use_ok "Catalyst::Plugin::Cache::Choose::KeyRegexes";
 
 use Catalyst::Plugin::Cache::Backend::Memory;
 
@@ -59,4 +59,5 @@
 is( $c->get_cache_backend("bar_store")->get("foo_laa"), undef, "no foo key" );
 is( $c->get_cache_backend("bar_store")->get("bar_laa"), "laa", "has bar key" );
 
+done_testing;
 




More information about the Catalyst-commits mailing list