Config-Station
view release on metacpan or search on metacpan
"requires" : {
"Test::Pod" : "1.41"
}
},
"runtime" : {
"requires" : {
"IO::All" : "0",
"JSON::MaybeXS" : "0",
"Module::Runtime" : "0",
"Moo" : "2",
"Try::Tiny" : "0"
}
},
"test" : {
"requires" : {
"Test::More" : "0"
}
}
},
"release_status" : "stable",
"resources" : {
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: '1.4'
name: Config-Station
requires:
IO::All: '0'
JSON::MaybeXS: '0'
Module::Runtime: '0'
Moo: '2'
Try::Tiny: '0'
resources:
bugtracker: https://github.com/frioux/Config-Station/issues
homepage: https://github.com/frioux/Config-Station
repository: https://github.com/frioux/Config-Station.git
version: '0.002001'
Makefile.PL view on Meta::CPAN
},
"DISTNAME" => "Config-Station",
"EXE_FILES" => [],
"LICENSE" => "perl",
"NAME" => "Config::Station",
"PREREQ_PM" => {
"IO::All" => 0,
"JSON::MaybeXS" => 0,
"Module::Runtime" => 0,
"Moo" => 2,
"Try::Tiny" => 0
},
"TEST_REQUIRES" => {
"Test::More" => 0
},
"VERSION" => "0.002001",
"test" => {
"TESTS" => "t/*.t"
}
);
my %FallbackPrereqs = (
"ExtUtils::MakeMaker" => 0,
"IO::All" => 0,
"JSON::MaybeXS" => 0,
"Module::Runtime" => 0,
"Moo" => 2,
"Test::More" => 0,
"Try::Tiny" => 0
);
unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
delete $WriteMakefileArgs{TEST_REQUIRES};
delete $WriteMakefileArgs{BUILD_REQUIRES};
$WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;
}
delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
requires 'Moo' => 2;
requires 'JSON::MaybeXS';
requires 'IO::All';
requires 'Try::Tiny';
requires 'Module::Runtime';
on test => sub {
requires 'Test::More';
};
lib/Config/Station.pm view on Meta::CPAN
package Config::Station;
$Config::Station::VERSION = '0.002001';
# ABSTRACT: Load configs from files and the environment
use Moo;
use warnings NONFATAL => 'all';
use JSON::MaybeXS;
use IO::All;
use Try::Tiny;
use Module::Runtime 'use_module';
has _debug => (
is => 'ro',
init_arg => undef,
lazy => 1,
default => sub {
my $self = shift;
exists $ENV{'DEBUG_' . $self->_env_key}
( run in 1.398 second using v1.01-cache-2.11-cpan-05444aca049 )