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
view release on metacpan or search on metacpan
[RecommendedPrereqs]
[AutoPrereqs]
[EnsurePrereqsInstalled]
:version = 0.003
type = requires
type = recommends
[GitHub::Meta]
repo = git://github.com/robrwo/perl-Text-Schmutz.git
view all matches for this distribution
view release on metacpan or search on metacpan
share/datatables-1.10.22/datatables.js view on Meta::CPAN
if ( ! root ) {
root = window;
}
if ( ! $ || ! $.fn.dataTable ) {
$ = require('datatables.net')(root, $).$;
}
return factory( $, root, root.document );
};
}
share/datatables-1.10.22/datatables.js view on Meta::CPAN
if ( ! root ) {
root = window;
}
if ( ! $ || ! $.fn.dataTable ) {
$ = require('datatables.net')(root, $).$;
}
if ( ! $.fn.dataTable.Buttons ) {
require('datatables.net-buttons')(root, $);
}
share/datatables-1.10.22/datatables.js view on Meta::CPAN
if ( ! root ) {
root = window;
}
if ( ! $ || ! $.fn.dataTable ) {
$ = require('datatables.net')(root, $).$;
}
if ( ! $.fn.dataTable.Buttons ) {
require('datatables.net-buttons')(root, $);
}
share/datatables-1.10.22/datatables.js view on Meta::CPAN
if ( ! root ) {
root = window;
}
if ( ! $ || ! $.fn.dataTable ) {
$ = require('datatables.net')(root, $).$;
}
return factory( $, root, root.document );
};
}
share/datatables-1.10.22/datatables.js view on Meta::CPAN
if ( ! root ) {
root = window;
}
if ( ! $ || ! $.fn.dataTable ) {
$ = require('datatables.net')(root, $).$;
}
return factory( $, root, root.document );
};
}
share/datatables-1.10.22/datatables.js view on Meta::CPAN
if ( ! root ) {
root = window;
}
if ( ! $ || ! $.fn.dataTable ) {
$ = require('datatables.net')(root, $).$;
}
return factory( $, root, root.document );
};
}
share/datatables-1.10.22/datatables.js view on Meta::CPAN
if ( ! root ) {
root = window;
}
if ( ! $ || ! $.fn.dataTable ) {
$ = require('datatables.net')(root, $).$;
}
return factory( $, root, root.document );
};
}
share/datatables-1.10.22/datatables.js view on Meta::CPAN
module.exports = function (root, $) {
if (!root) {
root = window;
}
if (!$ || !$.fn.dataTable) {
$ = require('datatables.net')(root, $).$;
}
return factory($, root, root.document);
};
}
else {
share/datatables-1.10.22/datatables.js view on Meta::CPAN
module.exports = function (root, $) {
if (!root) {
root = window;
}
if (!$ || !$.fn.dataTable) {
$ = require('datatables.net-dt')(root, $).$;
}
if (!$.fn.dataTable.searchBuilder) {
require('datatables.net-searchbuilder')(root, $);
}
return factory($, root, root.document);
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
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
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
- tied hashes arrays or scalars
- weak reference (See weaken function of =Scalar::Util= for details)
This module was tested with perl5.8.2 and Tk 804.025 (beta). But
should work with older versions of perl (> 5.6.1) or Tk. On the other
hand, =data-viewer= requires Perl 5.16.
See the embedded documentation in the module for more details.
*Note* that test program (in the 't' directory) can be run interactively
this way :
view all matches for this distribution
view release on metacpan or search on metacpan
pTk/mTk/generic/tkGrid.c view on Meta::CPAN
for (slavePtr = layoutPtr[slot].binNextPtr; slavePtr != NULL;
slavePtr = slavePtr->binNextPtr) {
int span = (slotType == COLUMN) ? slavePtr->numCols : slavePtr->numRows;
int required = slavePtr->size + layoutPtr[slot - span].minOffset;
if (required > layoutPtr[slot].minOffset) {
layoutPtr[slot].minOffset = required;
}
}
offset = layoutPtr[slot].minOffset;
}
pTk/mTk/generic/tkGrid.c view on Meta::CPAN
slavePtr = slavePtr->binNextPtr) {
int span = (slotType == COLUMN) ? slavePtr->numCols : slavePtr->numRows;
int require = offset - slavePtr->size;
int startSlot = slot - span;
if (startSlot >=0 && require < layoutPtr[startSlot].maxOffset) {
layoutPtr[startSlot].maxOffset = require;
}
}
offset -= layoutPtr[slot].minSize;
slot--;
if (layoutPtr[slot].maxOffset < offset) {
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Treex/Core/Resource.pm view on Meta::CPAN
version 2.20210102
=head1 SYNOPSIS
use Treex::Core::Resource qw(require_file_from_share);
my $path = require_file_from_share('relative/path/to/file/within/Treex/Share');
open my $MODEL, '<', $path or log_fatal($!);
# or
my $path = require_file_from_share('./relative/path/from/the/current/directory');
my $path = require_file_from_share('/absolute/path');
=head1 DESCRIPTION
This module provides access to shared resources (e.g. models). First it tries to locate it on local computer.
If not found, download from server (L<http://ufallab.ms.mff.cuni.cz/>).
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Treex/Block/W2A/EN/FixTagsAfterParse.pm view on Meta::CPAN
return;
}
sub process_start {
my $self = shift;
my $file_path = require_file_from_share($TAGS_FILE);
open my $IN, '<:encoding(utf8)', $file_path or log_fatal $!;
while (<$IN>) {
chomp;
my ( $form, @tags ) = split /\t/, $_;
foreach my $tag (@tags) {
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Treex/Tool/Parser/JDEPP.pm view on Meta::CPAN
sub BUILD {
my ($self) = @_;
# TODO find architecture independent solution
my $bin_path = require_file_from_share(
'installed_tools/parser/jdepp/bin/jdepp',
ref($self)
);
#TODO: fix setting up of the model_dir via Treex (see W2A::JA::ParseJDEPP)
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Treex/Block/W2A/ParseMSTperl.pm view on Meta::CPAN
$parser->load_model($model_file);
if ( $self->additional_model_from_share ) {
if ( $config->use_pmi) {
my $filename = $self->model_dir . '/' . $config->pmi_model_file;
my $loaded_filename = require_file_from_share( $filename, ref($self) );
$config->pmi_model_file($loaded_filename);
}
if ( $config->use_cprob) {
my $filename = $self->model_dir . '/' . $config->cprob_model_file;
my $loaded_filename = require_file_from_share( $filename, ref($self) );
$config->cprob_model_file($loaded_filename);
}
}
# filenames in config have been changed -- can now load
view all matches for this distribution
view release on metacpan or search on metacpan
share/static/index.js.map view on Meta::CPAN
{"version":3,"sources":["webpack:///index.js","webpack:///webpack/bootstrap 5eb2d13f2f5004dfb730","webpack:///./~/css-loader/lib/css-base.js","webpack:///./~/style-loader/addStyles.js","webpack:///./~/d3/d3.js","webpack:///./~/jquery/dist/jquery.js",...
view all matches for this distribution
view release on metacpan or search on metacpan
[Prereqs / TestRequires]
Moo = 1.006000
[EnsurePrereqsInstalled]
:version = 0.003
type = requires
type = recommends
[GitHub::Meta]
repo = git://github.com/robrwo/Types-Const.git
view all matches for this distribution
view release on metacpan or search on metacpan
[Prereqs]
version = 0.77
[EnsurePrereqsInstalled]
:version = 0.003
type = requires
type = recommends
[GitHub::Meta]
repo = git://github.com/robrwo/Types-SQL.git
view all matches for this distribution
view release on metacpan or search on metacpan
script/nav_data_dump.js view on Meta::CPAN
*/
var packet = "88776655d004800f346f000001000000000094000000020059000000bf4ccccd00209ec400941a47000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000030000000e4f...
var packet_buf = new Buffer( packet, "hex" );
var parseNavData = require( "parseNavdata" );
var navdata = parseNavData( packet_buf );
console.log( navdata );
view all matches for this distribution
view release on metacpan or search on metacpan
scripts/nav_data_dump.js view on Meta::CPAN
*
*/
var packet = "88776655f504800fb51700000100000000009400000003004c0000000000b8c20000dcc30030654616020000c73d86431d4143c300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003000000e53b...
var packet_buf = new Buffer( packet, "hex" );
var parseNavData = require( "parseNavdata" );
var navdata = parseNavData( packet_buf );
console.log( navdata );
view all matches for this distribution