Acme-W
view release on metacpan or search on metacpan
inc/Module/Install.pm view on Meta::CPAN
BEGIN {
# All Module::Install core packages now require synchronised versions.
# This will be used to ensure we don't accidentally load old or
# different versions of modules.
# This is not enforced yet, but will be some time in the next few
# releases once we can make sure it won't clash with custom
# Module::Install extensions.
$VERSION = '1.00';
# Storage for the pseudo-singleton
$MAIN = undef;
*inc::Module::Install::VERSION = *VERSION;
@inc::Module::Install::ISA = __PACKAGE__;
}
sub import {
my $class = shift;
my $self = $class->new(@_);
my $who = $self->_caller;
inc/Module/Install.pm view on Meta::CPAN
}
# Cloned from Params::Util::_CLASS
sub _CLASS ($) {
(
defined $_[0]
and
! ref $_[0]
and
$_[0] =~ m/^[^\W\d]\w*(?:::\w+)*\z/s
) ? $_[0] : undef;
}
1;
# Copyright 2008 - 2010 Adam Kennedy.
inc/Module/Install/Makefile.pm view on Meta::CPAN
foreach my $bundle (@{ $self->bundles }) {
my ($mod_name, $dist_dir) = @$bundle;
delete $prereq->{$mod_name};
$dist_dir = File::Basename::basename($dist_dir); # dir for building this module
if (not exists $processed{$dist_dir}) {
if (-d $dist_dir) {
# List as sub-directory to be processed by make
push @$subdirs, $dist_dir;
}
# Else do nothing: the module is already present on the system
$processed{$dist_dir} = undef;
}
}
}
unless ( $self->makemaker('6.55_03') ) {
%$prereq = (%$prereq,%$build_prereq);
delete $args->{BUILD_REQUIRES};
}
if ( my $perl_version = $self->perl_version ) {
inc/Module/Install/Metadata.pm view on Meta::CPAN
artistic_2 => 'http://opensource.org/licenses/artistic-license-2.0.php',
lgpl => 'http://opensource.org/licenses/lgpl-license.php',
lgpl2 => 'http://opensource.org/licenses/lgpl-2.1.php',
lgpl3 => 'http://opensource.org/licenses/lgpl-3.0.html',
bsd => 'http://opensource.org/licenses/bsd-license.php',
gpl => 'http://opensource.org/licenses/gpl-license.php',
gpl2 => 'http://opensource.org/licenses/gpl-2.0.php',
gpl3 => 'http://opensource.org/licenses/gpl-3.0.html',
mit => 'http://opensource.org/licenses/mit-license.php',
mozilla => 'http://opensource.org/licenses/mozilla1.1.php',
open_source => undef,
unrestricted => undef,
restrictive => undef,
unknown => undef,
);
sub license {
my $self = shift;
return $self->{values}->{license} unless @_;
my $license = shift or die(
'Did not provide a value to license()'
);
$license = __extract_license($license) || lc $license;
$self->{values}->{license} = $license;
inc/Module/Install/Metadata.pm view on Meta::CPAN
Module::Install::_write(
'MYMETA.json',
JSON->new->pretty(1)->canonical->encode($meta),
);
}
sub _write_mymeta_data {
my $self = shift;
# If there's no existing META.yml there is nothing we can do
return undef unless -f 'META.yml';
# We need Parse::CPAN::Meta to load the file
unless ( eval { require Parse::CPAN::Meta; 1; } ) {
return undef;
}
# Merge the perl version into the dependencies
my $val = $self->Meta->{values};
my $perl = delete $val->{perl_version};
if ( $perl ) {
$val->{requires} ||= [];
my $requires = $val->{requires};
# Canonize to three-dot version after Perl 5.6
inc/Test/More.pm view on Meta::CPAN
sub _eval {
my( $code, @args ) = @_;
# Work around oddities surrounding resetting of $@ by immediately
# storing it.
my( $sigdie, $eval_result, $eval_error );
{
local( $@, $!, $SIG{__DIE__} ); # isolate eval
$eval_result = eval $code; ## no critic (BuiltinFunctions::ProhibitStringyEval)
$eval_error = $@;
$sigdie = $SIG{__DIE__} || undef;
}
# make sure that $code got a chance to set $SIG{__DIE__}
$SIG{__DIE__} = $sigdie if defined $sigdie;
return( $eval_result, $eval_error );
}
#line 875
sub require_ok ($) {
inc/Test/More.pm view on Meta::CPAN
my @vals = @{ $Stack[-1]{vals} }[ 0, 1 ];
my @vars = ();
( $vars[0] = $var ) =~ s/\$FOO/ \$got/;
( $vars[1] = $var ) =~ s/\$FOO/\$expected/;
my $out = "Structures begin differing at:\n";
foreach my $idx ( 0 .. $#vals ) {
my $val = $vals[$idx];
$vals[$idx]
= !defined $val ? 'undef'
: _dne($val) ? "Does not exist"
: ref $val ? "$val"
: "'$val'";
}
$out .= "$vars[0] = $vals[0]\n";
$out .= "$vars[1] = $vals[1]\n";
$out =~ s/^/ /msg;
return $out;
inc/Test/More.pm view on Meta::CPAN
my $tb = Test::More->builder;
my $ok = 0;
# Effectively turn %Refs_Seen into a stack. This avoids picking up
# the same referenced used twice (such as [\$a, \$a]) to be considered
# circular.
local %Refs_Seen = %Refs_Seen;
{
# Quiet uninitialized value warnings when comparing undefs.
no warnings 'uninitialized';
$tb->_unoverload_str( \$e1, \$e2 );
# Either they're both references or both not.
my $same_ref = !( !ref $e1 xor !ref $e2 );
my $not_ref = ( !ref $e1 and !ref $e2 );
if( defined $e1 xor defined $e2 ) {
$ok = 0;
lib/Acme/W.pm view on Meta::CPAN
s/([^\$\w\d])elseif([^\w\d])/$1wwwWwwW$2/g;
s/([^\$\w\d])delete([^\w\d])/$1wwwWwww$2/g;
s/([^\$\w\d])chroot([^\w\d])/$1wwwwWWW$2/g;
s/([^\$\w\d])caller([^\w\d])/$1wwwwWWw$2/g;
s/([^\$\w\d])accept([^\w\d])/$1wwwwWwW$2/g;
s/([^\$\w\d])write([^\w\d])/$1wwwwWww$2/g;
s/([^\$\w\d])while([^\w\d])/$1wwwwwWW$2/g;
s/([^\$\w\d])utime([^\w\d])/$1wwwwwWw$2/g;
s/([^\$\w\d])until([^\w\d])/$1wwwwwwW$2/g;
s/([^\$\w\d])untie([^\w\d])/$1wwwwwww$2/g;
s/([^\$\w\d])undef([^\w\d])/$1WWWWWW$2/g;
s/([^\$\w\d])umask([^\w\d])/$1WWWWWw$2/g;
s/([^\$\w\d])times([^\w\d])/$1WWWWwW$2/g;
s/([^\$\w\d])study([^\w\d])/$1WWWWww$2/g;
s/([^\$\w\d])state([^\w\d])/$1WWWwWW$2/g;
s/([^\$\w\d])srand([^\w\d])/$1WWWwWw$2/g;
s/([^\$\w\d])split([^\w\d])/$1WWWwwW$2/g;
s/([^\$\w\d])sleep([^\w\d])/$1WWWwww$2/g;
s/([^\$\w\d])shift([^\w\d])/$1WWwWWW$2/g;
s/([^\$\w\d])semop([^\w\d])/$1WWwWWw$2/g;
s/([^\$\w\d])rmdir([^\w\d])/$1WWwWwW$2/g;
lib/Acme/W.pm view on Meta::CPAN
s/([^\$\w\d])wwwWwwW([^\w\d])/$1elseif$2/g;
s/([^\$\w\d])wwwWwww([^\w\d])/$1delete$2/g;
s/([^\$\w\d])wwwwWWW([^\w\d])/$1chroot$2/g;
s/([^\$\w\d])wwwwWWw([^\w\d])/$1caller$2/g;
s/([^\$\w\d])wwwwWwW([^\w\d])/$1accept$2/g;
s/([^\$\w\d])wwwwWww([^\w\d])/$1write$2/g;
s/([^\$\w\d])wwwwwWW([^\w\d])/$1while$2/g;
s/([^\$\w\d])wwwwwWw([^\w\d])/$1utime$2/g;
s/([^\$\w\d])wwwwwwW([^\w\d])/$1until$2/g;
s/([^\$\w\d])wwwwwww([^\w\d])/$1untie$2/g;
s/([^\$\w\d])WWWWWW([^\w\d])/$1undef$2/g;
s/([^\$\w\d])WWWWWw([^\w\d])/$1umask$2/g;
s/([^\$\w\d])WWWWwW([^\w\d])/$1times$2/g;
s/([^\$\w\d])WWWWww([^\w\d])/$1study$2/g;
s/([^\$\w\d])WWWwWW([^\w\d])/$1state$2/g;
s/([^\$\w\d])WWWwWw([^\w\d])/$1srand$2/g;
s/([^\$\w\d])WWWwwW([^\w\d])/$1split$2/g;
s/([^\$\w\d])WWWwww([^\w\d])/$1sleep$2/g;
s/([^\$\w\d])WWwWWW([^\w\d])/$1shift$2/g;
s/([^\$\w\d])WWwWWw([^\w\d])/$1semop$2/g;
s/([^\$\w\d])WWwWwW([^\w\d])/$1rmdir$2/g;
( run in 1.963 second using v1.01-cache-2.11-cpan-d80b1682f3f )