Acme-CPANAuthors-MBTI
view release on metacpan or search on metacpan
b) cause the whole of any work that you distribute or publish, that
in whole or in part contains the Program or any part thereof, either
with or without modifications, to be licensed at no charge to all
third parties under the terms of this General Public License (except
that you may choose to grant warranty protection to some or all
third parties, at your option).
c) If the modified program normally reads commands interactively when
run, you must cause it, when started running for such interactive use
in the simplest and most usual way, to print or display an
announcement including an appropriate copyright notice and a notice
that there is no warranty (or else, saying that you provide a
warranty) and that users may redistribute the program under these
conditions, and telling the user how to view a copy of this General
Public License.
d) You may charge a fee for the physical act of transferring a
copy, and you may at your option offer warranty protection in
exchange for a fee.
inc/expand_author_list.pm view on Meta::CPAN
use Math::Random::MT;
sub tempdir { return state $tempdir = Path::Tiny->tempdir() }
sub http { return state $http = HTTP::Tiny->new() }
sub json { return state $json = JSON::MaybeXS->new( utf8 => 0 ) }
sub rng {
return state $rng = Math::Random::MT->new( map { unpack 'L', $_ } q[Kent], q[ is ], q[a du], q[ll b], q[oy ] );
}
sub dolog { *STDERR->print("[32m$_[0][0m\n") }
sub mirror_whois {
my ($filename) = @_;
my $out = tempdir()->child($filename);
dolog("Fetching $filename to $out");
my $response = http()->mirror( 'http://www.cpan.org/authors/' . $filename, $out );
die "failed to fetch $filename: $response->{status} $response->{reason}\n"
if not $response->{success} and $response->{status} ne '304';
return "$out";
}
maint/perlcritic.rc.gen.pl view on Meta::CPAN
#$bundle->remove_policy('ErrorHandling::RequireCarping');
#$bundle->remove_policy('NamingConventions::Capitalization');
my $inf = $bundle->actionlist->get_inflated;
my $config = $inf->apply_config;
{
my $rcfile = path('./perlcritic.rc')->openw_utf8;
$rcfile->print( $config->as_ini, "\n" );
close $rcfile or croak 'Something fubared closing perlcritic.rc';
}
my $deps = $inf->own_deps;
{
my $target = path('./misc');
$target->mkpath if not $target->is_dir;
my $depsfile = $target->child('perlcritic.deps')->openw_utf8;
for my $key ( sort keys %{$deps} ) {
$depsfile->printf( "%s~%s\n", $key, $deps->{$key} );
*STDERR->printf( "%s => %s\n", $key, $deps->{$key} );
}
close $depsfile or carp 'Something fubared closing perlcritic.deps';
}
t/00-compile/lib_Acme_CPANAuthors_MBTI_INTP_pm.t view on Meta::CPAN
# using by Dist::Zilla::Plugin::Test::Compile::PerFile ( @Author::KENTNL/Test::Compile::PerFile ) version 0.004000
# with template 02-raw-require.t.tpl
my $file = "Acme/CPANAuthors/MBTI/INTP.pm";
my $err;
{
local $@;
eval { require $file; 1 } or $err = $@;
};
if( not defined $err ) {
print "1..1\nok 1 - require ${file}\n";
exit 0;
}
print "1..1\nnot ok 1 - require ${file}\n";
print STDERR "# ${_}\n" for split /\n/, $err;
exit 1;
t/00-compile/lib_Acme_CPANAuthors_MBTI_pm.t view on Meta::CPAN
# using by Dist::Zilla::Plugin::Test::Compile::PerFile ( @Author::KENTNL/Test::Compile::PerFile ) version 0.004000
# with template 02-raw-require.t.tpl
my $file = "Acme/CPANAuthors/MBTI.pm";
my $err;
{
local $@;
eval { require $file; 1 } or $err = $@;
};
if( not defined $err ) {
print "1..1\nok 1 - require ${file}\n";
exit 0;
}
print "1..1\nnot ok 1 - require ${file}\n";
print STDERR "# ${_}\n" for split /\n/, $err;
exit 1;
t/00-report-prereqs.t view on Meta::CPAN
if ( @reports ) {
push @full_reports, "=== $title ===\n\n";
my $ml = _max( map { length $_->[0] } @reports );
my $wl = _max( map { length $_->[1] } @reports );
my $hl = _max( map { length $_->[2] } @reports );
if ($type eq 'modules') {
splice @reports, 1, 0, ["-" x $ml, "", "-" x $hl];
push @full_reports, map { sprintf(" %*s %*s\n", -$ml, $_->[0], $hl, $_->[2]) } @reports;
}
else {
splice @reports, 1, 0, ["-" x $ml, "-" x $wl, "-" x $hl];
push @full_reports, map { sprintf(" %*s %*s %*s\n", -$ml, $_->[0], $wl, $_->[1], $hl, $_->[2]) } @reports;
}
push @full_reports, "\n";
}
}
}
if ( @full_reports ) {
diag "\nVersions for all modules listed in $source (including optional ones):\n\n", @full_reports;
}
( run in 0.623 second using v1.01-cache-2.11-cpan-de7293f3b23 )