Skip to content

Commit

Permalink
release 1.018000
Browse files Browse the repository at this point in the history
  • Loading branch information
mickeyn committed Jul 6, 2016
1 parent 929c549 commit 381c727
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 4 deletions.
5 changes: 5 additions & 0 deletions Changes
@@ -1,5 +1,10 @@
Revision history for MetaCPAN-Client (previously MetaCPAN-API)

1.018000 06.07.16
* Added support for download_url endpoint (Mickey)
* Default domain set by providing 'version' -
makes it easy to work with v1 (Mickey)

1.017000 28.06.16
* Fixed nodes list for Search::Elasticsearch (Mickey)
* Added support for 'aggregations' (Mickey)
Expand Down
22 changes: 21 additions & 1 deletion README.pod
Expand Up @@ -8,7 +8,7 @@ MetaCPAN::Client - A comprehensive, DWIM-featured client to the MetaCPAN API

=head1 VERSION

version 1.017000
version 1.018000

=head1 SYNOPSIS

Expand All @@ -24,6 +24,8 @@ version 1.017000
use MetaCPAN::Client;

my $mcpan = MetaCPAN::Client->new(
version => 'v1',

ua => HTTP::Tiny::Mech->new(
mechua => WWW::Mechanize::Cached->new(
cache => CHI->new(
Expand Down Expand Up @@ -57,6 +59,16 @@ instead of the default, which is L<HTTP::Tiny>.
Then it can be used to fetch the user agent object used by
L<MetaCPAN::Client::Request>.

=head2 version

API version (supported: 'v0', 'v1')

This will also set default value to your 'domain' (unless given)

=head2 domain

If given, will be used to alter the API domain.

=head1 METHODS

=head2 author
Expand Down Expand Up @@ -171,6 +183,14 @@ Retrieve all matches for authors/modules/distributions/favorites or releases.
When called with a second parameter containing a hash ref,
will support the following keys:

=head2 download_url

Retrieve information from the 'download_url' endpoint (v1 only)

my $download_url = $mcpan->download_url('Moose')

Returns a L<MetaCPAN::Client::DownloadURL> object

=head3 fields

See SEARCH PARAMS.
Expand Down
4 changes: 2 additions & 2 deletions cpanfile
Expand Up @@ -6,7 +6,7 @@ requires "Moo::Role" => "0";
requires "Safe::Isa" => "0";
requires "Search::Elasticsearch" => "2.02";
requires "Try::Tiny" => "0";
requires "perl" => "5.008";
requires "perl" => "5.010";
requires "strict" => "0";
requires "warnings" => "0";

Expand All @@ -19,7 +19,7 @@ on 'test' => sub {
requires "Test::More" => "0";
requires "Test::Requires" => "0";
requires "base" => "0";
requires "perl" => "5.008";
requires "perl" => "5.010";
};

on 'test' => sub {
Expand Down
2 changes: 1 addition & 1 deletion dist.ini
Expand Up @@ -5,7 +5,7 @@ license = Perl_5
copyright_holder = Sawyer X
copyright_year = 2016

version = 1.017000
version = 1.018000


[@Filter]
Expand Down

0 comments on commit 381c727

Please sign in to comment.