From: Tomas Doran Date: Tue, 13 Mar 2012 22:53:59 +0000 (+0000) Subject: RT#74972 X-Git-Tag: 0.11~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Plugin-Cache.git;a=commitdiff_plain;h=5662d9dc3d49accad1efeab2527c9e02cdc7cddd RT#74972 --- diff --git a/Changes b/Changes index af57eb6..78b0e91 100644 --- 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 diff --git a/Makefile.PL b/Makefile.PL index b821853..31446c9 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -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; diff --git a/lib/Catalyst/Plugin/Cache.pm b/lib/Catalyst/Plugin/Cache.pm index 0501665..c46a5e2 100644 --- a/lib/Catalyst/Plugin/Cache.pm +++ b/lib/Catalyst/Plugin/Cache.pm @@ -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;