Bread-Board

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

    ->resolve( type => $type ) call - added tests for this
  - Bread::Board::Service::Inferred - added this and tests for it
  - Bread::Board::Manual::Concepts::Typemap - added this to help explain
    the typemap feature

0.14 2010-08-24
  - Bread::Board::Container - added the ->resolve method to replace the
    ->fetch( $service )->get pattern that annoys mst so much. - adjusted
    all the tests to account for this change. - adjusted all the docs to
    now use this approach instead
  - now using Try::Tiny for all exception handling (except the Deferred
    service)
  - Bread::Board::Service::WithDependencies - if you want to depend on a
    parameterized service, now you can and it will return a
    Bread::Board::Service::Deferred::Thunk that you can call ->inflate on
    and pass in the parameters for it. - added tests for this
  - Bread::Board::Service::Deferred::Thunk - added this + tests for it

0.13 2010-04-23
  - Bread::Board - making the include keyword handle compilation errors
    better (doy) - added test for this

META.json  view on Meta::CPAN

            "Carp" : "0",
            "Module::Runtime" : "0",
            "Moose" : "0",
            "Moose::Exporter" : "2.1200",
            "Moose::Role" : "0",
            "Moose::Util" : "0",
            "Moose::Util::TypeConstraints" : "0",
            "MooseX::Clone" : "0.05",
            "MooseX::Params::Validate" : "0.14",
            "Scalar::Util" : "0",
            "Try::Tiny" : "0",
            "overload" : "0",
            "strict" : "0",
            "warnings" : "0"
         }
      },
      "test" : {
         "recommends" : {
            "CPAN::Meta" : "2.120900"
         },
         "requires" : {

META.yml  view on Meta::CPAN

  Carp: '0'
  Module::Runtime: '0'
  Moose: '0'
  Moose::Exporter: '2.1200'
  Moose::Role: '0'
  Moose::Util: '0'
  Moose::Util::TypeConstraints: '0'
  MooseX::Clone: '0.05'
  MooseX::Params::Validate: '0.14'
  Scalar::Util: '0'
  Try::Tiny: '0'
  overload: '0'
  strict: '0'
  warnings: '0'
resources:
  bugtracker: https://github.com/stevan/BreadBoard/issues
  homepage: https://github.com/stevan/BreadBoard
  repository: https://github.com/stevan/BreadBoard.git
version: '0.37'
x_authority: cpan:STEVAN
x_contributor_covenant:

Makefile.PL  view on Meta::CPAN

    "Carp" => 0,
    "Module::Runtime" => 0,
    "Moose" => 0,
    "Moose::Exporter" => "2.1200",
    "Moose::Role" => 0,
    "Moose::Util" => 0,
    "Moose::Util::TypeConstraints" => 0,
    "MooseX::Clone" => "0.05",
    "MooseX::Params::Validate" => "0.14",
    "Scalar::Util" => 0,
    "Try::Tiny" => 0,
    "overload" => 0,
    "strict" => 0,
    "warnings" => 0
  },
  "TEST_REQUIRES" => {
    "ExtUtils::MakeMaker" => 0,
    "File::Spec" => 0,
    "FindBin" => 0,
    "IO::Handle" => 0,
    "IPC::Open3" => 0,

Makefile.PL  view on Meta::CPAN

  "Moose::Role" => 0,
  "Moose::Util" => 0,
  "Moose::Util::TypeConstraints" => 0,
  "MooseX::Clone" => "0.05",
  "MooseX::Params::Validate" => "0.14",
  "Scalar::Util" => 0,
  "Test::Fatal" => 0,
  "Test::Moose" => 0,
  "Test::More" => 0,
  "Test::Requires" => 0,
  "Try::Tiny" => 0,
  "overload" => 0,
  "strict" => 0,
  "warnings" => 0
);


unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
  delete $WriteMakefileArgs{TEST_REQUIRES};
  delete $WriteMakefileArgs{BUILD_REQUIRES};
  $WriteMakefileArgs{PREREQ_PM} = \%FallbackPrereqs;

cpanfile  view on Meta::CPAN

requires "Carp" => "0";
requires "Module::Runtime" => "0";
requires "Moose" => "0";
requires "Moose::Exporter" => "2.1200";
requires "Moose::Role" => "0";
requires "Moose::Util" => "0";
requires "Moose::Util::TypeConstraints" => "0";
requires "MooseX::Clone" => "0.05";
requires "MooseX::Params::Validate" => "0.14";
requires "Scalar::Util" => "0";
requires "Try::Tiny" => "0";
requires "overload" => "0";
requires "strict" => "0";
requires "warnings" => "0";

on 'test' => sub {
  requires "ExtUtils::MakeMaker" => "0";
  requires "File::Spec" => "0";
  requires "FindBin" => "0";
  requires "IO::Handle" => "0";
  requires "IPC::Open3" => "0";

lib/Bread/Board/ConstructorInjection.pm  view on Meta::CPAN

package Bread::Board::ConstructorInjection;
our $AUTHORITY = 'cpan:STEVAN';
# ABSTRACT: service instantiating objects via a constructor
$Bread::Board::ConstructorInjection::VERSION = '0.37';
use Moose;

use Try::Tiny;

use Bread::Board::Types;

with 'Bread::Board::Service::WithConstructor',
     'Bread::Board::Service::WithParameters',
     'Bread::Board::Service::WithDependencies';

has '+class' => (required => 1);

sub get {

lib/Bread/Board/LifeCycle/Singleton.pm  view on Meta::CPAN

package Bread::Board::LifeCycle::Singleton;
our $AUTHORITY = 'cpan:STEVAN';
# ABSTRACT: service role for singleton lifecycle
$Bread::Board::LifeCycle::Singleton::VERSION = '0.37';
use Moose::Role;

use Try::Tiny;

with 'Bread::Board::LifeCycle';

has 'instance' => (
    traits    => [ 'NoClone' ],
    is        => 'rw',
    isa       => 'Any',
    predicate => 'has_instance',
    clearer   => 'flush_instance'
);

lib/Bread/Board/Service/Alias.pm  view on Meta::CPAN

package Bread::Board::Service::Alias;
our $AUTHORITY = 'cpan:STEVAN';
# ABSTRACT: aliases another service
$Bread::Board::Service::Alias::VERSION = '0.37';
use Moose;

use Try::Tiny;

has aliased_from_path => (
    is  => 'ro',
    isa => 'Str',
);

has aliased_from => (
    is      => 'ro',
    does    => 'Bread::Board::Service',
    lazy    => 1,

lib/Bread/Board/Service/Inferred.pm  view on Meta::CPAN

package Bread::Board::Service::Inferred;
our $AUTHORITY = 'cpan:STEVAN';
# ABSTRACT: Helper for inferring a service from a Moose object
$Bread::Board::Service::Inferred::VERSION = '0.37';
use Moose;
use Moose::Util::TypeConstraints 'find_type_constraint';

use Try::Tiny;
use Bread::Board::Types;
use Bread::Board::ConstructorInjection;

has 'current_container' => (
    is       => 'ro',
    isa      => 'Bread::Board::Container',
    required => 1,
);

has 'service' => (

lib/Bread/Board/Service/WithConstructor.pm  view on Meta::CPAN

package Bread::Board::Service::WithConstructor;
our $AUTHORITY = 'cpan:STEVAN';
$Bread::Board::Service::WithConstructor::VERSION = '0.37';
use Moose::Role;

use Try::Tiny;

with 'Bread::Board::Service::WithClass';

has 'constructor_name' => (
    is       => 'rw',
    isa      => 'Str',
    lazy     => 1,
    builder  => '_build_constructor_name',
);

lib/Bread/Board/Service/WithDependencies.pm  view on Meta::CPAN

package Bread::Board::Service::WithDependencies;
our $AUTHORITY = 'cpan:STEVAN';
# ABSTRACT: Services with dependencies
$Bread::Board::Service::WithDependencies::VERSION = '0.37';
use Moose::Role;

use Try::Tiny;

use Bread::Board::Types;
use Bread::Board::Service::Deferred;
use Bread::Board::Service::Deferred::Thunk;

with 'Bread::Board::Service';

has 'dependencies' => (
    traits    => [ 'Hash', 'Clone' ],
    is        => 'rw',

t/00-report-prereqs.dd  view on Meta::CPAN

                                      'Carp' => '0',
                                      'Module::Runtime' => '0',
                                      'Moose' => '0',
                                      'Moose::Exporter' => '2.1200',
                                      'Moose::Role' => '0',
                                      'Moose::Util' => '0',
                                      'Moose::Util::TypeConstraints' => '0',
                                      'MooseX::Clone' => '0.05',
                                      'MooseX::Params::Validate' => '0.14',
                                      'Scalar::Util' => '0',
                                      'Try::Tiny' => '0',
                                      'overload' => '0',
                                      'strict' => '0',
                                      'warnings' => '0'
                                    }
                    },
       'test' => {
                   'recommends' => {
                                     'CPAN::Meta' => '2.120900'
                                   },
                   'requires' => {



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