This is an automated email from the git hooks/post-receive script.

dmn pushed a commit to branch master
in repository libcatalyst-modules-perl.

commit a2e904db22629bdef6515e218902489c3e9d9b67
Author: Damyan Ivanov <d...@debian.org>
Date:   Wed May 14 11:47:01 2014 +0000

    replace bundled Catalyst-Plugin-Cache-Store-FastMmap with a recommendation 
of libcatalyst-plugin-cache-store-fastmmap-perl
---
 bundle/02/Catalyst-Plugin-Cache-Store-FastMmap     |   1 -
 debian/control                                     |   1 +
 debian/copyright                                   |   5 -
 .../Catalyst-Plugin-Cache-Store-FastMmap/MANIFEST  |   8 --
 .../Catalyst-Plugin-Cache-Store-FastMmap/META.yml  |  15 ---
 .../Makefile.PL                                    |  17 ----
 .../Catalyst-Plugin-Cache-Store-FastMmap/README    |  62 -------------
 .../lib/Catalyst/Plugin/Cache/Backend/FastMmap.pm  |  46 ---------
 .../lib/Catalyst/Plugin/Cache/Store/FastMmap.pm    | 103 ---------------------
 .../t/backend.t                                    |  36 -------
 .../Catalyst-Plugin-Cache-Store-FastMmap/t/basic.t |  37 --------
 11 files changed, 1 insertion(+), 330 deletions(-)

diff --git a/bundle/02/Catalyst-Plugin-Cache-Store-FastMmap 
b/bundle/02/Catalyst-Plugin-Cache-Store-FastMmap
deleted file mode 120000
index 1d59a1b..0000000
--- a/bundle/02/Catalyst-Plugin-Cache-Store-FastMmap
+++ /dev/null
@@ -1 +0,0 @@
-../../sources/Catalyst-Plugin-Cache-Store-FastMmap
\ No newline at end of file
diff --git a/debian/control b/debian/control
index d34e950..cdc51f2 100644
--- a/debian/control
+++ b/debian/control
@@ -164,6 +164,7 @@ Depends: ${misc:Depends},
          perl (>= 5.11.0) | liblocale-maketext-simple-perl (>= 0.19)
 Recommends: libcatalyst-plugin-unicode-perl,
             libcatalyst-log-log4perl-perl,
+            libcatalyst-plugin-cache-store-fastmmap-perl,
             libcatalyst-plugin-subrequest-perl
 Suggests: libcatalyst-devel-perl,
           libcatalyst-dispatchtype-regex-perl,
diff --git a/debian/copyright b/debian/copyright
index a5877f8..5367a48 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -17,11 +17,6 @@ Copyright: 2005-2009, Christian Hansen <c...@ngmedia.com>
 X-Upstream-Maintainers: Tomas Doran <bobtf...@bobtfish.net>
 License: Artistic or GPL-1+
 
-Files: sources/Catalyst-Plugin-Cache-Store-FastMmap
-Copyright: 2006, Yuval Kogman <nothingm...@woobling.org>
-X-Upstream-Maintainers: Yuval Kogman <nothingm...@woobling.org>
-License: Artistic or GPL-1+
-
 Files: sources/Catalyst-Plugin-Session-State-Cookie
 Copyright: 2005-2009, Yuval Kogman <nothingm...@woobling.org>
 X-Upstream-Maintainers: Matt S Trout <perl-st...@trout.me.uk>
