view release on metacpan or search on metacpan
"Alien::Build::MB" => "0.07",
"Module::Build" => "0.28"
},
"configure_requires" => {
"Alien::Build" => "2.57",
"Alien::Build::MB" => "0.02",
"Alien::Build::Plugin::Digest::Negotiate" => 0,
"Module::Build" => "0.28",
"perl" => "5.006"
},
"dist_abstract" => "Test Module for Alien::Base + Alien::Build",
"dist_author" => [
"Graham Ollis <plicease\@cpan.org>",
"Joel A Berger <joel.a.berger\@gmail.com>"
],
"dist_name" => "Acme-Alien-DontPanic2",
"dist_version" => "2.7200",
"license" => "perl",
"module_name" => "Acme::Alien::DontPanic2",
"recursive_test_files" => 1,
"requires" => {
"Alien::Base" => "0.038",
"perl" => "5.006"
},
"test_requires" => {
"File::Temp" => 0,
"Inline" => "0.56",
"Inline::C" => 0,
"Inline::CPP" => 0,
"Path::Tiny" => 0,
"Test2::V0" => "0.000121",
"Test::Alien" => "0.05",
"perl" => "5.006"
}
);
my %fallback_build_requires = (
"Alien::Build" => "2.72",
"Alien::Build::MB" => "0.07",
"File::Temp" => 0,
"Inline" => "0.56",
"Inline::C" => 0,
"Inline::CPP" => 0,
"Module::Build" => "0.28",
"Path::Tiny" => 0,
"Test2::V0" => "0.000121",
"Test::Alien" => "0.05",
"perl" => "5.006"
);
unless ( eval { Module::Build->VERSION(0.4004) } ) {
delete $module_build_args{test_requires};
$module_build_args{build_requires} = \%fallback_build_requires;
}
my $build = Alien::Build::MB->new(%module_build_args);
{
"abstract" : "Test Module for Alien::Base + Alien::Build",
"author" : [
"Graham Ollis <plicease@cpan.org>",
"Joel A Berger <joel.a.berger@gmail.com>"
],
"dynamic_config" : 1,
"generated_by" : "Dist::Zilla version 6.025, CPAN::Meta::Converter version 2.150010",
"license" : [
"perl_5"
],
"meta-spec" : {
"Perl::Critic::Policy::ValuesAndExpressions::ProhibitMixedBooleanOperators" : "0",
"Perl::Critic::Policy::ValuesAndExpressions::ProhibitSpecialLiteralHeredocTerminator" : "0",
"Perl::Critic::Policy::ValuesAndExpressions::RequireUpperCaseHeredocTerminator" : "0",
"Perl::Critic::Policy::Variables::ProhibitPerl4PackageNames" : "0",
"Perl::Critic::Policy::Variables::ProhibitUnusedVariables" : "0",
"Software::License::Perl_5" : "0"
},
"requires" : {
"FindBin" : "0",
"Perl::Critic" : "0",
"Test2::Require::Module" : "0.000121",
"Test2::Tools::PerlCritic" : "0",
"Test2::V0" : "0.000121",
"Test::CPAN::Changes" : "0",
"Test::EOL" : "0",
"Test::Fixme" : "0.07",
"Test::More" : "0.98",
"Test::NoTabs" : "0",
"Test::Pod" : "0",
"Test::Pod::Coverage" : "0",
"Test::Pod::Spelling::CommonMistakes" : "0",
"Test::Spelling" : "0",
"Test::Strict" : "0",
"YAML" : "0"
}
},
"runtime" : {
"requires" : {
"Alien::Base" : "0.038",
"perl" : "5.006"
}
},
"test" : {
"requires" : {
"File::Temp" : "0",
"Inline" : "0.56",
"Inline::C" : "0",
"Inline::CPP" : "0",
"Path::Tiny" : "0",
"Test2::V0" : "0.000121",
"Test::Alien" : "0.05",
"perl" : "5.006"
}
}
},
"release_status" : "stable",
"resources" : {
"bugtracker" : {
"web" : "https://github.com/PerlAlien/Acme-Alien-DontPanic2/issues"
},
"homepage" : "https://metacpan.org/pod/Acme::Alien::DontPanic2",
---
abstract: 'Test Module for Alien::Base + Alien::Build'
author:
- 'Graham Ollis <plicease@cpan.org>'
- 'Joel A Berger <joel.a.berger@gmail.com>'
build_requires:
Alien::Build: '2.72'
Alien::Build::MB: '0.07'
File::Temp: '0'
Inline: '0.56'
Inline::C: '0'
Inline::CPP: '0'
Module::Build: '0.28'
Path::Tiny: '0'
Test2::V0: '0.000121'
Test::Alien: '0.05'
perl: '5.006'
configure_requires:
Alien::Build: '2.57'
Alien::Build::MB: '0.02'
Alien::Build::Plugin::Digest::Negotiate: '0'
Module::Build: '0.28'
perl: '5.006'
dynamic_config: 1
generated_by: 'Dist::Zilla version 6.025, CPAN::Meta::Converter version 2.150010'
license: perl
NAME
Acme::Alien::DontPanic2 - Test Module for Alien::Base + Alien::Build
VERSION
version 2.7200
DESCRIPTION
Alien::Base comprises base classes to help in the construction of
Alien:: modules. Modules in the Alien namespace are used to locate and
install (if necessary) external libraries needed by other Perl modules.
[Prereqs / BuildRequires]
-phase = build
Alien::Build = 2.72
[Prereqs / ConfigureRequires]
-phase = build
Alien::Build::MB = 0.07
Alien::Build = 2.72
[Prereqs / TestRequires]
Inline::C = 0
Inline::CPP = 0
[Author::Plicease::Upload]
cpan = 1
lib/Acme/Alien/DontPanic2.pm view on Meta::CPAN
package Acme::Alien::DontPanic2;
use strict;
use warnings;
use base 'Alien::Base';
# ABSTRACT: Test Module for Alien::Base + Alien::Build
our $VERSION = '2.7200'; # VERSION
1;
__END__
=pod
=encoding UTF-8
=head1 NAME
Acme::Alien::DontPanic2 - Test Module for Alien::Base + Alien::Build
=head1 VERSION
version 2.7200
=head1 DESCRIPTION
L<Alien::Base> comprises base classes to help in the construction of C<Alien::> modules. Modules in the L<Alien> namespace are used to locate and install (if necessary) external libraries needed by other Perl modules.
This module is a toy module to test the efficacy of the L<Alien::Base> system. This module is depended on by another toy module L<Acme::Ford::Prefect>, which needs the F<libdontpanic> library to be able to tell us the C<answer>.
perlcriticrc view on Meta::CPAN
[Freenode::IndirectObjectNotation]
[Freenode::LexicalForeachIterator]
[Freenode::LoopOnHash]
[Freenode::ModPerl]
[Freenode::OpenArgs]
[Freenode::OverloadOptions]
[Freenode::POSIXImports]
[Freenode::PackageMatchesFilename]
[Freenode::PreferredAlternatives]
[Freenode::StrictWarnings]
extra_importers = Test2::V0
[Freenode::Threads]
[Freenode::Wantarray]
[Freenode::WarningsSwitch]
[Freenode::WhileDiamondDefaultAssignment]
[BuiltinFunctions::ProhibitBooleanGrep]
[BuiltinFunctions::ProhibitStringyEval]
[BuiltinFunctions::ProhibitStringySplit]
[BuiltinFunctions::ProhibitVoidGrep]
[BuiltinFunctions::ProhibitVoidMap]
t/00_diag.t view on Meta::CPAN
use Test2::V0 -no_srand => 1;
use Config;
eval { require 'Test/More.pm' };
# This .t file is generated.
# make changes instead to dist.ini
my %modules;
my $post_diag;
$modules{$_} = $_ for qw(
Alien::Base
Alien::Build
Alien::Build::MB
Alien::Build::Plugin::Digest::Negotiate
File::Temp
Inline
Inline::C
Inline::CPP
Module::Build
Path::Tiny
Test2::V0
Test::Alien
);
$post_diag = sub {
require Acme::Alien::DontPanic2;
diag "version = ", Acme::Alien::DontPanic2->version;
diag "cflags = ", Acme::Alien::DontPanic2->cflags;
diag "cflags_static = ", Acme::Alien::DontPanic2->cflags_static;
diag "libs = ", Acme::Alien::DontPanic2->libs;
diag "libs_static = ", Acme::Alien::DontPanic2->libs_static;
diag "bin_dir = ", $_ for Acme::Alien::DontPanic2->bin_dir;
t/acme_alien_dontpanic2.t view on Meta::CPAN
use Test2::V0 -no_srand => 1;
use Test::Alien 0.05;
use Acme::Alien::DontPanic2;
alien_ok 'Acme::Alien::DontPanic2';
my $xs = do { local $/; <DATA> };
xs_ok { xs => $xs, verbose => 1 }, with_subtest {
my($module) = @_;
plan 1;
is $module->answer, 42, 'answer is 42';
t/acme_alien_dontpanic2__ffi.t view on Meta::CPAN
use Test2::V0 -no_srand => 1;
use Test::Alien 0.05;
use Acme::Alien::DontPanic2;
my @libs = Acme::Alien::DontPanic2->dynamic_libs;
skip_all 'test requires dynamic libraries'
unless @libs;
alien_ok 'Acme::Alien::DontPanic2';
ffi_ok { symbols => ['answer'] }, with_subtest {
use Test2::V0 -no_srand => 1;
use Path::Tiny qw( path );
use File::Temp qw( tempdir );
BEGIN { $ENV{PERL_INLINE_DIRECTORY} = tempdir( DIR => path('.')->absolute->stringify, CLEANUP => 1, TEMPLATE => 'inlineXXXXX') }
use Acme::Alien::DontPanic2;
use Inline 0.56 with => 'Acme::Alien::DontPanic2';
use Inline C => 'DATA', ENABLE => 'AUTOWRAP';
is string_answer(), "the answer to life the universe and everything is 42", "indirect call";
is answer(), 42, "direct call";
t/inline_cpp.t view on Meta::CPAN
use Test2::V0 -no_srand => 1;
use Path::Tiny qw( path );
use File::Temp qw( tempdir );
BEGIN { $ENV{PERL_INLINE_DIRECTORY} = tempdir( DIR => path('.')->absolute->stringify, CLEANUP => 1, TEMPLATE => 'inlineXXXXX') }
use Acme::Alien::DontPanic2;
use Inline 0.56 with => 'Acme::Alien::DontPanic2';
use Inline CPP => 'DATA', ENABLE => 'AUTOWRAP';
is Foo->new->string_answer, "the answer to life the universe and everything is 42", 'indirect';
is answer(), 42, "direct";
xt/author/critic.t view on Meta::CPAN
use Test2::Require::Module 'Test2::Tools::PerlCritic';
use Test2::Require::Module 'Perl::Critic';
use Test2::Require::Module 'Perl::Critic::Freenode';
use Test2::V0;
use Perl::Critic;
use Test2::Tools::PerlCritic;
my $critic = Perl::Critic->new(
-profile => 'perlcriticrc',
);
perl_critic_ok ['lib','t'], $critic;
done_testing;
xt/author/eol.t view on Meta::CPAN
use strict;
use warnings;
use Test::More;
BEGIN {
plan skip_all => 'test requires Test::EOL'
unless eval q{ use Test::EOL; 1 };
};
use Test::EOL;
use FindBin;
use File::Spec;
chdir(File::Spec->catdir($FindBin::Bin, File::Spec->updir, File::Spec->updir));
all_perl_files_ok(grep { -e $_ } qw( bin lib t Makefile.PL ));
xt/author/no_tabs.t view on Meta::CPAN
use strict;
use warnings;
use Test::More;
BEGIN {
plan skip_all => 'test requires Test::NoTabs'
unless eval q{ use Test::NoTabs; 1 };
};
use Test::NoTabs;
use FindBin;
use File::Spec;
chdir(File::Spec->catdir($FindBin::Bin, File::Spec->updir, File::Spec->updir));
all_perl_files_ok( grep { -e $_ } qw( bin lib t Makefile.PL ));
xt/author/pod.t view on Meta::CPAN
use strict;
use warnings;
use Test::More;
BEGIN {
plan skip_all => 'test requires Test::Pod'
unless eval q{ use Test::Pod; 1 };
};
use Test::Pod;
use FindBin;
use File::Spec;
chdir(File::Spec->catdir($FindBin::Bin, File::Spec->updir, File::Spec->updir));
all_pod_files_ok( grep { -e $_ } qw( bin lib ));
xt/author/pod_coverage.t view on Meta::CPAN
use strict;
use warnings;
use Test::More;
BEGIN {
plan skip_all => 'test requires 5.010 or better'
unless $] >= 5.010;
plan skip_all => 'test requires Test::Pod::Coverage'
unless eval q{ use Test::Pod::Coverage; 1 };
plan skip_all => 'test requires YAML'
unless eval q{ use YAML; 1; };
plan skip_all => 'test does not always work in cip check'
if defined $ENV{CIPSTATIC} && $ENV{CIPSTATIC} eq 'true';
};
use Test::Pod::Coverage;
use YAML qw( LoadFile );
use FindBin;
use File::Spec;
my $config_filename = File::Spec->catfile(
$FindBin::Bin, File::Spec->updir, File::Spec->updir, 'author.yml'
);
my $config;
$config = LoadFile($config_filename)
xt/author/pod_spelling_common.t view on Meta::CPAN
use strict;
use warnings;
use Test::More;
BEGIN {
plan skip_all => 'test requires Test::Pod::Spelling::CommonMistakes'
unless eval q{ use Test::Pod::Spelling::CommonMistakes; 1 };
plan skip_all => 'test requires YAML'
unless eval q{ use YAML qw( LoadFile ); 1 };
};
use Test::Pod::Spelling::CommonMistakes;
use FindBin;
use File::Spec;
my $config_filename = File::Spec->catfile(
$FindBin::Bin, File::Spec->updir, File::Spec->updir, 'author.yml'
);
my $config;
$config = LoadFile($config_filename)
if -r $config_filename;
xt/author/pod_spelling_system.t view on Meta::CPAN
use strict;
use warnings;
use Test::More;
BEGIN {
plan skip_all => 'test requires Test::Spelling'
unless eval q{ use Test::Spelling; 1 };
plan skip_all => 'test requires YAML'
unless eval q{ use YAML; 1; };
};
use Test::Spelling;
use YAML qw( LoadFile );
use FindBin;
use File::Spec;
my $config_filename = File::Spec->catfile(
$FindBin::Bin, File::Spec->updir, File::Spec->updir, 'author.yml'
);
my $config;
$config = LoadFile($config_filename)
xt/author/strict.t view on Meta::CPAN
use strict;
use warnings;
use Test::More;
BEGIN {
plan skip_all => 'test requires Test::Strict'
unless eval q{ use Test::Strict; 1 };
};
use Test::Strict;
use FindBin;
use File::Spec;
chdir(File::Spec->catdir($FindBin::Bin, File::Spec->updir, File::Spec->updir));
unshift @Test::Strict::MODULES_ENABLING_STRICT,
'ozo',
'Test2::Bundle::SIPS',
'Test2::V0',
'Test2::Bundle::Extended';
note "enabling strict = $_" for @Test::Strict::MODULES_ENABLING_STRICT;
all_perl_files_ok( grep { -e $_ } qw( bin lib t Makefile.PL ));
xt/author/version.t view on Meta::CPAN
use strict;
use warnings;
use Test::More;
use FindBin ();
BEGIN {
plan skip_all => "test requires Test::Version 2.00"
unless eval q{
use Test::Version 2.00 qw( version_all_ok ), {
has_version => 1,
filename_match => sub { $_[0] !~ m{/(ConfigData|Install/Files)\.pm$} },
};
1
};
plan skip_all => 'test requires YAML'
unless eval q{ use YAML; 1; };
}
xt/release/changes.t view on Meta::CPAN
use strict;
use warnings;
use Test::More;
BEGIN {
plan skip_all => 'test requires Test::CPAN::Changes'
unless eval q{ use Test::CPAN::Changes; 1 };
};
use Test::CPAN::Changes;
use FindBin;
use File::Spec;
chdir(File::Spec->catdir($FindBin::Bin, File::Spec->updir, File::Spec->updir));
do {
my $old = \&Test::Builder::carp;
my $new = sub {
my($self, @messages) = @_;
return if $messages[0] =~ /^Date ".*" is not in the recommend format/;
$old->($self, @messages);
};
no warnings 'redefine';
*Test::Builder::carp = $new;
};
changes_file_ok;
done_testing;
xt/release/fixme.t view on Meta::CPAN
use strict;
use warnings;
use Test::More;
BEGIN {
plan skip_all => 'test requires Test::Fixme'
unless eval q{ use Test::Fixme 0.14; 1 };
};
use Test::Fixme 0.07;
use FindBin;
use File::Spec;
chdir(File::Spec->catdir($FindBin::Bin, File::Spec->updir, File::Spec->updir));
run_tests(
match => qr/FIXME/,
where => [ grep { -e $_ } qw( bin lib t Makefile.PL Build.PL )],
warn => 1,
);