Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Adds more release examples.
- Loading branch information
Showing
4 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
use strict; | ||
use warnings; | ||
use feature qw( say ); | ||
|
||
use MetaCPAN::Client (); | ||
|
||
my $mc = MetaCPAN::Client->new; | ||
my $release_results = $mc->release( { status => 'latest' } ); | ||
|
||
while ( my $release = $release_results->next ) { | ||
say $release->download_url; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
use strict; | ||
use warnings; | ||
use feature qw( say ); | ||
|
||
use MetaCPAN::Client (); | ||
|
||
my $mc = MetaCPAN::Client->new; | ||
my $release_results | ||
= $mc->release( | ||
{ all => [ { author => 'NEILB', }, { status => 'latest' } ] } ); | ||
|
||
while ( my $release = $release_results->next ) { | ||
say $release->download_url; | ||
} |
20 changes: 20 additions & 0 deletions
20
scripts/release/12-all-latest-releases-by-NEILB-with-git-repository.pl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
use strict; | ||
use warnings; | ||
use feature qw( say ); | ||
|
||
use MetaCPAN::Client (); | ||
|
||
my $mc = MetaCPAN::Client->new; | ||
my $release_results = $mc->release( | ||
{ | ||
all => [ | ||
{ author => 'NEILB', }, | ||
{ status => 'latest' }, | ||
{ 'resources.repository.type' => 'git' } | ||
] | ||
} | ||
); | ||
|
||
while ( my $release = $release_results->next ) { | ||
say $release->resources->{repository}->{url}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
use strict; | ||
use warnings; | ||
use feature qw( say ); | ||
|
||
use MetaCPAN::Client (); | ||
|
||
my $mc = MetaCPAN::Client->new; | ||
my $release_results = $mc->release( { not => { status => 'backpan' } } ); | ||
|
||
while ( my $release = $release_results->next ) { | ||
say $release->download_url; | ||
} |