Backbone-Events

 view release on metacpan or  search on metacpan

META.yml  view on Meta::CPAN

---
abstract: 'a port of the Backbone.js event API'
author:
  - 'Mark Flickinger'
build_requires:
  Exporter: '0'
  FindBin::libs: '0'
  Moo: '0'
  Test::Fatal: '0'
  Test::LeakTrace: '0'
  Test::More: '0'
  Test::Strict: '0'
  parent: '0'
configure_requires:
  ExtUtils::MakeMaker: '0'
dynamic_config: 0
generated_by: 'Dist::Zilla version 5.037, CPAN::Meta::Converter version 2.142690'
license: perl
meta-spec:

Makefile.PL  view on Meta::CPAN

    "Carp" => 0,
    "List::MoreUtils" => 0,
    "Moo::Role" => 0,
    "Scalar::Util" => 0,
    "namespace::autoclean" => "0.16"
  },
  "TEST_REQUIRES" => {
    "Exporter" => 0,
    "FindBin::libs" => 0,
    "Moo" => 0,
    "Test::Fatal" => 0,
    "Test::LeakTrace" => 0,
    "Test::More" => 0,
    "Test::Strict" => 0,
    "parent" => 0
  },
  "VERSION" => "0.0.3",
  "test" => {
    "TESTS" => "t/*.t"
  }
);

Makefile.PL  view on Meta::CPAN


my %FallbackPrereqs = (
  "Carp" => 0,
  "Exporter" => 0,
  "ExtUtils::MakeMaker" => 0,
  "FindBin::libs" => 0,
  "List::MoreUtils" => 0,
  "Moo" => 0,
  "Moo::Role" => 0,
  "Scalar::Util" => 0,
  "Test::Fatal" => 0,
  "Test::LeakTrace" => 0,
  "Test::More" => 0,
  "Test::Strict" => 0,
  "namespace::autoclean" => "0.16",
  "parent" => 0
);


unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
  delete $WriteMakefileArgs{TEST_REQUIRES};

t/06_listen_to.t  view on Meta::CPAN

use strict;
use warnings;
use FindBin::libs;
use Test::Fatal qw(dies_ok);
use Test::More;
use Test::Backbone::Events::Utils;

{
    my $handler  = test_handler();
    my $listener = test_handler();

    my %triggers;
    $listener->listen_to($handler, 'all', sub { $triggers{listener}++ });
    $handler->on('all', sub { $triggers{other}++ });

t/09_stop_listening.t  view on Meta::CPAN

use strict;
use warnings;
use FindBin::libs;
use Test::Fatal qw(dies_ok);
use Test::More;
use Test::Backbone::Events::Utils;

my $listener = test_handler();
my $handler  = test_handler();
my $other    = test_handler();

my $count = 0;
my $cb    = sub { $count++ };



( run in 0.988 second using v1.01-cache-2.11-cpan-54e63673c56 )