diff --git a/sources/Catalyst-Plugin-Cache-Store-FastMmap/MANIFEST 
b/sources/Catalyst-Plugin-Cache-Store-FastMmap/MANIFEST
deleted file mode 100644
index 02d72fb..0000000
--- a/sources/Catalyst-Plugin-Cache-Store-FastMmap/MANIFEST
+++ /dev/null
@@ -1,8 +0,0 @@
-lib/Catalyst/Plugin/Cache/Backend/FastMmap.pm
-lib/Catalyst/Plugin/Cache/Store/FastMmap.pm
-Makefile.PL
-MANIFEST                       This list of files
-README
-t/backend.t
-t/basic.t
-META.yml                                 Module meta-data (added by MakeMaker)
diff --git a/sources/Catalyst-Plugin-Cache-Store-FastMmap/META.yml 
b/sources/Catalyst-Plugin-Cache-Store-FastMmap/META.yml
deleted file mode 100644
index 50c5fd2..0000000
--- a/sources/Catalyst-Plugin-Cache-Store-FastMmap/META.yml
+++ /dev/null
@@ -1,15 +0,0 @@
---- #YAML:1.0
-name:                Catalyst-Plugin-Cache-Store-FastMmap
-version:             0.02
-abstract:            ~
-license:             ~
-generated_by:        ExtUtils::MakeMaker version 6.32
-distribution_type:   module
-requires:     
-    Cache::FastMmap:               0
-    Catalyst:                      5.7
-    Catalyst::Plugin::Cache:       0.01
-    Path::Class:                   0
-meta-spec:
-    url:     http://module-build.sourceforge.net/META-spec-v1.2.html
-    version: 1.2
diff --git a/sources/Catalyst-Plugin-Cache-Store-FastMmap/Makefile.PL 
b/sources/Catalyst-Plugin-Cache-Store-FastMmap/Makefile.PL
deleted file mode 100644
index 0ad484c..0000000
--- a/sources/Catalyst-Plugin-Cache-Store-FastMmap/Makefile.PL
+++ /dev/null
@@ -1,17 +0,0 @@
-# Note: this file was auto-generated by Module::Build::Compat version 0.03
-use ExtUtils::MakeMaker;
-WriteMakefile
-(
-          'NAME' => 'Catalyst::Plugin::Cache::Store::FastMmap',
-          'VERSION_FROM' => 'lib/Catalyst/Plugin/Cache/Store/FastMmap.pm',
-          'PREREQ_PM' => {
-                           'Cache::FastMmap' => '0',
-                           'Catalyst' => '5.7',
-                           'Catalyst::Plugin::Cache' => '0.01',
-                           'Path::Class' => '0'
-                         },
-          'INSTALLDIRS' => 'site',
-          'EXE_FILES' => [],
-          'PL_FILES' => {}
-        )
-;
diff --git a/sources/Catalyst-Plugin-Cache-Store-FastMmap/README 
b/sources/Catalyst-Plugin-Cache-Store-FastMmap/README
deleted file mode 100644
index ec52da0..0000000
--- a/sources/Catalyst-Plugin-Cache-Store-FastMmap/README
+++ /dev/null
@@ -1,62 +0,0 @@
-NAME
-    Catalyst::Plugin::Cache::Store::FastMmap - DEPRECATED - FastMmap cache
-    store for Catalyst::Plugin::Cache.
-
-SYNOPSIS
-        # instead of using this plugin, you can now do this:
-
-        use Catalyst qw/
-            Cache
-        /;
-
-        __PACKAGE__->config( cache => {
-            backend => {
-                class => "Cache:FastMmap",
-                share_file => "/path/to/file",
-                cache_size => "16m",
-            },
-        });
-
-STATUS
-    This plugin is deprecated because Cache::FastMmap no longer needs to be
-    wrapped to store plain values. It is still available on the CPAN for
-    backwards compatibility and will still work with newer versions of
-    Cache::FastMmap with a slight performance degredation.
-
-DESCRIPTION
-    This store plugin is a bit of a wrapper for Cache::FastMmap.
-
-    While you could normally just configure with
-
-        backend => {
-            class => "Cache::FastMmap",
-            share_file => ...,
-        }
-
-    Cache::FastMmap can't store plain values by default. This module ships
-    with a subclass that will wrap all values in a scalar reference before
-    storing.
-
-    This store plugin will try to provide a default "share_file" as well,
-    that won't clash with other apps.
-
-CONFIGURATION
-    See "CONFIGURATION" in Catalyst::Plugin::Cache for a general overview of
-    cache plugin configuration.
-
-    This plugin just takes a hash reference in the backend field and passes
-    it on to Cache::FastMmap.
-
-SEE ALSO
-    Catalyst::Plugin::Cache, Cache::FastMmap.
-
-AUTHOR
-    Yuval Kogman, "nothingm...@woobling.org"
-
-COPYRIGHT & LICENSE
-    Copyright (c) Yuval Kogman, 2006. All rights reserved.
-
-    This library is free software, you can redistribute it and/or modify it
-    under the same terms as Perl itself, as well as under the terms of the
-    MIT license.
-
diff --git 
a/sources/Catalyst-Plugin-Cache-Store-FastMmap/lib/Catalyst/Plugin/Cache/Backend/FastMmap.pm
 
