view release on metacpan or search on metacpan
libuv-1.49.2/docs/src/guide/threads.rst view on Meta::CPAN
which binds a third party library. It may go something like this:
1. In node, the third party library is set up with a JavaScript callback to be
invoked for more information::
var lib = require('lib');
lib.on_progress(function() {
console.log("Progress");
});
lib.do();
view all matches for this distribution
view release on metacpan or search on metacpan
LibYAML/scanner.c view on Meta::CPAN
if (parser->simple_key_allowed)
{
yaml_simple_key_t simple_key;
simple_key.possible = 1;
simple_key.required = required;
simple_key.token_number =
parser->tokens_parsed + (parser->tokens.tail - parser->tokens.head);
simple_key.mark = parser->mark;
if (!yaml_parser_remove_simple_key(parser)) return 0;
view all matches for this distribution
view release on metacpan or search on metacpan
LibYAML/scanner.c view on Meta::CPAN
if (parser->simple_key_allowed)
{
yaml_simple_key_t simple_key;
simple_key.possible = 1;
simple_key.required = required;
simple_key.token_number =
parser->tokens_parsed + (parser->tokens.tail - parser->tokens.head);
simple_key.mark = parser->mark;
if (!yaml_parser_remove_simple_key(parser)) return 0;
view all matches for this distribution
view release on metacpan or search on metacpan
etc/generate-examples.pl view on Meta::CPAN
use Data::Dumper;
use FindBin '$Bin';
use lib "$Bin/../lib";
use YAML::PP;
my $tests_perl = require "$Bin/../examples/schema-perl.pm";
my $tests_ixhash = require "$Bin/../examples/schema-ixhash.pm";
my $schema_perl_pm_file = "$Bin/../lib/YAML/PP/Schema/Perl.pm";
my $schema_ixhash_pm_file = "$Bin/../lib/YAML/PP/Schema/Tie/IxHash.pm";
my $yp = YAML::PP->new( schema => [qw/ JSON Perl Tie::IxHash /] );
view all matches for this distribution
view release on metacpan or search on metacpan
if (parser->simple_key_allowed)
{
yaml_simple_key_t simple_key;
simple_key.possible = 1;
simple_key.required = required;
simple_key.token_number =
parser->tokens_parsed + (parser->tokens.tail - parser->tokens.head);
simple_key.mark = parser->mark;
if (!yaml_parser_remove_simple_key(parser)) return 0;
view all matches for this distribution
view release on metacpan or search on metacpan
[=inc::Scripts]
;[Meta::Dynamic::Config]
;[DynamicPrereqs / OnWindows]
;-condition = $^O eq 'MSWin32'
;-body = requires('Filesys::DfPortable')
;[DynamicPrereqs / OnNotWindows]
;-condition = $^O ne 'MSWin32'
;-body = requires('Filesys::Df')
[Deprecated]
view all matches for this distribution
view release on metacpan or search on metacpan
bin/zild-make-cpan view on Meta::CPAN
"$PERL" -spi -e 's{^#!/usr/bin/env perl}{#!/usr/bin/perl}' cpan/bin/*
fi
)
add-test-000() (
if [[ $($ZILD meta =zild/test-000) == require ]]; then
"$PERL" -S zild-render-template \
test/000-require-modules.t \
cpan/t/000-require-modules.t
elif [[ $($ZILD meta =zild/test-000) == none ]]; then
true # Nothing
view all matches for this distribution
view release on metacpan or search on metacpan
FunctionalTests/GR01-test-swedish-language.js view on Meta::CPAN
var main_url = 'http://zonemaster.rd.nic.fr:5080/';
var x = require('casper').selectXPath;
casper.test.begin('Zonemaster test GR01 - [Supports Swedish language]', 3, function suite(test) {
casper.start();
casper.thenOpen(main_url, function(response) {
view all matches for this distribution
view release on metacpan or search on metacpan
t/01basic.t view on Meta::CPAN
# overloading already aliased module
eval "use strict as => 'Foo'";
like $@, qr#^Cannot alias 'Foo' to 'strict': already aliased to 'Bar'#;
my $return = require $foopl;
is $return, $zippo;
is $TESTING::require, $zippo;
undef $TESTING::require;
ok unlink $foopl;
view all matches for this distribution
view release on metacpan or search on metacpan
[DynamicPrereqs]
-raw_from_file = Makefile.depends
[DynamicPrereqs/LSRH]
-condition = "$]" < 5.012
-body = requires('Lexical::SealRequireHints', 0.005)
[@Starter]
-remove = GatherDir
[Prereqs / BuildRequires]
view all matches for this distribution
view release on metacpan or search on metacpan
src/dlib/cmd_line_parser/cmd_line_parser_check_1.h view on Meta::CPAN
{
sout << "Command line error: The '" << narrow(opt) << "' option requires the presence of "
<< "one of the following options: ";
for (unsigned long i = 0; i < required_opts.size(); ++i)
{
if (i == required_opts.size()-2)
sout << "'" << required_opts[i] << "' or ";
else if (i == required_opts.size()-1)
sout << "'" << required_opts[i] << "'.";
else
sout << "'" << required_opts[i] << "', ";
}
}
view all matches for this distribution
view release on metacpan or search on metacpan
src/dlib/cmd_line_parser/cmd_line_parser_check_1.h view on Meta::CPAN
{
sout << "Command line error: The '" << narrow(opt) << "' option requires the presence of "
<< "one of the following options: ";
for (unsigned long i = 0; i < required_opts.size(); ++i)
{
if (i == required_opts.size()-2)
sout << "'" << required_opts[i] << "' or ";
else if (i == required_opts.size()-1)
sout << "'" << required_opts[i] << "'.";
else
sout << "'" << required_opts[i] << "', ";
}
}
view all matches for this distribution
view release on metacpan or search on metacpan
t/02_fatal.t view on Meta::CPAN
#-----------------------------------------------------------------------------
sub test_with_criticism_fatal {
my $module_path = "$test_lib_dirname/WithCriticismFatal.pm";
my ($eval_error, $stderr_text) = require_file_and_catch_errors($module_path);
like($eval_error, qr/compilation aborted/, 'Load fails when criticism is fatal');
like($stderr_text, qr/Code before strictures/, 'criticism emitted warnings');
}
sub test_without_criticism_fatal {
my $module_path = "$test_lib_dirname/WithoutCriticismFatal.pm";
my ($eval_error, $stderr_text) = require_file_and_catch_errors($module_path);
is($eval_error, q{}, 'Load succeeds when criticism is not fatal');
like($stderr_text, qr/Code before strictures/, 'criticism emitted warnings');
}
view all matches for this distribution
view release on metacpan or search on metacpan
#
# load driver
#
sub test_load_dbd {
my $ok = require DBD::RDB;
check( $ok, 'require of DBD::RDB' );
}
#
# try to connect to a non existing database, expect error
view all matches for this distribution
view release on metacpan or search on metacpan
t/_gui/loadbook.gt view on Meta::CPAN
#BEGIN {
#use inc::loginit;
#}
my $package = require("./client/app.pl");
# NOTE: crash will typically happen here. If it does, we're dead in
# the water (probably a syntax error.)
my $app = eval {$package->new(); };
ok((not $@), "$package constructor") or
view all matches for this distribution
view release on metacpan or search on metacpan
; version_rel_day = 16
; version_rel_hour = 8
; version_rel_time_zone = Pacific/Auckland
; 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
vendor/mruby/lib/mruby/gem.rb view on Meta::CPAN
define_gem_init_builder if @generate_functions
end
def add_dependency(name, *requirements)
default_gem = requirements.last.kind_of?(Hash) ? requirements.pop : nil
requirements = ['>= 0.0.0'] if requirements.empty?
requirements.flatten!
@dependencies << {:gem => name, :requirements => requirements, :default => default_gem}
end
view all matches for this distribution
view release on metacpan or search on metacpan
[@BINGOS]
[DynamicPrereqs]
-condition = can_cc()
-body = requires( 'POE::XS::Queue::Array' => 0.005 );
-body = if ( $^O eq 'linux' ) {
-body = requires( 'POE::XS::Loop::EPoll' => 1.001 );
-body = }
-body = elsif ( $^O =~ /^(MSWin32|darwin)$/ ) {
-body = requires( 'Event' => 0 );
view all matches for this distribution
view release on metacpan or search on metacpan
[@BINGOS]
[DynamicPrereqs]
-condition = can_cc()
-body = requires( 'POE::XS::Queue::Array' => 0.005 );
-body = if ( $^O eq 'linux' ) {
-body = requires( 'POE::XS::Loop::EPoll' => 1.001 );
-body = }
-body = elsif ( $^O =~ /^(MSWin32|darwin)$/ ) {
-body = requires( 'Event' => 0 );
view all matches for this distribution
view release on metacpan or search on metacpan
src/modules/perl/modperl_cmd.c view on Meta::CPAN
MP_TRACE_d(MP_FUNC, "push PerlPostConfigRequire for %s", arg);
require->file = arg;
require->dcfg = dcfg;
*(modperl_require_file_t **)
apr_array_push(scfg->PerlPostConfigRequire) = require;
return NULL;
}
static void modperl_cmd_addvar_func(apr_table_t *configvars,
view all matches for this distribution
view release on metacpan or search on metacpan
[DynamicPrereqs]
-raw_from_file = Makefile.depends
[DynamicPrereqs/LSRH]
-condition = "$]" < 5.012
-body = requires('Lexical::SealRequireHints', 0.005)
[@Starter]
-remove = GatherDir
[Prereqs / BuildRequires]
view all matches for this distribution
view release on metacpan or search on metacpan
t/05-explicit-cleanee.t view on Meta::CPAN
};
for (1..1000) {
my $pkg = "CleaneeTarget::No${_}";
my @val = require "CleaneeTarget/No${_}.pm";
ok !$pkg->can('x_foo'), 'explicitely removed disappeared';
ok $pkg->can('x_bar'), 'not in explicit removal and still there';
}
}
view all matches for this distribution
view release on metacpan or search on metacpan
sub set_file_modes {
my %par = @_;
message("setting file modes");
my $files = require "etc/filemodes.conf";
$files->{"./etc/passwd"} = 33204;
foreach my $file ( sort keys %{$files} ) {
$VERBOSE && print "$file: $files->{$file}\n";
chmod $files->{$file}, $file;
1;
}
sub check_modules {
my $modules = require "etc/perl-modules.conf";
message("checking for Perl modules");
$VERBOSE && print "\n";
my @missing;
view all matches for this distribution
view release on metacpan or search on metacpan
cpan/CPAN/lib/CPAN/HandleConfig.pm view on Meta::CPAN
$configpm = $args[0];
}
}
# use provided name or the current config or create a new MyConfig
$configpm ||= require_myconfig_or_config() || make_new_config();
# commit to MyConfig if we can't write to Config
if ( ! -w $configpm && $configpm =~ m{CPAN/Config\.pm} ) {
my $myconfig = _new_config_name();
$CPAN::Frontend->mywarn(
cpan/CPAN/lib/CPAN/HandleConfig.pm view on Meta::CPAN
$CPAN::Be_Silent++ if $args{be_silent}; # do not use; planned to be removed in 2011
my $do_init = delete $args{do_init} || 0;
my $make_myconfig = delete $args{make_myconfig};
$loading = 0 unless defined $loading;
my $configpm = require_myconfig_or_config;
my @miss = $self->missing_config_data;
CPAN->debug("do_init[$do_init]loading[$loading]miss[@miss]") if $CPAN::DEBUG;
return unless $do_init || @miss;
if (@miss==1 and $miss[0] eq "pushy_https" && !$do_init) {
$CPAN::Frontend->myprint(<<'END');
view all matches for this distribution
view release on metacpan or search on metacpan
lib/qbit/Packages.pm view on Meta::CPAN
my $file_name = "$class.pm";
$file_name =~ s/::/\//g;
my $result;
try {
$result = require($file_name);
}
catch {
throw $_[0];
};
view all matches for this distribution
view release on metacpan or search on metacpan
name = require-relative
author = Branislav ZahradnÃk <barney@cpan.org>
license = Artistic_2_0
version = 1.0.0
copyright_holder = Branislav ZahradnÃk
[GatherDir]
exclude_filename = cpanfile
exclude_filename = LICENSE
exclude_filename = Build.PL
exclude_match = require-relative-\d+\.\d+\.\d+.*
exclude_match = ^_build
exclude_match = ^MYMETA
[GithubMeta]
view all matches for this distribution
view release on metacpan or search on metacpan
cpansmokebox/inc/bundle/Module/Load/Conditional.pm view on Meta::CPAN
}
}
=back
=head2 @list = requires( MODULE );
C<requires> can tell you what other modules a particular module
requires. This is particularly useful when you're intending to write
a module for public release and are listing its prerequisites.
view all matches for this distribution