view release on metacpan or search on metacpan
lib/App/Midgen.pm view on Meta::CPAN
App::Midgen::Role::Heuristics
);
# Load time and dependencies negate execution time
# use namespace::clean -except => 'meta';
use version;
our $VERSION = '0.34';
$VERSION = eval $VERSION; ## no critic
use English qw( -no_match_vars ); # Avoids reg-ex performance penalty
local $OUTPUT_AUTOFLUSH = 1;
use Cwd qw(getcwd);
use Data::Printer {caller_info => 1,};
use File::Find qw(find);
use File::Spec;
use Module::CoreList;
use PPI;
use Term::ANSIColor qw( :constants colored colorstrip );
use Try::Tiny;
use Tie::Static qw(static);
lib/App/Midgen/Role/Output.pm view on Meta::CPAN
);
requires qw( format distribution_name get_module_version verbose );
# Load time and dependencies negate execution time
# use namespace::clean -except => 'meta';
our $VERSION = '0.34';
$VERSION = eval $VERSION; ## no critic
use English qw( -no_match_vars ); # Avoids reg-ex performance penalty
local $OUTPUT_AUTOFLUSH = 1;
use Try::Tiny;
#######
# output_header
#######
sub output_header {
my $self = shift;
lib/App/Midgen/Role/Output/CPANfile.pm view on Meta::CPAN
use Moo::Role;
requires qw( verbose );
# Load time and dependencies negate execution time
# use namespace::clean -except => 'meta';
our $VERSION = '0.34';
$VERSION = eval $VERSION; ## no critic
use English qw( -no_match_vars ); # Avoids reg-ex performance penalty
local $OUTPUT_AUTOFLUSH = 1;
use Term::ANSIColor qw( :constants colored );
use File::Spec;
#######
# header_cpanfile
#######
sub header_cpanfile {
my $self = shift;
my $package_name = shift || NONE;
lib/App/Midgen/Role/Output/Dist.pm view on Meta::CPAN
use Moo::Role;
requires qw( no_index verbose );
# Load time and dependencies negate execution time
# use namespace::clean -except => 'meta';
our $VERSION = '0.34';
$VERSION = eval $VERSION; ## no critic
use English qw( -no_match_vars ); # Avoids reg-ex performance penalty
local $OUTPUT_AUTOFLUSH = 1;
use Term::ANSIColor qw( :constants colored );
use File::Spec;
#######
# header_dist
#######
sub header_dist {
my $self = shift;
my $package_name = shift || NONE;
lib/App/Midgen/Role/Output/EUMM.pm view on Meta::CPAN
use Moo::Role;
requires qw( verbose );
# Load time and dependencies negate execution time
# use namespace::clean -except => 'meta';
our $VERSION = '0.34';
$VERSION = eval $VERSION; ## no critic
use English qw( -no_match_vars ); # Avoids reg-ex performance penalty
local $OUTPUT_AUTOFLUSH = 1;
use Term::ANSIColor qw( :constants colored );
use File::Spec;
#######
# header_eumm
#######
sub header_eumm {
my $self = shift;
my $package_name = shift || NONE;
lib/App/Midgen/Role/Output/Infile.pm view on Meta::CPAN
requires qw( core dual_life debug );
use Try::Tiny;
# Load time and dependencies negate execution time
# use namespace::clean -except => 'meta';
our $VERSION = '0.34';
$VERSION = eval $VERSION; ## no critic
use English qw( -no_match_vars );
local $OUTPUT_AUTOFLUSH = 1;
use Term::ANSIColor qw( :constants colored );
use Data::Printer {caller_info => 1,};
use File::Spec;
#######
# header_infile
#######
sub header_infile {
my $self = shift;
lib/App/Midgen/Role/Output/MB.pm view on Meta::CPAN
use Moo::Role;
# Load time and dependencies negate execution time
# use namespace::clean -except => 'meta';
our $VERSION = '0.34';
$VERSION = eval $VERSION; ## no critic
use English qw( -no_match_vars ); # Avoids reg-ex performance penalty
local $OUTPUT_AUTOFLUSH = 1;
use File::Spec;
#######
# header_mb
#######
sub header_mb {
my $self = shift;
my $package_name = shift || NONE;
lib/App/Midgen/Role/Output/METAjson.pm view on Meta::CPAN
use Moo::Role;
requires qw( no_index verbose );
# Load time and dependencies negate execution time
# use namespace::clean -except => 'meta';
our $VERSION = '0.34';
$VERSION = eval $VERSION; ## no critic
use English qw( -no_match_vars ); # Avoids reg-ex performance penalty
local $OUTPUT_AUTOFLUSH = 1;
use Term::ANSIColor qw( :constants colored );
use Data::Printer {caller_info => 1,};
use File::Spec;
#######
# header_metajson
#######
sub header_metajson {
my $self = shift;
lib/App/Midgen/Role/Output/MI.pm view on Meta::CPAN
use Moo::Role;
requires qw( no_index verbose );
# Load time and dependencies negate execution time
# use namespace::clean -except => 'meta';
our $VERSION = '0.34';
$VERSION = eval $VERSION; ## no critic
use English qw( -no_match_vars ); # Avoids reg-ex performance penalty
local $OUTPUT_AUTOFLUSH = 1;
use Term::ANSIColor qw( :constants colored );
use File::Spec;
#######
# header_mi
#######
sub header_mi {
my $self = shift;
lib/App/Midgen/Role/Output/MIdsl.pm view on Meta::CPAN
use Moo::Role;
requires qw( no_index verbose );
# Load time and dependencies negate execution time
# use namespace::clean -except => 'meta';
our $VERSION = '0.34';
$VERSION = eval $VERSION; ## no critic
use English qw( -no_match_vars ); # Avoids reg-ex performance penalty
local $OUTPUT_AUTOFLUSH = 1;
use Term::ANSIColor qw( :constants colored );
use File::Spec;
#######
# header_dsl
#######
sub header_dsl {
my $self = shift;
my $package_name = shift || NONE; # was shift // NONE -> defined $a ? $a : $b
script/midgen view on Meta::CPAN
#!perl
use 5.008001;
use strict;
use warnings FATAL => 'all';
our $VERSION = '0.34';
use English qw( -no_match_vars );
local $OUTPUT_AUTOFLUSH = 1;
use Data::Printer {caller_info => 1,};
# we are doing this so we can run from git during development
# perl ~/GitHub/App-Midgen/script/midgen
use FindBin qw($Bin);
use lib map {"$Bin/$_"} qw( lib ../lib );
use App::Midgen;
use Time::Stamp 'gmstamp';
t/00-check-deps.t view on Meta::CPAN
#!perl
use strict;
use warnings FATAL => 'all';
use English qw( -no_match_vars );
local $OUTPUT_AUTOFLUSH = 1;
use Test::More;
use Test::Requires {'Test::CheckDeps' => 0.010};
check_dependencies();
if (1) {
BAIL_OUT("Missing dependencies") if !Test::More->builder->is_passing;
}
t/01-compile.t view on Meta::CPAN
#!perl
use strict;
use warnings FATAL => 'all';
use English qw( -no_match_vars ); # Avoids regex performance penalty
local $OUTPUT_AUTOFLUSH = 1;
use Test::More tests => 46;
BEGIN {
use_ok('App::Midgen');
use_ok('App::Midgen::Role::Attributes');
use_ok('App::Midgen::Role::AttributesX');
use_ok('App::Midgen::Role::Eval');
use_ok('App::Midgen::Role::Experimental');
use_ok('App::Midgen::Role::FindMinVersion');
#!perl
use strict;
use warnings FATAL => 'all';
use English qw( -no_match_vars );
local $OUTPUT_AUTOFLUSH = 1;
BEGIN {
unless ( $ENV{RELEASE_TESTING} ) {
require Test::More;
Test::More::plan(
skip_all => 'Author tests, not required for installation.' );
}
}
use Test::More;
t/04-pod-coverage.t view on Meta::CPAN
#!perl
use strict;
use warnings FATAL => 'all';
use English qw( -no_match_vars );
local $OUTPUT_AUTOFLUSH = 1;
BEGIN {
unless ( $ENV{RELEASE_TESTING} ) {
require Test::More;
Test::More::plan(
skip_all => 'Author tests, not required for installation.' );
}
}
use Test::More;
t/05-script.t view on Meta::CPAN
#!perl
use strict;
use warnings FATAL => 'all';
use English qw( -no_match_vars );
local $OUTPUT_AUTOFLUSH = 1;
use Test::More;
use Test::Requires { 'Test::Script' => 1.07 };
script_compiles( 'script/midgen', 'midgen script compiles' );
# comment out - takes to long to run :(
# script_runs( 'script/midgen', 'midgen script runs' );
done_testing();
t/10-midgen.t view on Meta::CPAN
#!perl
use strict;
use warnings FATAL => 'all';
use English qw( -no_match_vars );
local $OUTPUT_AUTOFLUSH = 1;
use Test::More tests => 25;
BEGIN {
use_ok( 'App::Midgen' );
}
######
# let's check our subs/methods.
######
t/11-can_xs_0.t view on Meta::CPAN
#!perl
use strict;
use warnings FATAL => 'all';
use English qw( -no_match_vars );
local $OUTPUT_AUTOFLUSH = 1;
use Test::More;
use Test::Requires {'Class::XSAccessor' => 1.19};
ok($Class::XSAccessor::VERSION >= 1.19, 'Class::XSAccessor is loaded');
done_testing();
__END__
t/11-can_xs_1.t view on Meta::CPAN
#!perl
use strict;
use warnings FATAL => 'all';
use English qw( -no_match_vars );
local $OUTPUT_AUTOFLUSH = 1;
use Test::More;
use Test::Requires {'PPI::XS' => 0.902};
ok($PPI::XS::VERSION == 0.902, 'PPI::XS is loaded');
done_testing();
__END__
t/99-report-prereqs.t view on Meta::CPAN
#!perl
use strict;
use warnings;
use English qw( -no_match_vars ); # Avoids regex performance penalty
local $OUTPUT_AUTOFLUSH = 1;
use Test::More;
use Test::Requires {'ExtUtils::MakeMaker' => 6.68};
use Test::Requires {'File::Spec::Functions' => 3.40};
use Test::Requires {'List::Util' => 1.38};
use List::Util qw/max/;
my @modules = qw(
perl