Alien-Build-Plugin-Download-GitHub

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

      No assets will be included in the list of candidates.

    regular expression

      If a regular expression is provided, this will include assets that
      match by name.

 tags_only

    Boolean value for those repositories that do not upgrade their tags to
    releases. There are two different endpoints. One for releases
    <https://developer.github.com/v3/repos/releases/#list-releases-for-a-repository>
    and one for simple tags
    <https://developer.github.com/v3/repos/#list-tags>. The default is to
    interrogate the former for downloads. Passing a true value for
    "tags_only" interrogates the latter for downloads.

 version

    Regular expression that can be used to extract a version from a GitHub
    tag. The default ( qr/^v?(.*)$/ ) is reasonable for many GitHub

lib/Alien/Build/Plugin/Download/GitHub.pm  view on Meta::CPAN


  if($self->asset)
  {
    $meta->add_requires('configure' => 'Alien::Build::Plugin::Download::GitHub' => '0.09' );
  }
  else
  {
    $meta->add_requires('configure' => 'Alien::Build::Plugin::Download::GitHub' => 0 );
  }

  my $endpoint = $self->tags_only ? 'tags' : 'releases' ;
  $meta->prop->{start_url} ||= "https://api.github.com/repos/@{[ $self->github_user ]}/@{[ $self->github_repo ]}/$endpoint";

  $meta->apply_plugin('Download',
    prefer  => $self->prefer,
    version => $self->version,
  );

  if($self->asset_format ne 'none')
  {
    if($self->asset && $self->asset_format)
    {

lib/Alien/Build/Plugin/Download/GitHub.pm  view on Meta::CPAN

=item regular expression

If a regular expression is provided, this will include assets that match by
name.

=back

=head2 tags_only

Boolean value for those repositories that do not upgrade their tags to releases.
There are two different endpoints. One for
L<releases|https://developer.github.com/v3/repos/releases/#list-releases-for-a-repository>
and one for simple L<tags|https://developer.github.com/v3/repos/#list-tags>. The
default is to interrogate the former for downloads. Passing a true value for
L</"tags_only"> interrogates the latter for downloads.

=head2 version

Regular expression that can be used to extract a version from a GitHub tag.  The
default ( C<qr/^v?(.*)$/> ) is reasonable for many GitHub repositories.



( run in 0.520 second using v1.01-cache-2.11-cpan-b61123c0432 )