Changeset 20298 for lang/perl/Method-Cached
- Timestamp:
- 09/30/08 19:32:23 (5 years ago)
- Location:
- lang/perl/Method-Cached/trunk
- Files:
-
- 5 added
- 5 modified
- 1 moved
-
Changes (modified) (1 diff)
-
MANIFEST (modified) (2 diffs)
-
MANIFEST.SKIP (added)
-
Makefile.PL (modified) (1 diff)
-
README (modified) (1 diff)
-
lib/Method/Cached/StorageInspector.pm (modified) (2 diffs)
-
t/00_compile.t (added)
-
t/97_boilerplate.t (moved) (moved from lang/perl/Method-Cached/trunk/t/boilerplate.t)
-
t/98_perlcritic.t (added)
-
t/99_pod.t (added)
-
t/perlcriticrc (added)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Method-Cached/trunk/Changes
r20196 r20298 1 Revision history for Method-Cached1 Revision history for Perl extension Method::Cached 2 2 3 0.01 Date/time 4 First version, released on an unsuspecting world. 5 3 0.01 Tue Sep 30 18:07:39 2008 4 - original version -
lang/perl/Method-Cached/trunk/MANIFEST
r20196 r20298 1 1 Changes 2 MANIFEST 3 Makefile.PL 4 README 2 inc/Module/Install.pm 3 inc/Module/Install/Base.pm 4 inc/Module/Install/Can.pm 5 inc/Module/Install/Fetch.pm 6 inc/Module/Install/Include.pm 7 inc/Module/Install/Makefile.pm 8 inc/Module/Install/Metadata.pm 9 inc/Module/Install/Win32.pm 10 inc/Module/Install/WriteAll.pm 11 inc/Test/More.pm 5 12 lib/Method/Cached.pm 6 13 lib/Method/Cached/ArgsEncoder.pm … … 9 16 lib/Method/Cached/Manager.pm 10 17 lib/Method/Cached/StorageInspector.pm 18 Makefile.PL 19 MANIFEST This list of files 20 META.yml 21 README 11 22 t/00-load.t 12 t/pod-coverage.t 13 t/pod.t 23 t/00_compile.t 24 t/01-basic.t 25 t/02-manager.t -
lang/perl/Method-Cached/trunk/Makefile.PL
r20226 r20298 1 use strict; 2 use warnings; 3 use ExtUtils::MakeMaker; 1 use inc::Module::Install; 4 2 5 WriteMakefile( 6 NAME => 'Method::Cached', 7 AUTHOR => 'Sathoshi Ohkubo <s.ohkubo@gmail.com>', 8 VERSION_FROM => 'lib/Method/Cached.pm', 9 ABSTRACT_FROM => 'lib/Method/Cached.pm', 10 PL_FILES => {}, 11 PREREQ_PM => { 12 'Test::More' => 0, 13 'Attribute::Handlers' => 0, 14 'Cache::FastMmap' => 0, 15 'Class::Data::Accessor' => 0.04000, 16 'Digest::SHA' => 0, 17 'JSON::XS' => 2.2222, 18 'Scalar::Util' => 0, 19 'Storable' => 0, 20 }, 21 dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', }, 22 clean => { FILES => 'Method-Cached-*' }, 3 name 'Method-Cached'; 4 5 all_from 'lib/Method/Cached.pm'; 6 7 my %requires = ( 8 'Attribute::Handlers' => 0.79, 9 'Class::Data::Accessor' => 0.04004, 10 'Digest::SHA' => 5.47, 11 'JSON::XS' => 2.2222, 12 'MIME::Base64' => 3.07, 13 'Scalar::Util' => 1.19, 14 'Storable' => 2.18, 15 'UNIVERSAL::require' => 0.11, 23 16 ); 17 18 while (my ($key, $val) = each %requires) { 19 requires $key => $val; 20 } 21 22 build_requires 'Test::More'; 23 use_test_base; 24 auto_include; 25 WriteAll; -
lang/perl/Method-Cached/trunk/README
r20196 r20298 1 Method-Cached 2 3 The README is used to introduce the module and provide instructions on 4 how to install the module, any machine dependencies it may have (for 5 example C compilers and installed libraries) and any other information 6 that should be provided before the module is installed. 7 8 A README file is required for CPAN modules since CPAN extracts the README 9 file from a module distribution so that people browsing the archive 10 can use it to get an idea of the module's uses. It is usually a good idea 11 to provide version information here so that people can decide whether 12 fixes for the module are worth downloading. 13 1 This is Perl module Method::Cached. 14 2 15 3 INSTALLATION 16 4 17 To install this module, run the following commands: 5 Method::Cached installation is straightforward. If your CPAN shell is set up, 6 you should just be able to do 18 7 19 perl Makefile.PL 20 make 21 make test 22 make install 8 % cpan Method::Cached 23 9 24 SUPPORT AND DOCUMENTATION 10 Download it, unpack it, then build it as per the usual: 25 11 26 After installing, you can find documentation for this module with the 27 perldoc command. 12 % perl Makefile.PL 13 % make && make test 28 14 29 perldoc Method::Cached 15 Then install it: 30 16 31 You can also look for information at: 17 % make install 32 18 33 RT, CPAN's request tracker 34 http://rt.cpan.org/NoAuth/Bugs.html?Dist=Method-Cached 19 DOCUMENTATION 35 20 36 AnnoCPAN, Annotated CPAN documentation 37 http://annocpan.org/dist/Method-Cached 21 Method::Cached documentation is available as in POD. So you can do: 38 22 39 CPAN Ratings 40 http://cpanratings.perl.org/d/Method-Cached 23 % perldoc Method::Cached 41 24 42 Search CPAN 43 http://search.cpan.org/dist/Method-Cached 25 to read the documentation online with your favorite pager. 44 26 45 46 COPYRIGHT AND LICENCE 47 48 Copyright (C) 2008 Sathoshi Ohkubo 49 50 This program is free software; you can redistribute it and/or modify it 51 under the same terms as Perl itself. 52 27 Satoshi Ohkubo -
lang/perl/Method-Cached/trunk/lib/Method/Cached/StorageInspector.pm
r20226 r20298 5 5 use 5.008007; 6 6 use Carp qw/confess/; 7 use UNIVERSAL::require; 7 8 8 9 # This module examines whether the object has the interface compatible with Cache::Memcached. … … 10 11 sub inspect { 11 12 my ($class, $any_class) = @_; 12 eval "require $any_class"; 13 $@ && confess "Can't load module: $any_class"; 13 $any_class->require || confess "Can't load module: $any_class"; 14 14 $any_class->can($_) || return for qw/new set get/; 15 15 $any_class->can('delete') || $any_class->can('remove') || return;
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)