b/sources/Catalyst-Plugin-Cache-Store-FastMmap/lib/Catalyst/Plugin/Cache/Backend/FastMmap.pm
deleted file mode 100644
index ddc6292..0000000
--- 
a/sources/Catalyst-Plugin-Cache-Store-FastMmap/lib/Catalyst/Plugin/Cache/Backend/FastMmap.pm
+++ /dev/null
@@ -1,46 +0,0 @@
-#!/usr/bin/perl
-
-package Catalyst::Plugin::Cache::Backend::FastMmap;
-use base qw/Cache::FastMmap/;
-
-use strict;
-use warnings;
-
-# wrap everything in a scalar ref so that we can store plain scalars as well
-
-sub get {
-    my ( $self, $key ) = @_;
-    ${ $self->SUPER::get($key) || return };
-}
-
-sub set {
-    my ( $self, $key, $value ) = @_;
-    $self->SUPER::set( $key => \$value );
-}
-
-__PACKAGE__;
-
-__END__
-
-=pod
-
-=head1 NAME
-
-Catalyst::Plugin::Cache::Backend::FastMmap - A thin wrapper for
-L<Cache::FastMmap> that can handle non refs.
-
-=head1 SYNOPSIS
-
-       use Catalyst::Plugin::Cache::Backend::FastMmap;
-
-    my $cache_obj = Catalyst::Plugin::Cache::Backend::FastMmap->new;
-
-    $cache_obj->set( key => [qw/blah blah blah/] );
-
-    $cache_obj->set( key => "this_works_too" ); # non references can also be 
stored
-
-=head1 DESCRIPTION
-
-=cut
-
-
diff --git 
a/sources/Catalyst-Plugin-Cache-Store-FastMmap/lib/Catalyst/Plugin/Cache/Store/FastMmap.pm
 
