view release on metacpan or search on metacpan
eg/mk.tt.PL view on Meta::CPAN
WriteMakefile(
NAME => [% quote(name) %],
VERSION_FROM => 'lib/Template/Process.pm',
PREREQ_PM => {
[%- FOREACH p = requires %]
[% p.key %] => [% p.value %]
[%- END %]
},
EXE_FILES => [ qw(bin/tt) ],
PL_FILES => {},
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Template/Provider.pm view on Meta::CPAN
# load compiled template via require(); we zap any
# %INC entry to ensure it is reloaded (we don't
# want 1 returned by require() to say it's in memory)
delete $INC{ $fpath };
eval { $compiled = require $fpath; };
return $@
? $self->error("compiled template $compiled: $@")
: $compiled;
}
view all matches for this distribution
view release on metacpan or search on metacpan
termbox2/tests/test_prepend.php view on Meta::CPAN
$this->test_log = $GLOBALS['argv'][1] ?? '';
}
private function makeFfi(): object {
// Make FFI
[ $ffi, $defines ] = require __DIR__ . '/test_ffi.php';
$this->defines = $defines;
// Return wrapper that logs FFI calls
return new class($ffi, $this) {
private FFI $ffi;
view all matches for this distribution
view release on metacpan or search on metacpan
;version_rel_month = 4
;version_rel_day = 14
;version_rel_hour = 3
;version_rel_time_zone = Pacific/Auckland
-phase = develop
-relationship = requires
Dist::Zilla::Plugin::Author::KENTNL::CONTRIBUTING = 0.001003
Dist::Zilla::Plugin::Author::KENTNL::RecommendFixes = 0.004002
Dist::Zilla::Plugin::Author::KENTNL::TravisCI = 0.001002
Dist::Zilla::Plugin::Authority = 1.006
Dist::Zilla::Plugin::AutoPrereqs = 0
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Test/CheckDeps.pm view on Meta::CPAN
}
sub check_dependencies_opts {
my ($meta, $phases, $type) = @_;
my $reqs = requirements_for($meta, $phases, $type);
my $raw = $reqs->as_string_hash;
my $ret = check_requirements($reqs, $type);
local $Test::Builder::Level = $Test::Builder::Level + 1;
for my $module (sort keys %{$ret}) {
view all matches for this distribution
view release on metacpan or search on metacpan
authority = cpan:FLORA
installer = MakeMaker ; dynamic prereqs; stay 5.6-friendly
[DynamicPrereqs]
:version = 0.018
-body = requires('Role::Tiny', '1.003000') if has_module('Role::Tiny');
[Prereqs::Soften]
; It's important to check the generated META.json for prereqs - we do not want
; any of these to be hard prereqs, and do not want new prereqs to slip in that
; don't belong. This dist is meant to be low-level, and Moose now uses it in
view all matches for this distribution
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
But, it's more interesting than that. You can load it with C<require>
and call C<arguments> to get the data structure it passes to
C<WriteMakefile>:
my $package = require '/path/to/Makefile.PL';
my $arguments = $package->arguments;
Note that C<require>-ing a file makes an entry in C<%INC> for exactly
that name. If you try to C<require> another file with the same name,
even from a different path, C<require> thinks it has already loaded
view all matches for this distribution
view release on metacpan or search on metacpan
[Prereqs / @Author::KENTNL/::Role::BundleDeps]
; twitter_extra_hash_tags =
; auto_prereqs_skip = File::Find
-phase = develop
-relationship = requires
Dist::Zilla::Plugin::Author::KENTNL::CONTRIBUTING = 0.001003
Dist::Zilla::Plugin::Author::KENTNL::RecommendFixes = 0.004002
Dist::Zilla::Plugin::Author::KENTNL::TravisCI = 0.001002
Dist::Zilla::Plugin::Authority = 1.006
Dist::Zilla::Plugin::AutoPrereqs = 0
view all matches for this distribution
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
But, it's more interesting than that. You can load it with C<require>
and call C<arguments> to get the data structure it passes to
C<WriteMakefile>:
my $package = require '/path/to/Makefile.PL';
my $arguments = $package->arguments;
Note that C<require>-ing a file makes an entry in C<%INC> for exactly
that name. If you try to C<require> another file with the same name,
even from a different path, C<require> thinks it has already loaded
view all matches for this distribution
view release on metacpan or search on metacpan
;version_rel_month = 2
;version_rel_day = 22
;version_rel_hour = 0
;version_rel_time_zone = Pacific/Auckland
-phase = develop
-relationship = requires
Dist::Zilla::Plugin::Author::KENTNL::RecommendFixes = 0.004002
Dist::Zilla::Plugin::Author::KENTNL::TravisCI = 0.001002
Dist::Zilla::Plugin::Authority = 1.006
Dist::Zilla::Plugin::AutoPrereqs = 0
Dist::Zilla::Plugin::BumpVersionAfterRelease = 0
view all matches for this distribution
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
But, it's more interesting than that. You can load it with C<require>
and call C<arguments> to get the data structure it passes to
C<WriteMakefile>:
my $package = require '/path/to/Makefile.PL';
my $arguments = $package->arguments;
Note that C<require>-ing a file makes an entry in C<%INC> for exactly
that name. If you try to C<require> another file with the same name,
even from a different path, C<require> thinks it has already loaded
view all matches for this distribution
view release on metacpan or search on metacpan
-phase = runtime
Getopt::Long = 2.36
[EnsurePrereqsInstalled]
:version = 0.003
type = requires
type = recommends
[PodWeaver]
[ReadmeAnyFromPod]
type = gfm
view all matches for this distribution
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
But, it's more interesting than that. You can load it with C<require>
and call C<arguments> to get the data structure it passes to
C<WriteMakefile>:
my $package = require '/path/to/Makefile.PL';
my $arguments = $package->arguments;
Note that C<require>-ing a file makes an entry in C<%INC> for exactly
that name. If you try to C<require> another file with the same name,
even from a different path, C<require> thinks it has already loaded
view all matches for this distribution
view release on metacpan or search on metacpan
; we almost certainly have a compiler available, because Syntax::Keyword::Try
; is used (via Feature::Compat::Try) on all but the most recent perl versions.
[DynamicPrereqs]
:version = 0.040
-condition = want_xs()
-body = requires('Cpanel::JSON::XS', '3.0223')
[GenerateFile / submodule_status]
filename = share/submodule_status
content_is_template = 1
content = {{
view all matches for this distribution
view release on metacpan or search on metacpan
Test::ReportPrereqs.include[8] = IO::Socket::SSL
Test::ReportPrereqs.include[9] = Net::SSLeay
[DynamicPrereqs]
:version = 0.018
-body = requires('URI', '1.62') if "$]" >= '5.021002';
-body = # see RT#103423
-body = requires('IO::Socket::IP', '0.31') if has_module('IO::Socket::INET6');
[Prereqs / TestRequires]
Test::RequiresInternet = 0
[Prereqs / DevelopRequires]
view all matches for this distribution
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
But, it's more interesting than that. You can load it with C<require>
and call C<arguments> to get the data structure it passes to
C<WriteMakefile>:
my $package = require '/path/to/Makefile.PL';
my $arguments = $package->arguments;
Note that C<require>-ing a file makes an entry in C<%INC> for exactly
that name. If you try to C<require> another file with the same name,
even from a different path, C<require> thinks it has already loaded
view all matches for this distribution
view release on metacpan or search on metacpan
[RecommendedPrereqs]
[AutoPrereqs]
[Prereqs / BuildRequires ]
-phase = build
-relationship = requires
ExtUtils::MakeMaker = 7.22
Module::Metadata = 1.000015
[Prereqs / DevelopRequires ]
-phase = develop
-relationship = requires
ExtUtils::Manifest = 1.68
Test::CPAN::Changes = 0
Test::Vars = 0.015
; [EnsurePrereqsInstalled]
; :version = 0.003
; type = requires
; type = recommends
[SecurityPolicy]
-policy = Individual
-policy_version = 0.10
view all matches for this distribution
view release on metacpan or search on metacpan
t/01-simple/chai.js view on Meta::CPAN
* @return {Object} exports
* @api public
*/
function require(path, parent, orig) {
var resolved = require.resolve(path);
// lookup failed
if (null == resolved) {
orig = orig || path;
parent = parent || 'root';
t/01-simple/chai.js view on Meta::CPAN
err.parent = parent;
err.require = true;
throw err;
}
var module = require.modules[resolved];
// perform real require()
// by invoking the module's
// registered function
if (!module._resolving && !module.exports) {
t/01-simple/chai.js view on Meta::CPAN
* @return {Function}
* @api private
*/
require.relative = function(parent) {
var p = require.normalize(parent, '..');
/**
* lastIndexOf helper.
*/
t/01-simple/chai.js view on Meta::CPAN
/*!
* Module dependencies
*/
var type = require('type-detect');
/*!
* Buffer.isBuffer browser shim
*/
var Buffer;
try { Buffer = require('buffer').Buffer; }
catch(ex) {
Buffer = {};
Buffer.isBuffer = function() { return false; }
}
t/01-simple/chai.js view on Meta::CPAN
return true;
}
});
require.register("chai/index.js", function(exports, require, module){
module.exports = require('./lib/chai');
});
require.register("chai/lib/chai.js", function(exports, require, module){
/*!
* chai
t/01-simple/chai.js view on Meta::CPAN
/*!
* Assertion Error
*/
exports.AssertionError = require('assertion-error');
/*!
* Utils for plugins (not exported)
*/
var util = require('./chai/utils');
/**
* # .use(function)
*
* Provides a way to extend the internals of Chai
t/01-simple/chai.js view on Meta::CPAN
/*!
* Primary `Assertion` prototype
*/
var assertion = require('./chai/assertion');
exports.use(assertion);
/*!
* Core Assertions
*/
var core = require('./chai/core/assertions');
exports.use(core);
/*!
* Expect interface
*/
var expect = require('./chai/interface/expect');
exports.use(expect);
/*!
* Should interface
*/
var should = require('./chai/interface/should');
exports.use(should);
/*!
* Assert interface
*/
var assert = require('./chai/interface/assert');
exports.use(assert);
});
require.register("chai/lib/chai/assertion.js", function(exports, require, module){
/*!
t/01-simple/chai.js view on Meta::CPAN
Object.defineProperty(Object.prototype, 'should',
{
set: function (value) {
// See https://github.com/chaijs/chai/issues/86: this makes
// `whatever.should = someValue` actually set `someValue`, which is
// especially useful for `global.should = require('chai').should()`.
//
// Note that we have to use [[DefineProperty]] instead of [[Put]]
// since otherwise we would trigger this very setter!
Object.defineProperty(this, 'should', {
value: value,
t/01-simple/chai.js view on Meta::CPAN
/*!
* Module dependencies
*/
var transferFlags = require('./transferFlags');
/*!
* Module variables
*/
t/01-simple/chai.js view on Meta::CPAN
/*!
* Module dependancies
*/
var flag = require('./flag')
, getActual = require('./getActual')
, inspect = require('./inspect')
, objDisplay = require('./objDisplay');
/**
* ### .getMessage(object, message, negateMessage)
*
* Construct the error message based on flags
t/01-simple/chai.js view on Meta::CPAN
/*!
* test utility
*/
exports.test = require('./test');
/*!
* type utility
*/
exports.type = require('./type');
/*!
* message utility
*/
exports.getMessage = require('./getMessage');
/*!
* actual utility
*/
exports.getActual = require('./getActual');
/*!
* Inspect util
*/
exports.inspect = require('./inspect');
/*!
* Object Display util
*/
exports.objDisplay = require('./objDisplay');
/*!
* Flag utility
*/
exports.flag = require('./flag');
/*!
* Flag transferring utility
*/
exports.transferFlags = require('./transferFlags');
/*!
* Deep equal utility
*/
exports.eql = require('deep-eql');
/*!
* Deep path value
*/
exports.getPathValue = require('./getPathValue');
/*!
* Function name
*/
exports.getName = require('./getName');
/*!
* add Property
*/
exports.addProperty = require('./addProperty');
/*!
* add Method
*/
exports.addMethod = require('./addMethod');
/*!
* overwrite Property
*/
exports.overwriteProperty = require('./overwriteProperty');
/*!
* overwrite Method
*/
exports.overwriteMethod = require('./overwriteMethod');
/*!
* Add a chainable method
*/
exports.addChainableMethod = require('./addChainableMethod');
});
require.register("chai/lib/chai/utils/inspect.js", function(exports, require, module){
// This is (almost) directly from Node.js utils
// https://github.com/joyent/node/blob/f8c335d0caf47f16d31413f89aa28eda3878e3aa/lib/util.js
var getName = require('./getName');
var getProperties = require('./getProperties');
var getEnumerableProperties = require('./getEnumerableProperties');
module.exports = inspect;
/**
* Echos the value of a value. Trys to print the value out
t/01-simple/chai.js view on Meta::CPAN
/*!
* Module dependancies
*/
var inspect = require('./inspect');
/**
* ### .objDisplay (object)
*
* Determines if an object or an array matches
t/01-simple/chai.js view on Meta::CPAN
/*!
* Module dependancies
*/
var flag = require('./flag');
/**
* # test(object, expression)
*
* Test and object for expression.
t/01-simple/chai.js view on Meta::CPAN
require.alias("chaijs-type-detect/lib/type.js", "chaijs-deep-eql/deps/type-detect/lib/type.js");
require.alias("chaijs-type-detect/lib/type.js", "chaijs-deep-eql/deps/type-detect/index.js");
require.alias("chaijs-type-detect/lib/type.js", "chaijs-type-detect/index.js");
require.alias("chaijs-deep-eql/lib/eql.js", "chaijs-deep-eql/index.js");
require.alias("chai/index.js", "chai/index.js");if (typeof exports == "object") {
module.exports = require("chai");
} else if (typeof define == "function" && define.amd) {
define(function(){ return require("chai"); });
} else {
this["chai"] = require("chai");
}})();
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Test/ModuleVersion.pm view on Meta::CPAN
# Module and version check
my $test_count = 0;
for my $m (@{$self->modules}) {
my ($module, $version) = @$m;
$code .= " # $module\n"
. " \$require_ok = require_ok('$module');\n"
. " \$version_ok = is(\$${module}::VERSION, '$version', '$module version: $version');\n"
. " push \@\$modules, ['$module' => '$version'];\n"
. " push \@\$failed, ['$module' => '$version'] unless \$require_ok && \$version_ok;\n\n";
$test_count += 2;
}
lib/Test/ModuleVersion.pm view on Meta::CPAN
$ perl mvt.pl
Test script C<t/module.t> is created.
...
$require_ok = require_ok('DBIx::Custom');
$version_ok = is($DBIx::Custom::VERSION, '0.2108', 'DBIx::Custom version: 0.2108');
$require_ok = require_ok('Validator::Custom');
$version_ok = is($Validator::Custom::VERSION, '0.1426', 'DBIx::Custom version: 0.1426');
...
=head2 Run version test
view all matches for this distribution
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
But, it's more interesting than that. You can load it with C<require>
and call C<arguments> to get the data structure it passes to
C<WriteMakefile>:
my $package = require '/path/to/Makefile.PL';
my $arguments = $package->arguments;
Note that C<require>-ing a file makes an entry in C<%INC> for exactly
that name. If you try to C<require> another file with the same name,
even from a different path, C<require> thinks it has already loaded
view all matches for this distribution
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
But, it's more interesting than that. You can load it with C<require>
and call C<arguments> to get the data structure it passes to
C<WriteMakefile>:
my $package = require '/path/to/Makefile.PL';
my $arguments = $package->arguments;
Note that C<require>-ing a file makes an entry in C<%INC> for exactly
that name. If you try to C<require> another file with the same name,
even from a different path, C<require> thinks it has already loaded
view all matches for this distribution
view release on metacpan or search on metacpan
remove = Time::Piece
remove = Time::Seconds
[EnsurePrereqsInstalled]
:version = 0.003
type = requires
type = recommends
[GitHub::Meta]
repo = git://github.com/robrwo/Test-Roo-DataDriven.git
view all matches for this distribution
view release on metacpan or search on metacpan
Test2 = 0.000042
Test2::Suite = 0.000028
[DynamicPrereqs]
-condition = $^O eq 'MSWin32'
-body = requires('AnyEvent::Open3::Simple', '0.85');
view all matches for this distribution
view release on metacpan or search on metacpan
t/Legacy/BEGIN_require_ok.t view on Meta::CPAN
use Test::More;
my $result;
BEGIN {
$result = require_ok("strict");
}
ok $result, "require_ok ran";
done_testing(2);
view all matches for this distribution
view release on metacpan or search on metacpan
eval "use CPAN::Meta";
plan(skip_all => "CPAN::Meta required for testing MYMETA.json") if $@;
my $mymeta = CPAN::Meta->load_file('MYMETA.json');
use Test::More;
my (@requirements) = required_modules($mymeta);
ok scalar(@requirements);
done_testing();
sub required_modules {
my $prereqs = $mymeta->effective_prereqs;
view all matches for this distribution
view release on metacpan or search on metacpan
[RemovePrereqs::Provided / @Author::KENTNL/RemovePrereqs::Provided]
[Prereqs / @Author::KENTNL/::Role::BundleDeps]
; auto_prereqs_skip = File::Find
-phase = develop
-relationship = requires
Dist::Zilla::Plugin::Author::KENTNL::CONTRIBUTING = 0.001003
Dist::Zilla::Plugin::Author::KENTNL::RecommendFixes = 0.004002
Dist::Zilla::Plugin::Author::KENTNL::TravisCI = 0.001002
Dist::Zilla::Plugin::Authority = 1.006
Dist::Zilla::Plugin::AutoPrereqs = 0
view all matches for this distribution
view release on metacpan or search on metacpan
Makefile.PL view on Meta::CPAN
But, it's more interesting than that. You can load it with C<require>
and call C<arguments> to get the data structure it passes to
C<WriteMakefile>:
my $package = require '/path/to/Makefile.PL';
my $arguments = $package->arguments;
Note that C<require>-ing a file makes an entry in C<%INC> for exactly
that name. If you try to C<require> another file with the same name,
even from a different path, C<require> thinks it has already loaded
view all matches for this distribution
view release on metacpan or search on metacpan
[RecommendedPrereqs]
[AutoPrereqs]
[Prereqs / BuildRequires ]
-phase = build
-relationship = requires
ExtUtils::MakeMaker = 7.22
Module::Metadata = 1.000015
[Prereqs / DevelopRequires ]
-phase = develop
-relationship = requires
ExtUtils::Manifest = 1.68
Test::CPAN::Changes = 0
Test::Vars = 0.015
Test::MixedScripts = v0.6.0
; [EnsurePrereqsInstalled]
; :version = 0.003
; type = requires
; type = recommends
[SecurityPolicy]
-policy = Individual
-policy_version = 0.10
view all matches for this distribution
view release on metacpan or search on metacpan
[Author::Plicease::Upload]
cpan = 1
[DynamicPrereqs]
-condition = ! eval { require FFI::CheckLIb; FFI::CheckLib::check_lib(lib => '*', verify => sub { $_[0] =~ /hunspell/ }, symbol => "Hunspell_create") }
-body = requires('Alien::Hunspell', 0)
[PruneFiles]
filename = t/spanish.aff
filename = t/spanish.dic
view all matches for this distribution
view release on metacpan or search on metacpan
[RecommendedPrereqs]
[AutoPrereqs]
[Prereqs / BuildRequires ]
-phase = build
-relationship = requires
ExtUtils::MakeMaker = 7.22
Module::Metadata = 1.000015
[Prereqs / DevelopRequires ]
-phase = develop
-relationship = requires
Devel::PPPort = 3.68
Test::LeakTrace = 0.17
Test::PPPort = 0.03
Test::Vars = 0.015
Test::CPAN::Changes = 0.500002
Test::XS::Check = 0
Test2::Require::AuthorTesting = 0
[EnsurePrereqsInstalled]
:version = 0.003
type = requires
type = recommends
[SecurityPolicy]
-policy = Individual
-policy_version = 0.10
view all matches for this distribution