Alien-Build-Plugin-Download-GitHub

 view release on metacpan or  search on metacpan

Makefile.PL  view on Meta::CPAN

BEGIN {
  use strict; use warnings;
  my %missing = map {
    eval qq{ require $_ };
    $@ ? ($_=>1) : ()
  } qw( Carp Data::Dumper File::Temp strict warnings );
  if(%missing)
  {
    print "Your Perl is missing core modules: @{[ sort keys %missing ]}\n";
    print "Ideally if you are using the system Perl you can install the appropriate\n";
    print "package which includes the core Perl modules.  On at least some versions\n";
    print "of Fedora, CentOS and RHEL, this is the `perl-core` package.\n";
    print "\n";
    print " % dnf install perl-core\n";
    print "   ~ or ~\n";
    print " % yum install perl-core\n";

t/alien_build_plugin_download_github.t  view on Meta::CPAN

  # This doesn't catch results form the curl plugin, for example.
  # but it does add useful diagnostic if we are using HTTP::Tiny.
  require HTTP::Tiny;
  my $mock = mock 'HTTP::Tiny' => (
    around => [
      get => sub {
        my $orig = shift;
        my $res = $orig->(@_);
        unless($res->{success})
        {
          require Data::Dumper;
          diag Data::Dumper::Dumper($res);
        }
        $res;
      },
    ],
  );

  my $build = alienfile q{

    use alienfile;



( run in 0.949 second using v1.01-cache-2.11-cpan-a5abf4f5562 )