b/sources/Catalyst-Plugin-Cache-Store-FastMmap/lib/Catalyst/Plugin/Cache/Store/FastMmap.pm
deleted file mode 100644
index 6c8db70..0000000
--- 
a/sources/Catalyst-Plugin-Cache-Store-FastMmap/lib/Catalyst/Plugin/Cache/Store/FastMmap.pm
+++ /dev/null
@@ -1,103 +0,0 @@
-#!/usr/bin/perl
-
-package Catalyst::Plugin::Cache::Store::FastMmap;
-
-use strict;
-use warnings;
-
-our $VERSION = "0.02";
-
-use Path::Class     ();
-use File::Spec      ();
-use Catalyst::Utils ();
-use Catalyst::Plugin::Cache::Backend::FastMmap;
-
-sub setup_fastmmap_cache_backend {
-    my ( $app, $name, $config ) = @_;
-
-    $config->{share_file} ||= File::Spec->catfile( 
Catalyst::Utils::class2tempdir($app), "cache_$name" );
-
-    # make sure it exists
-    Path::Class::file( $config->{share_file} )->parent->mkpath; 
-
-    $app->register_cache_backend(
-        $name => Catalyst::Plugin::Cache::Backend::FastMmap->new( %$config )
-    );
-}
-
-__PACKAGE__;
-
-__END__
-
-=pod
-
-=head1 NAME
-
-Catalyst::Plugin::Cache::Store::FastMmap - B<DEPRECATED> - FastMmap cache store
-for L<Catalyst::Plugin::Cache>.
-
-=head1 SYNOPSIS
-
-    # instead of using this plugin, you can now do this:
-
-    use Catalyst qw/
-        Cache
-    /;
-
-    __PACKAGE__->config( cache => {
-        backend => {
-            class => "Cache:FastMmap",
-            share_file => "/path/to/file",
-            cache_size => "16m",
-        },
-    });
-
-=head1 STATUS
-
-This plugin is deprecated because L<Cache::FastMmap> no longer needs to be
-wrapped to store plain values. It is still available on the CPAN for backwards
-compatibility and will still work with newer versions of Cache::FastMmap with a
-slight performance degredation.
-
-=head1 DESCRIPTION
-
-This store plugin is a bit of a wrapper for L<Cache::FastMmap>.
-
-While you could normally just configure with
-
-    backend => {
-        class => "Cache::FastMmap",
-        share_file => ...,
-    }
-
-L<Cache::FastMmap> can't store plain values by default. This module ships with
-a subclass that will wrap all values in a scalar reference before storing.
-
-This store plugin will try to provide a default C<share_file> as well, that
-won't clash with other apps.
-
-=head1 CONFIGURATION
-
-See L<Catalyst::Plugin::Cache/CONFIGURATION> for a general overview of cache
-plugin configuration.
-
-This plugin just takes a hash reference in the backend field and passes it on
-to L<Cache::FastMmap>.
-
-=head1 SEE ALSO
-
-L<Catalyst::Plugin::Cache>, L<Cache::FastMmap>.
-
-=head1 AUTHOR
-
-Yuval Kogman, C<nothingm...@woobling.org>
-
-=head1 COPYRIGHT & LICENSE
-
-Copyright (c) Yuval Kogman, 2006. All rights reserved.
-
-This library is free software, you can redistribute it and/or modify it under
-the same terms as Perl itself, as well as under the terms of the MIT license.
-
-=cut
-
diff --git a/sources/Catalyst-Plugin-Cache-Store-FastMmap/t/backend.t 
b/sources/Catalyst-Plugin-Cache-Store-FastMmap/t/backend.t
deleted file mode 100644
index 5cc0b7f..0000000
--- a/sources/Catalyst-Plugin-Cache-Store-FastMmap/t/backend.t
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/usr/bin/perl
-
-use strict;
-use warnings;
-
-use Test::More;
-
-BEGIN {
-    plan skip_all => "This test requires File::Temp" unless eval { require 
File::Temp };
-    plan tests => 4;
-}
-
-use Test::Exception;
-
-use ok "Catalyst::Plugin::Cache::Backend::FastMmap";
-
-my ( $fh, $name ) = File::Temp::tempfile();
-
-my $cache = Catalyst::Plugin::Cache::Backend::FastMmap->new(
-    share_file => $name,
-);
-
-lives_ok {
-    $cache->set( key => "non_ref" );
-} "you can set non references too";
-
-is( $cache->get("key"), "non_ref", "they are returned properly" );
-
-$cache->set( complex => my $d = { foo => [qw/bar gorch/], baz => "moose" } );
-
-is_deeply( $cache->get("complex"), $d, "storing of refs is unaffected" );
-
-END {
-    close $fh;
-    unlink $name if -e $name;
-}
diff --git a/sources/Catalyst-Plugin-Cache-Store-FastMmap/t/basic.t 
b/sources/Catalyst-Plugin-Cache-Store-FastMmap/t/basic.t
deleted file mode 100644
index 31b73e2..0000000
--- a/sources/Catalyst-Plugin-Cache-Store-FastMmap/t/basic.t
+++ /dev/null
@@ -1,37 +0,0 @@
-#!/usr/bin/perl
-
-use strict;
-use warnings;
-
-use Test::More;
-
-BEGIN {
-    plan skip_all => "This test requires File::Temp" unless eval { require 
File::Temp };
-    plan tests => 3;
-}
-
-use ok "Catalyst::Plugin::Cache::Store::FastMmap";
-
-{
-    package MockApp;
-    use base qw/Catalyst::Plugin::Cache::Store::FastMmap/;
-    
-    our %backends;
-    sub register_cache_backend {
-        my ( $app, $name, $backend ) = @_;
-        $backends{$name} = $backend;
-    }
-}
-
-can_ok( "MockApp", "setup_fastmmap_cache_backend" );
-
-my ( $fh, $name ) = File::Temp::tempfile;
-
-MockApp->setup_fastmmap_cache_backend( foo => { share_file => $name } );
-
-isa_ok( $MockApp::backends{foo}, "Cache::FastMmap" );
-
-END {
-    close $fh;
-    unlink $name if -e $name;
-}

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-perl/packages/libcatalyst-modules-perl.git

_______________________________________________
Pkg-perl-cvs-commits mailing list
Pkg-perl-cvs-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits

Reply via email to