Show
Ignore:
Timestamp:
09/30/08 19:32:23 (5 years ago)
Author:
bonnu
Message:

lang/perl/Method-Cached - Makefile.PL was corrected a little

Location:
lang/perl/Method-Cached/trunk
Files:
5 added
5 modified
1 moved

Legend:

Unmodified
Added
Removed
  • lang/perl/Method-Cached/trunk/Changes

    r20196 r20298  
    1 Revision history for Method-Cached 
     1Revision history for Perl extension Method::Cached 
    22 
    3 0.01    Date/time 
    4         First version, released on an unsuspecting world. 
    5  
     30.01    Tue Sep 30 18:07:39 2008 
     4        - original version 
  • lang/perl/Method-Cached/trunk/MANIFEST

    r20196 r20298  
    11Changes 
    2 MANIFEST 
    3 Makefile.PL 
    4 README 
     2inc/Module/Install.pm 
     3inc/Module/Install/Base.pm 
     4inc/Module/Install/Can.pm 
     5inc/Module/Install/Fetch.pm 
     6inc/Module/Install/Include.pm 
     7inc/Module/Install/Makefile.pm 
     8inc/Module/Install/Metadata.pm 
     9inc/Module/Install/Win32.pm 
     10inc/Module/Install/WriteAll.pm 
     11inc/Test/More.pm 
    512lib/Method/Cached.pm 
    613lib/Method/Cached/ArgsEncoder.pm 
     
    916lib/Method/Cached/Manager.pm 
    1017lib/Method/Cached/StorageInspector.pm 
     18Makefile.PL 
     19MANIFEST                        This list of files 
     20META.yml 
     21README 
    1122t/00-load.t 
    12 t/pod-coverage.t 
    13 t/pod.t 
     23t/00_compile.t 
     24t/01-basic.t 
     25t/02-manager.t 
  • lang/perl/Method-Cached/trunk/Makefile.PL

    r20226 r20298  
    1 use strict; 
    2 use warnings; 
    3 use ExtUtils::MakeMaker; 
     1use inc::Module::Install; 
    42 
    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-*' }, 
     3name 'Method-Cached'; 
     4 
     5all_from 'lib/Method/Cached.pm'; 
     6 
     7my %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, 
    2316); 
     17 
     18while (my ($key, $val) = each %requires) { 
     19    requires $key => $val; 
     20} 
     21 
     22build_requires 'Test::More'; 
     23use_test_base; 
     24auto_include; 
     25WriteAll; 
  • 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  
     1This is Perl module Method::Cached. 
    142 
    153INSTALLATION 
    164 
    17 To install this module, run the following commands: 
     5Method::Cached installation is straightforward. If your CPAN shell is set up, 
     6you should just be able to do 
    187 
    19         perl Makefile.PL 
    20         make 
    21         make test 
    22         make install 
     8    % cpan Method::Cached 
    239 
    24 SUPPORT AND DOCUMENTATION 
     10Download it, unpack it, then build it as per the usual: 
    2511 
    26 After installing, you can find documentation for this module with the 
    27 perldoc command. 
     12    % perl Makefile.PL 
     13    % make && make test 
    2814 
    29     perldoc Method::Cached 
     15Then install it: 
    3016 
    31 You can also look for information at: 
     17    % make install 
    3218 
    33     RT, CPAN's request tracker 
    34         http://rt.cpan.org/NoAuth/Bugs.html?Dist=Method-Cached 
     19DOCUMENTATION 
    3520 
    36     AnnoCPAN, Annotated CPAN documentation 
    37         http://annocpan.org/dist/Method-Cached 
     21Method::Cached documentation is available as in POD. So you can do: 
    3822 
    39     CPAN Ratings 
    40         http://cpanratings.perl.org/d/Method-Cached 
     23    % perldoc Method::Cached 
    4124 
    42     Search CPAN 
    43         http://search.cpan.org/dist/Method-Cached 
     25to read the documentation online with your favorite pager. 
    4426 
    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  
     27Satoshi Ohkubo 
  • lang/perl/Method-Cached/trunk/lib/Method/Cached/StorageInspector.pm

    r20226 r20298  
    55use 5.008007; 
    66use Carp qw/confess/; 
     7use UNIVERSAL::require; 
    78 
    89# This module examines whether the object has the interface compatible with Cache::Memcached. 
     
    1011sub inspect { 
    1112    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"; 
    1414    $any_class->can($_) || return for qw/new set get/; 
    1515    $any_class->can('delete') || $any_class->can('remove') || return;