[Catalyst-commits] r8964 - in trunk/Catalyst-Model-Akismet: .
lib/Catalyst/Model
t0m at dev.catalyst.perl.org
t0m at dev.catalyst.perl.org
Sun Dec 28 11:19:03 GMT 2008
Author: t0m
Date: 2008-12-28 11:19:01 +0000 (Sun, 28 Dec 2008)
New Revision: 8964
Modified:
trunk/Catalyst-Model-Akismet/Changes
trunk/Catalyst-Model-Akismet/INSTALL
trunk/Catalyst-Model-Akismet/META.yml
trunk/Catalyst-Model-Akismet/Makefile.PL
trunk/Catalyst-Model-Akismet/lib/Catalyst/Model/Akismet.pm
Log:
Fix for Cat 5.80
Modified: trunk/Catalyst-Model-Akismet/Changes
===================================================================
--- trunk/Catalyst-Model-Akismet/Changes 2008-12-28 11:05:06 UTC (rev 8963)
+++ trunk/Catalyst-Model-Akismet/Changes 2008-12-28 11:19:01 UTC (rev 8964)
@@ -1,6 +1,11 @@
Revision history for Catalyst::Model::Akismet
-0.02 2007-08-07
+0.03
+ Apply Catalyst::Component::InstancePerContext as a Moose
+ role, rather than inheriting from it, so that this model
+ works with Catalyst 5.80
+
+0.02 2007-08-07
Add missing dependency on C3
0.01 2007-03-07:
Modified: trunk/Catalyst-Model-Akismet/INSTALL
===================================================================
--- trunk/Catalyst-Model-Akismet/INSTALL 2008-12-28 11:05:06 UTC (rev 8963)
+++ trunk/Catalyst-Model-Akismet/INSTALL 2008-12-28 11:19:01 UTC (rev 8964)
@@ -4,10 +4,3 @@
make
make test
make install
-
-Alternatively, to install with Module::Build...
-
- perl Build.PL
- ./Build
- ./Build test
- ./Build install
Modified: trunk/Catalyst-Model-Akismet/META.yml
===================================================================
--- trunk/Catalyst-Model-Akismet/META.yml 2008-12-28 11:05:06 UTC (rev 8963)
+++ trunk/Catalyst-Model-Akismet/META.yml 2008-12-28 11:19:01 UTC (rev 8964)
@@ -5,11 +5,11 @@
build_requires:
Test::More: 0
distribution_type: module
-generated_by: 'Module::Install version 0.72'
+generated_by: 'Module::Install version 0.77'
license: perl
meta-spec:
- url: http://module-build.sourceforge.net/META-spec-v1.3.html
- version: 1.3
+ url: http://module-build.sourceforge.net/META-spec-v1.4.html
+ version: 1.4
name: Catalyst-Model-Akismet
no_index:
directory:
@@ -17,8 +17,10 @@
- t
requires:
Carp: 0
- Catalyst::Component::InstancePerContext: 0
+ Catalyst::Component::InstancePerContext: 0.001000
Catalyst::Runtime: 5.70
Class::C3: 0
Net::Akismet::Protocol: 0
-version: 0.02
+resources:
+ license: http://dev.perl.org/licenses/
+version: 0.03
Modified: trunk/Catalyst-Model-Akismet/Makefile.PL
===================================================================
--- trunk/Catalyst-Model-Akismet/Makefile.PL 2008-12-28 11:05:06 UTC (rev 8963)
+++ trunk/Catalyst-Model-Akismet/Makefile.PL 2008-12-28 11:19:01 UTC (rev 8964)
@@ -11,7 +11,7 @@
requires 'Carp';
requires 'Class::C3';
requires 'Catalyst::Runtime' => '5.70';
-requires 'Catalyst::Component::InstancePerContext';
+requires 'Catalyst::Component::InstancePerContext' => '0.001000';
requires 'Net::Akismet::Protocol';
WriteAll;
Modified: trunk/Catalyst-Model-Akismet/lib/Catalyst/Model/Akismet.pm
===================================================================
--- trunk/Catalyst-Model-Akismet/lib/Catalyst/Model/Akismet.pm 2008-12-28 11:05:06 UTC (rev 8963)
+++ trunk/Catalyst-Model-Akismet/lib/Catalyst/Model/Akismet.pm 2008-12-28 11:19:01 UTC (rev 8964)
@@ -1,17 +1,17 @@
package Catalyst::Model::Akismet;
-use strict;
-use warnings;
-
-use base qw/Catalyst::Component::InstancePerContext Catalyst::Model/;
-
use Carp qw( croak );
use Catalyst::Utils ();
use Net::Akismet::Protocol ();
-use Class::C3();
-our $VERSION = '0.02';
+use Class::C3 ();
+use Moose;
+extends 'Catalyst::Model';
+with 'Catalyst::Component::InstancePerContext';
+no Moose;
+our $VERSION = '0.03';
+
=head1 NAME
Catalyst::Model::Akismet - Catalyst model for the Akismet anti-spam protocol
More information about the Catalyst-commits
mailing list