[Catalyst-commits] r13989 - in
trunk/Catalyst-Plugin-Cache-FastMmap: .
lib/Catalyst/Plugin/Cache t xt
t0m at dev.catalyst.perl.org
t0m at dev.catalyst.perl.org
Tue Mar 22 08:42:02 GMT 2011
Author: t0m
Date: 2011-03-22 08:42:02 +0000 (Tue, 22 Mar 2011)
New Revision: 13989
Added:
trunk/Catalyst-Plugin-Cache-FastMmap/xt/
trunk/Catalyst-Plugin-Cache-FastMmap/xt/02pod.t
trunk/Catalyst-Plugin-Cache-FastMmap/xt/03podcoverage.t
Removed:
trunk/Catalyst-Plugin-Cache-FastMmap/META.yml
trunk/Catalyst-Plugin-Cache-FastMmap/t/02pod.t
trunk/Catalyst-Plugin-Cache-FastMmap/t/03podcoverage.t
Modified:
trunk/Catalyst-Plugin-Cache-FastMmap/Changes
trunk/Catalyst-Plugin-Cache-FastMmap/MANIFEST
trunk/Catalyst-Plugin-Cache-FastMmap/MANIFEST.SKIP
trunk/Catalyst-Plugin-Cache-FastMmap/Makefile.PL
trunk/Catalyst-Plugin-Cache-FastMmap/lib/Catalyst/Plugin/Cache/FastMmap.pm
Log:
Fixes
Modified: trunk/Catalyst-Plugin-Cache-FastMmap/Changes
===================================================================
--- trunk/Catalyst-Plugin-Cache-FastMmap/Changes 2011-03-22 08:18:17 UTC (rev 13988)
+++ trunk/Catalyst-Plugin-Cache-FastMmap/Changes 2011-03-22 08:42:02 UTC (rev 13989)
@@ -1,5 +1,14 @@
Revision history for Perl extension Catalyst::Plugin::Cache::FastMmap
+0.9 2011-03-22 08:39:00
+ - Add deprecation notice.
+ - Fix META.yml (RT#66523)
+ - Add copyright statement for debian
+ - Make Pod tests author only
+
+0.8 2009-04-18 17:39:00
+ - Switch from NEXT to MRO::Compat
+
0.7 2007-04-29 02:05:00
- Switch to Module-Install
Modified: trunk/Catalyst-Plugin-Cache-FastMmap/MANIFEST
===================================================================
--- trunk/Catalyst-Plugin-Cache-FastMmap/MANIFEST 2011-03-22 08:18:17 UTC (rev 13988)
+++ trunk/Catalyst-Plugin-Cache-FastMmap/MANIFEST 2011-03-22 08:42:02 UTC (rev 13989)
@@ -1,9 +1,17 @@
Changes
+inc/Module/Install.pm
+inc/Module/Install/Base.pm
+inc/Module/Install/Can.pm
+inc/Module/Install/Fetch.pm
+inc/Module/Install/Makefile.pm
+inc/Module/Install/Metadata.pm
+inc/Module/Install/Win32.pm
+inc/Module/Install/WriteAll.pm
lib/Catalyst/Plugin/Cache/FastMmap.pm
Makefile.PL
MANIFEST This list of files
META.yml
README
t/01use.t
-t/02pod.t
-t/03podcoverage.t
+xt/02pod.t
+xt/03podcoverage.t
Modified: trunk/Catalyst-Plugin-Cache-FastMmap/MANIFEST.SKIP
===================================================================
--- trunk/Catalyst-Plugin-Cache-FastMmap/MANIFEST.SKIP 2011-03-22 08:18:17 UTC (rev 13988)
+++ trunk/Catalyst-Plugin-Cache-FastMmap/MANIFEST.SKIP 2011-03-22 08:42:02 UTC (rev 13989)
@@ -1,3 +1,5 @@
+^Catalyst-Plugin-Cache-FastMmap-
+
# Avoid version control files.
\bRCS\b
\bCVS\b
Deleted: trunk/Catalyst-Plugin-Cache-FastMmap/META.yml
===================================================================
--- trunk/Catalyst-Plugin-Cache-FastMmap/META.yml 2011-03-22 08:18:17 UTC (rev 13988)
+++ trunk/Catalyst-Plugin-Cache-FastMmap/META.yml 2011-03-22 08:42:02 UTC (rev 13989)
@@ -1,9 +0,0 @@
---- #YAML:1.0
-name: Catalyst-Plugin-Cache-FastMmap
-version: 0.6
-author:
- - Christian Hansen, C<ch at ngmedia.com>
-Sebastian Riedel C<sri at oook.de>
-abstract: Mmap cache
-license: perl
-generated_by: Module::Build version 0.2611, without YAML.pm
Modified: trunk/Catalyst-Plugin-Cache-FastMmap/Makefile.PL
===================================================================
--- trunk/Catalyst-Plugin-Cache-FastMmap/Makefile.PL 2011-03-22 08:18:17 UTC (rev 13988)
+++ trunk/Catalyst-Plugin-Cache-FastMmap/Makefile.PL 2011-03-22 08:42:02 UTC (rev 13989)
@@ -7,8 +7,8 @@
requires 'Catalyst::Runtime' => '5.7006';
requires 'Cache::FastMmap';
+requires 'MRO::Compat';
-auto_install;
resources repository => 'http://dev.catalyst.perl.org/repos/Catalyst/trunk/Catalyst-Plugin-Cache-FastMmap/';
WriteAll;
Modified: trunk/Catalyst-Plugin-Cache-FastMmap/lib/Catalyst/Plugin/Cache/FastMmap.pm
===================================================================
--- trunk/Catalyst-Plugin-Cache-FastMmap/lib/Catalyst/Plugin/Cache/FastMmap.pm 2011-03-22 08:18:17 UTC (rev 13988)
+++ trunk/Catalyst-Plugin-Cache-FastMmap/lib/Catalyst/Plugin/Cache/FastMmap.pm 2011-03-22 08:42:02 UTC (rev 13989)
@@ -1,11 +1,13 @@
package Catalyst::Plugin::Cache::FastMmap;
use strict;
+use warnings;
+use MRO::Compat;
use base 'Class::Data::Inheritable';
use Cache::FastMmap;
-our $VERSION= '0.7';
+our $VERSION= '0.9';
__PACKAGE__->mk_classdata('cache');
@@ -28,7 +30,7 @@
$self->cache( Cache::FastMmap->new(%params) );
- return $self->NEXT::setup(@_);
+ return $self->next::method(@_);
}
1;
@@ -38,14 +40,18 @@
=head1 NAME
-Catalyst::Plugin::Cache::FastMmap - Mmap cache
+Catalyst::Plugin::Cache::FastMmap - DEPRECATED FastMmap cache
=head1 SYNOPSIS
use Catalyst qw[Cache::FastMmap];
- MyApp->config->{cache}->{storage} = '/tmp/cache';
- MyApp->config->{cache}->{expires} = 3600;
+ MyApp->config(
+ cache => {
+ storage => '/tmp/cache',
+ xpires => 3600,
+ },
+ );
my $data;
@@ -64,10 +70,17 @@
This module extends the Catalyst application class with a C<mmap> cache.
+This module is not recommended for production use, as L<Cache::FastMmap> can
+segfault and/or unexpectedly throw away your data.
+
=head1 METHODS
-=over 4
+=over
+=item setup
+
+Sets up the cache
+
=item cache
Returns an instance of C<Cache::FastMmap>
@@ -81,11 +94,16 @@
=head1 AUTHOR
Christian Hansen, C<ch at ngmedia.com>
-Sebastian Riedel C<sri at oook.de>
+Sebastian Riedel, C<sri at oook.de>
+
=head1 LICENSE
This library is free software . You can redistribute it and/or modify it under
the same terms as perl itself.
+=head1 COPYRIGHT
+
+Copyright (c) 2005-2011, the above mentioned AUTHORs.
+
=cut
Deleted: trunk/Catalyst-Plugin-Cache-FastMmap/t/02pod.t
===================================================================
--- trunk/Catalyst-Plugin-Cache-FastMmap/t/02pod.t 2011-03-22 08:18:17 UTC (rev 13988)
+++ trunk/Catalyst-Plugin-Cache-FastMmap/t/02pod.t 2011-03-22 08:42:02 UTC (rev 13989)
@@ -1,7 +0,0 @@
-use Test::More;
-
-eval "use Test::Pod 1.14";
-plan skip_all => 'Test::Pod 1.14 required' if $@;
-plan skip_all => 'set TEST_POD to enable this test' unless $ENV{TEST_POD};
-
-all_pod_files_ok();
Deleted: trunk/Catalyst-Plugin-Cache-FastMmap/t/03podcoverage.t
===================================================================
--- trunk/Catalyst-Plugin-Cache-FastMmap/t/03podcoverage.t 2011-03-22 08:18:17 UTC (rev 13988)
+++ trunk/Catalyst-Plugin-Cache-FastMmap/t/03podcoverage.t 2011-03-22 08:42:02 UTC (rev 13989)
@@ -1,7 +0,0 @@
-use Test::More;
-
-eval "use Test::Pod::Coverage 1.04";
-plan skip_all => 'Test::Pod::Coverage 1.04 required' if $@;
-plan skip_all => 'set TEST_POD to enable this test' unless $ENV{TEST_POD};
-
-all_pod_coverage_ok();
Copied: trunk/Catalyst-Plugin-Cache-FastMmap/xt/02pod.t (from rev 13957, trunk/Catalyst-Plugin-Cache-FastMmap/t/02pod.t)
===================================================================
--- trunk/Catalyst-Plugin-Cache-FastMmap/xt/02pod.t (rev 0)
+++ trunk/Catalyst-Plugin-Cache-FastMmap/xt/02pod.t 2011-03-22 08:42:02 UTC (rev 13989)
@@ -0,0 +1,7 @@
+use Test::More;
+
+eval "use Test::Pod 1.14";
+plan skip_all => 'Test::Pod 1.14 required' if $@;
+plan skip_all => 'set TEST_POD to enable this test' unless $ENV{TEST_POD};
+
+all_pod_files_ok();
Copied: trunk/Catalyst-Plugin-Cache-FastMmap/xt/03podcoverage.t (from rev 13957, trunk/Catalyst-Plugin-Cache-FastMmap/t/03podcoverage.t)
===================================================================
--- trunk/Catalyst-Plugin-Cache-FastMmap/xt/03podcoverage.t (rev 0)
+++ trunk/Catalyst-Plugin-Cache-FastMmap/xt/03podcoverage.t 2011-03-22 08:42:02 UTC (rev 13989)
@@ -0,0 +1,7 @@
+use Test::More;
+
+eval "use Test::Pod::Coverage 1.04";
+plan skip_all => 'Test::Pod::Coverage 1.04 required' if $@;
+plan skip_all => 'set TEST_POD to enable this test' unless $ENV{TEST_POD};
+
+all_pod_coverage_ok();
More information about the Catalyst-commits
mailing list