Config-Yak

 view release on metacpan or  search on metacpan

META.json  view on Meta::CPAN

            "Data::Tree" : "0.16",
            "English" : "0",
            "Hash::Merge" : "0",
            "IO::Handle" : "0",
            "Log::Tree::RequiredLogger" : "0",
            "Module::Pluggable::Object" : "0",
            "Moose" : "0",
            "Moose::Role" : "0",
            "Moose::Util::TypeConstraints" : "0",
            "Scalar::Util" : "0",
            "Try::Tiny" : "0",
            "autodie" : "0",
            "feature" : "0",
            "mro" : "0",
            "namespace::autoclean" : "0",
            "perl" : "5.010_000",
            "warnings" : "0"
         }
      },
      "test" : {
         "requires" : {

META.yml  view on Meta::CPAN

  Data::Tree: 0.16
  English: 0
  Hash::Merge: 0
  IO::Handle: 0
  Log::Tree::RequiredLogger: 0
  Module::Pluggable::Object: 0
  Moose: 0
  Moose::Role: 0
  Moose::Util::TypeConstraints: 0
  Scalar::Util: 0
  Try::Tiny: 0
  autodie: 0
  feature: 0
  mro: 0
  namespace::autoclean: 0
  perl: 5.010_000
  warnings: 0
resources:
  bugtracker: https://github.com/gittex/Config-Yak/issues
  repository: git://github.com/gittex/Config-Yak.git
version: 0.23

Makefile.PL  view on Meta::CPAN

    "Data::Tree" => "0.16",
    "English" => 0,
    "Hash::Merge" => 0,
    "IO::Handle" => 0,
    "Log::Tree::RequiredLogger" => 0,
    "Module::Pluggable::Object" => 0,
    "Moose" => 0,
    "Moose::Role" => 0,
    "Moose::Util::TypeConstraints" => 0,
    "Scalar::Util" => 0,
    "Try::Tiny" => 0,
    "autodie" => 0,
    "feature" => 0,
    "mro" => 0,
    "namespace::autoclean" => 0,
    "warnings" => 0
  },
  "TEST_REQUIRES" => {
    "FindBin" => 0,
    "Test::MockObject::Universal" => 0,
    "Test::More" => 0,

lib/Config/Yak.pm  view on Meta::CPAN

use Moose::Util::TypeConstraints;
use namespace::autoclean;

use IO::Handle;
use autodie;

use Config::Any;
use Config::Tiny;
use Hash::Merge;
use Data::Dumper;
use Try::Tiny;
use Data::Structure::Util qw();

subtype 'ArrayRefOfStr',
     as 'ArrayRef[Str]';

coerce 'ArrayRefOfStr',
    from 'Str',
    via { [ $_ ] };

extends 'Data::Tree' => { -version => 0.16 };

lib/Config/Yak/LazyConfig.pm  view on Meta::CPAN

use feature ':5.10';

use Moose::Role;
use namespace::autoclean;

# use IO::Handle;
# use autodie;
# use MooseX::Params::Validate;
# use Carp;
# use English qw( -no_match_vars );
# use Try::Tiny;
use Config::Yak;

# extends ...
# has ...
has 'config' => (
    'is'      => 'rw',
    'isa'     => 'Config::Yak',
    'lazy'    => 1,
    'builder' => '_init_config',
);

lib/Config/Yak/NamedPlugins.pm  view on Meta::CPAN

use feature ':5.10';

use Moose::Role;
use namespace::autoclean;

# use IO::Handle;
# use autodie;
# use MooseX::Params::Validate;
# use Carp;
use English qw( -no_match_vars );
use Try::Tiny;
use Scalar::Util qw();
use Module::Pluggable::Object;

# extends ...
# has ...
has '_finder' => (
    'is'       => 'rw',
    'isa'      => 'Module::Pluggable::Object',
    'lazy'     => 1,
    'builder'  => '_init_finder',

lib/Config/Yak/OrderedPlugins.pm  view on Meta::CPAN

use feature ':5.10';

use Moose::Role;
use namespace::autoclean;

# use IO::Handle;
# use autodie;
# use MooseX::Params::Validate;
# use Carp;
use English qw( -no_match_vars );
use Try::Tiny;
use Module::Pluggable::Object;

# extends ...
# has ...
has '_finder' => (
    'is'       => 'rw',
    'isa'      => 'Module::Pluggable::Object',
    'lazy'     => 1,
    'builder'  => '_init_finder',
    'accessor' => 'finder',

lib/Config/Yak/RequiredConfig.pm  view on Meta::CPAN

use feature ':5.10';

use Moose::Role;
use namespace::autoclean;

# use IO::Handle;
# use autodie;
# use MooseX::Params::Validate;
# use Carp;
# use English qw( -no_match_vars );
# use Try::Tiny;

# extends ...
# has ...
has 'config' => (
    'is'       => 'rw',
    'isa'      => 'Config::Yak',
    'required' => 1,
);

# with ...

t/coerce.t  view on Meta::CPAN

use Test::More;
use Config::Yak;
use Try::Tiny;

my $cfg;

# make sure coercing works ...
try {
    $cfg = Config::Yak::->new('locations' => 't/conf/test001.conf',);
} catch {
    diag $_;
};
isa_ok($cfg,'Config::Yak');



( run in 1.122 second using v1.01-cache-2.11-cpan-05444aca049 )