27 Feb 2014 23:05:00 UTC
- Distribution: Dist-Zilla-Role-MetaCPANInterfacer
- Module version: 0.97
- Source (raw)
- Browse (raw)
- How to Contribute
- Repository (git clone)
- Issues (1)
- Testers (2886 / 2 / 17)
- KwaliteeBus factor: 0
- % Coverage
- License: artistic_2
- Perl: v5.10.1
- Activity24 month
- Download (16.65KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
- SEE ALSO
- COPYRIGHT AND LICENSE
Dist::Zilla::Role::MetaCPANInterfacer - something that will interact with MetaCPAN's API
# in your plugin/etc. code with 'Dist::Zilla::Role::MetaCPANInterfacer'; my $obj = $self->mcpan->fetch(...);
This role is simply gives you a MetaCPAN::API object to use with caching, so that other plugins can share that cache. It uses the awesome example provided in the "SYNOPSIS" in MetaCPAN::API, contributed by Kent Fredric.
All of these attributes are f'ing lazy, because they like to sit around the house. They are also read-write, as this is a role, and you might want to change around the defaults.
Type: A MetaCPAN::API object
Default: A new object, using
mcpan_uaas the Tiny user agent
Type: A HTTP::Tiny compatible user agent
Default: A new HTTP::Tiny::Mech object, using
mcpan_mechuaas the Mechanized user agent
Type: A WWW::Mechanize compatible user agent
Default: A new WWW::Mechanize::Cached::GZip object, using
mcpan_cacheas the cache attribute, and some UA string changes.
Type: A caching object
The caching stuff could potentially be split, but frankly, none of the existing plugins really need caching all that much. I've at least called the
.webcachedirectory a generic name, so feel free to re-use it.
(Honestly, the only reason why this is a DZ module IS the caching directory name...)
Dist::Zilla::PluginBundle::Prereqs, which uses this quite a bit.
The project homepage is https://github.com/SineSwiper/Dist-Zilla-Role-MetaCPANInterfacer.
The latest version of this module is available from the Comprehensive Perl Archive Network (CPAN). Visit http://www.perl.com/CPAN/ to find a CPAN site near you, or see https://metacpan.org/module/Dist::Zilla::Role::MetaCPANInterfacer/.
You can get live help by using IRC ( Internet Relay Chat ). If you don't know what IRC is, please read this excellent guide: http://en.wikipedia.org/wiki/Internet_Relay_Chat. Please be courteous and patient when talking to us, as we might be busy or sleeping! You can join those networks/channels and get help:
You can connect to the server at 'irc.perl.org' and talk to this person for help: SineSwiper.
Please report any bugs or feature requests via https://github.com/SineSwiper/Dist-Zilla-Role-MetaCPANInterfacer/issues.
Brendan Byrd <BBYRD@CPAN.org>
Christian Walde <email@example.com>
This software is Copyright (c) 2014 by Brendan Byrd.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
Module Install Instructions
To install Dist::Zilla::Role::MetaCPANInterfacer, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Dist::Zilla::Role::MetaCPANInterfacer
For more information on module installation, please visit the detailed CPAN module installation guide.