RT#74972
Tomas Doran [Tue, 13 Mar 2012 22:53:59 +0000 (22:53 +0000)]
Changes
Makefile.PL
lib/Catalyst/Plugin/Cache.pm

diff --git a/Changes b/Changes
index af57eb6..78b0e91 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1,4 +1,7 @@
         - Convert repository to git (fREW Schmidt)
+        - Depend on Catalyst 5.8 and so lose un-declared dependencies
+          on Class::Data::Inheritable and Class::Accessor::Fast.
+          RT#74972
 
 0.10
         - Change to Module::Install
index b821853..31446c9 100644 (file)
@@ -2,7 +2,7 @@ use inc::Module::Install;
 
 name 'Catalyst-Plugin-Cache';
 all_from 'lib/Catalyst/Plugin/Cache.pm';
-requires        'Catalyst'        => '5.7';
+requires        'Catalyst'        => '5.8';
 requires 'Storable'        => 0;
 requires        'Task::Weaken'    => 0;
 test_requires        'Test::Deep'      => 0;
index 0501665..c46a5e2 100644 (file)
@@ -1,10 +1,9 @@
 #!/usr/bin/perl
 
 package Catalyst::Plugin::Cache;
-use base qw(Class::Accessor::Fast Class::Data::Inheritable);
+use Moose;
 
-use strict;
-use warnings;
+with 'Catalyst::ClassData';
 
 our $VERSION = "0.10";
 
@@ -16,7 +15,10 @@ use Scalar::Util qw/ blessed /;
 use Catalyst::Plugin::Cache::Curried;
 
 __PACKAGE__->mk_classdata( "_cache_backends" );
-__PACKAGE__->mk_accessors( "_default_curried_cache" );
+has _default_curried_cache => (
+    is => 'rw',
+);
+no Moose;
 
 sub setup {
     my $app = shift;