CPAN-Common-Index
view release on metacpan or search on metacpan
lib/CPAN/Common/Index/MetaDB.pm view on Meta::CPAN
use parent 'CPAN::Common::Index';
use Class::Tiny qw/uri/;
use Carp;
use CPAN::Meta::YAML;
use HTTP::Tiny;
#pod =attr uri
#pod
#pod A URI for the endpoint of a CPAN MetaDB server. The
#pod default is L<http://cpanmetadb.plackperl.org/v1.0/>.
#pod
#pod =cut
sub BUILD {
my $self = shift;
my $uri = $self->uri;
$uri = "http://cpanmetadb.plackperl.org/v1.0/"
unless defined $uri;
# ensure URI ends in '/'
lib/CPAN/Common/Index/MetaDB.pm view on Meta::CPAN
This module implements a CPAN::Common::Index that searches for packages against
the same CPAN MetaDB API used by L<cpanminus>.
There is no support for advanced package queries or searching authors. It just
takes a package name and returns the corresponding version and distribution.
=head1 ATTRIBUTES
=head2 uri
A URI for the endpoint of a CPAN MetaDB server. The
default is L<http://cpanmetadb.plackperl.org/v1.0/>.
=for Pod::Coverage attributes validate_attributes search_packages search_authors BUILD
=head1 AUTHOR
David Golden <dagolden@cpan.org>
=head1 COPYRIGHT AND LICENSE
( run in 0.281 second using v1.01-cache-2.11-cpan-b61123c0432 )