if ( env_true('AUTHOR_TESTING') or env_true('RELEASE_TESTING') ) {
my $prereqs = parse_meta_json()->effective_prereqs;
my $reqs = $prereqs->requirements_for( 'develop', 'requires' );
my
};
require Scalar::Util;
if ( Scalar::Util::blessed($d) and Scalar::Util::blessed($d) eq 'JSON::XS::Boolean' ) {
$properties{$name} = ( $d ? 1 : undef );
return;
}
if ( $d
tegenerator->generate(
propertydata => ... Property definition from JSON ...
propertyname => ... Property name from JSON ...
index => ... Name of current index ...
typename
__mapping_data {
my $self = shift;
my $content = $self->_mapping_content;
require JSON;
return JSON->new()->utf8(1)->decode($content);
}
## no critic ( RequireArgUnpacking ProhibitBuiltin
ontent of the URL at C<mapping_url>
=head2 _build__mapping_data
returns the decoded data from C<JSON> stored in C<_mapping_content>
=head1 AUTHOR
Kent Fredric <kentfredric@gmail.com>
=head1 COPYR
= cwd();
chdir '/tmp/cpan-fixes';
cpanm(@params);
chdir $cwd;
}
sub parse_meta_json {
$_[0] ||= 'META.json';
require CPAN::Meta;
return CPAN::Meta->load_file( $_[0] );
}
sub capture_stdo
ixes;
$caller_stash->{cpanm_fix} = *cpanm_fix;
$caller_stash->{parse_meta_json} = *parse_meta_json;
$caller_stash->{capture_stdout} = *capture_stdout;
$caller_stash->{deploy_st