r45660 - in /branches/upstream/libpoex-role-sessioninstantiation-perl/current: ./ lib/POEx/Role/ lib/POEx/Role/SessionInstantiation/Meta/ lib/POEx/Role/SessionInstantiation/Meta/Session/ t/ t/lib/

jawnsy-guest at users.alioth.debian.org jawnsy-guest at users.alioth.debian.org
Mon Oct 12 18:11:51 UTC 2009


Author: jawnsy-guest
Date: Mon Oct 12 18:11:46 2009
New Revision: 45660

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=45660
Log:
[svn-upgrade] Integrating new upstream version, libpoex-role-sessioninstantiation-perl (0.092800)

Modified:
    branches/upstream/libpoex-role-sessioninstantiation-perl/current/Changes
    branches/upstream/libpoex-role-sessioninstantiation-perl/current/META.yml
    branches/upstream/libpoex-role-sessioninstantiation-perl/current/Makefile.PL
    branches/upstream/libpoex-role-sessioninstantiation-perl/current/README
    branches/upstream/libpoex-role-sessioninstantiation-perl/current/dist.ini
    branches/upstream/libpoex-role-sessioninstantiation-perl/current/lib/POEx/Role/Event.pm
    branches/upstream/libpoex-role-sessioninstantiation-perl/current/lib/POEx/Role/SessionInstantiation.pm
    branches/upstream/libpoex-role-sessioninstantiation-perl/current/lib/POEx/Role/SessionInstantiation/Meta/POEState.pm
    branches/upstream/libpoex-role-sessioninstantiation-perl/current/lib/POEx/Role/SessionInstantiation/Meta/Session/Events.pm
    branches/upstream/libpoex-role-sessioninstantiation-perl/current/lib/POEx/Role/SessionInstantiation/Meta/Session/Implementation.pm
    branches/upstream/libpoex-role-sessioninstantiation-perl/current/lib/POEx/Role/SessionInstantiation/Meta/Session/Magic.pm
    branches/upstream/libpoex-role-sessioninstantiation-perl/current/lib/POEx/Role/SessionInstantiation/Meta/Session/Sugar.pm
    branches/upstream/libpoex-role-sessioninstantiation-perl/current/t/02-traits.t
    branches/upstream/libpoex-role-sessioninstantiation-perl/current/t/lib/MyTrait.pm

Modified: branches/upstream/libpoex-role-sessioninstantiation-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libpoex-role-sessioninstantiation-perl/current/Changes?rev=45660&op=diff
==============================================================================
--- branches/upstream/libpoex-role-sessioninstantiation-perl/current/Changes (original)
+++ branches/upstream/libpoex-role-sessioninstantiation-perl/current/Changes Mon Oct 12 18:11:46 2009
@@ -1,4 +1,10 @@
-Revision history for POEx-Role-SessionInstantiation: 0.092673
+Revision history for POEx-Role-SessionInstantiation: 0.092800
+
+0.092800  2009-10-07 20:31:26 UTC
+        Fix removing an alias when no alias set
+        Swtich trait behavior to MooseX::CompileTime::Traits
+        Adjust docs to reflect mx-ct-traits usage
+        Adjust traits test
 
 0.092673  2009-09-24 23:08:47 UTC
         Update deps

Modified: branches/upstream/libpoex-role-sessioninstantiation-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libpoex-role-sessioninstantiation-perl/current/META.yml?rev=45660&op=diff
==============================================================================
--- branches/upstream/libpoex-role-sessioninstantiation-perl/current/META.yml (original)
+++ branches/upstream/libpoex-role-sessioninstantiation-perl/current/META.yml Mon Oct 12 18:11:46 2009
@@ -2,17 +2,18 @@
 abstract: 'Moose Role for turning ordinary objects into POE sessions'
 author:
   - 'Nicholas Perez <nperez at cpan.org>'
-generated_by: 'Dist::Zilla::Plugin::MetaYAML version 1.092670'
+generated_by: 'Dist::Zilla version 1.092680'
 license: gpl
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
   version: 1.4
 name: POEx-Role-SessionInstantiation
 requires:
+  MooseX::CompileTime::Traits: 0.092801
   MooseX::Declare: 0.31
   POE: 1.269
   POEx::Types: 0.092670
   Test::More: 0.92
 resources:
   repository: git://github.com/nperez/psm.git
-version: 0.092673
+version: 0.092800

Modified: branches/upstream/libpoex-role-sessioninstantiation-perl/current/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libpoex-role-sessioninstantiation-perl/current/Makefile.PL?rev=45660&op=diff
==============================================================================
--- branches/upstream/libpoex-role-sessioninstantiation-perl/current/Makefile.PL (original)
+++ branches/upstream/libpoex-role-sessioninstantiation-perl/current/Makefile.PL Mon Oct 12 18:11:46 2009
@@ -9,10 +9,11 @@
   NAME      => 'POEx::Role::SessionInstantiation',
   AUTHOR    => 'Nicholas\ Perez\ \<nperez\@cpan\.org\>',
   ABSTRACT  => 'Moose\ Role\ for\ turning\ ordinary\ objects\ into\ POE\ sessions',
-  VERSION   => '0.092673',
+  VERSION   => '0.092800',
   EXE_FILES => [ qw() ],
   (eval { ExtUtils::MakeMaker->VERSION(6.31) } ? (LICENSE => 'gpl') : ()),
   PREREQ_PM    => {
+    "MooseX::CompileTime::Traits" => '0.092801',
     "Test::More" => '0.92',
     "MooseX::Declare" => '0.31',
     "POE" => '1.269',

Modified: branches/upstream/libpoex-role-sessioninstantiation-perl/current/README
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libpoex-role-sessioninstantiation-perl/current/README?rev=45660&op=diff
==============================================================================
--- branches/upstream/libpoex-role-sessioninstantiation-perl/current/README (original)
+++ branches/upstream/libpoex-role-sessioninstantiation-perl/current/README Mon Oct 12 18:11:46 2009
@@ -1,7 +1,7 @@
 
 
 This archive contains the distribution POEx-Role-SessionInstantiation, version
-0.092673:
+0.092800:
 
   Moose Role for turning ordinary objects into POE sessions
 

Modified: branches/upstream/libpoex-role-sessioninstantiation-perl/current/dist.ini
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libpoex-role-sessioninstantiation-perl/current/dist.ini?rev=45660&op=diff
==============================================================================
--- branches/upstream/libpoex-role-sessioninstantiation-perl/current/dist.ini (original)
+++ branches/upstream/libpoex-role-sessioninstantiation-perl/current/dist.ini Mon Oct 12 18:11:46 2009
@@ -8,7 +8,7 @@
 
 [AutoVersion]
 major   = 0
-format  = {{ $major }}.{{ cldr('yyDDD') }}3
+format  = {{ $major }}.{{ cldr('yyDDD') }}0
 
 [PodPurler]
 
@@ -16,6 +16,7 @@
 POE                                 = 1.269
 POEx::Types                         = 0.092670
 MooseX::Declare                     = 0.31
+MooseX::CompileTime::Traits         = 0.092801
 Test::More                          = 0.92
 
 [MetaResources]

Modified: branches/upstream/libpoex-role-sessioninstantiation-perl/current/lib/POEx/Role/Event.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libpoex-role-sessioninstantiation-perl/current/lib/POEx/Role/Event.pm?rev=45660&op=diff
==============================================================================
--- branches/upstream/libpoex-role-sessioninstantiation-perl/current/lib/POEx/Role/Event.pm (original)
+++ branches/upstream/libpoex-role-sessioninstantiation-perl/current/lib/POEx/Role/Event.pm Mon Oct 12 18:11:46 2009
@@ -1,5 +1,5 @@
 package POEx::Role::Event;
-our $VERSION = '0.092673';
+our $VERSION = '0.092800';
 
 
 
@@ -22,7 +22,7 @@
 
 =head1 VERSION
 
-version 0.092673
+version 0.092800
 
 =head1 AUTHOR
 

Modified: branches/upstream/libpoex-role-sessioninstantiation-perl/current/lib/POEx/Role/SessionInstantiation.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libpoex-role-sessioninstantiation-perl/current/lib/POEx/Role/SessionInstantiation.pm?rev=45660&op=diff
==============================================================================
--- branches/upstream/libpoex-role-sessioninstantiation-perl/current/lib/POEx/Role/SessionInstantiation.pm (original)
+++ branches/upstream/libpoex-role-sessioninstantiation-perl/current/lib/POEx/Role/SessionInstantiation.pm Mon Oct 12 18:11:46 2009
@@ -1,5 +1,5 @@
 {package POEx::Role::SessionInstantiation;
-our $VERSION = '0.092673';
+our $VERSION = '0.092800';
 }
 
 use MooseX::Declare;
@@ -7,39 +7,12 @@
 #ABSTRACT: A Moose Role for turning objects into POE Sessions
 
 
-role POEx::Role::SessionInstantiation
+role POEx::Role::SessionInstantiation with MooseX::CompileTime::Traits
 {
-    use MooseX::Types::Moose(':all');
-    use MooseX::Types::Structured(':all');
-
-    use aliased 'POEx::Role::Event', 'Event';
-
     with 'POEx::Role::SessionInstantiation::Meta::Session::Magic';
     with 'POEx::Role::SessionInstantiation::Meta::Session::Implementation';
     with 'POEx::Role::SessionInstantiation::Meta::Session::Events';
     with 'POEx::Role::SessionInstantiation::Meta::Session::Sugar';
-
-    # enable traits via import
-    method import (ClassName $role: ArrayRef :$traits?)
-    {
-        if(defined($traits))
-        {
-            my $tc = Tuple[RoleName, Optional[HashRef]];
-            
-            unless($tc->validate($traits))
-            {
-                with $traits->[0], $traits->[1];
-                return;
-            }
-
-            foreach my $tuple (@$traits)
-            {
-                my $ret = $tc->validate($tuple);
-                die $ret if defined($ret);
-                with $tuple->[0] => $tuple->[1];
-            }
-        }
-    }
 }
 1;
 
@@ -54,12 +27,12 @@
 
 =head1 VERSION
 
-version 0.092673
+version 0.092800
 
 =head1 SYOPSIS
 
     package My::Class;
-our $VERSION = '0.092673';
+our $VERSION = '0.092800';
 
     use 5.010;
     use MooseX::Declare;
@@ -249,27 +222,15 @@
 
         # and now the magic
         use POEx::Role::SessionInstantiation 
-            traits => [ ['FrobAtStart'], ['SomeLogger' => { foo => 'log' } ] ];
+            traits => [ 'FrobAtStart', SomeLogger => { foo => 'log' } ];
 
         # compose it now that it has traits applied
         with 'POEx::Role::SessionInstantiation';
         ...
     }
 
-And here is the import method signature:
-
-    method import (RoleName $role: ArrayRef :$traits?)
-
-Where $traits is expected to contain a series of Tuples that look like:
-
-    Tuple[RoleName, Optional[HashRef]]
-
-And there is a special case for a single trait where $traits is the tuple that
-is defined above. So the use statement above, if there is a single trait,
-could have been written as:
-
-    use POEx::Role::SessionInstantiation
-        traits => [ 'MyTrait' => { key => $args } ];
+For more information on how this mechanism works, please see
+MooseX::CompileTime::Traits
 
 =head2 WRITING YOUR OWN TRAITS
 

Modified: branches/upstream/libpoex-role-sessioninstantiation-perl/current/lib/POEx/Role/SessionInstantiation/Meta/POEState.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libpoex-role-sessioninstantiation-perl/current/lib/POEx/Role/SessionInstantiation/Meta/POEState.pm?rev=45660&op=diff
==============================================================================
--- branches/upstream/libpoex-role-sessioninstantiation-perl/current/lib/POEx/Role/SessionInstantiation/Meta/POEState.pm (original)
+++ branches/upstream/libpoex-role-sessioninstantiation-perl/current/lib/POEx/Role/SessionInstantiation/Meta/POEState.pm Mon Oct 12 18:11:46 2009
@@ -1,5 +1,5 @@
 {package POEx::Role::SessionInstantiation::Meta::POEState;
-our $VERSION = '0.092673';
+our $VERSION = '0.092800';
 }
 
 
@@ -45,7 +45,7 @@
 
 =head1 VERSION
 
-version 0.092673
+version 0.092800
 
 =head1 ATTRIBUTES
 

Modified: branches/upstream/libpoex-role-sessioninstantiation-perl/current/lib/POEx/Role/SessionInstantiation/Meta/Session/Events.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libpoex-role-sessioninstantiation-perl/current/lib/POEx/Role/SessionInstantiation/Meta/Session/Events.pm?rev=45660&op=diff
==============================================================================
--- branches/upstream/libpoex-role-sessioninstantiation-perl/current/lib/POEx/Role/SessionInstantiation/Meta/Session/Events.pm (original)
+++ branches/upstream/libpoex-role-sessioninstantiation-perl/current/lib/POEx/Role/SessionInstantiation/Meta/Session/Events.pm Mon Oct 12 18:11:46 2009
@@ -1,5 +1,5 @@
 {package POEx::Role::SessionInstantiation::Meta::Session::Events;
-our $VERSION = '0.092673';
+our $VERSION = '0.092800';
 }
 
 
@@ -64,7 +64,7 @@
 
 =head1 VERSION
 
-version 0.092673
+version 0.092800
 
 =head1 METHODS
 

Modified: branches/upstream/libpoex-role-sessioninstantiation-perl/current/lib/POEx/Role/SessionInstantiation/Meta/Session/Implementation.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libpoex-role-sessioninstantiation-perl/current/lib/POEx/Role/SessionInstantiation/Meta/Session/Implementation.pm?rev=45660&op=diff
==============================================================================
--- branches/upstream/libpoex-role-sessioninstantiation-perl/current/lib/POEx/Role/SessionInstantiation/Meta/Session/Implementation.pm (original)
+++ branches/upstream/libpoex-role-sessioninstantiation-perl/current/lib/POEx/Role/SessionInstantiation/Meta/Session/Implementation.pm Mon Oct 12 18:11:46 2009
@@ -1,5 +1,5 @@
 {package POEx::Role::SessionInstantiation::Meta::Session::Implementation;
-our $VERSION = '0.092673';
+our $VERSION = '0.092800';
 }
 
 
@@ -78,7 +78,7 @@
     {
         # we need to check to make sure we are currently in a POE context
         return if not defined($self->poe->kernel);
-        $self->poe->kernel->alias_remove($self->alias());
+        $self->poe->kernel->alias_remove($self->alias()) if $self->alias;
         $self->_clear_alias();
     }
 
@@ -280,7 +280,7 @@
 
 =head1 VERSION
 
-version 0.092673
+version 0.092800
 
 =head1 ATTRIBUTES
 

Modified: branches/upstream/libpoex-role-sessioninstantiation-perl/current/lib/POEx/Role/SessionInstantiation/Meta/Session/Magic.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libpoex-role-sessioninstantiation-perl/current/lib/POEx/Role/SessionInstantiation/Meta/Session/Magic.pm?rev=45660&op=diff
==============================================================================
--- branches/upstream/libpoex-role-sessioninstantiation-perl/current/lib/POEx/Role/SessionInstantiation/Meta/Session/Magic.pm (original)
+++ branches/upstream/libpoex-role-sessioninstantiation-perl/current/lib/POEx/Role/SessionInstantiation/Meta/Session/Magic.pm Mon Oct 12 18:11:46 2009
@@ -1,5 +1,5 @@
 {package POEx::Role::SessionInstantiation::Meta::Session::Magic;
-our $VERSION = '0.092673';
+our $VERSION = '0.092800';
 }
 
 
@@ -155,7 +155,7 @@
 
 =head1 VERSION
 
-version 0.092673
+version 0.092800
 
 =head1 ATTRIBUTES
 

Modified: branches/upstream/libpoex-role-sessioninstantiation-perl/current/lib/POEx/Role/SessionInstantiation/Meta/Session/Sugar.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libpoex-role-sessioninstantiation-perl/current/lib/POEx/Role/SessionInstantiation/Meta/Session/Sugar.pm?rev=45660&op=diff
==============================================================================
--- branches/upstream/libpoex-role-sessioninstantiation-perl/current/lib/POEx/Role/SessionInstantiation/Meta/Session/Sugar.pm (original)
+++ branches/upstream/libpoex-role-sessioninstantiation-perl/current/lib/POEx/Role/SessionInstantiation/Meta/Session/Sugar.pm Mon Oct 12 18:11:46 2009
@@ -1,5 +1,5 @@
 {package POEx::Role::SessionInstantiation::Meta::Session::Sugar;
-our $VERSION = '0.092673';
+our $VERSION = '0.092800';
 }
 
 
@@ -42,7 +42,7 @@
 
 =head1 VERSION
 
-version 0.092673
+version 0.092800
 
 =head1 METHODS
 

Modified: branches/upstream/libpoex-role-sessioninstantiation-perl/current/t/02-traits.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libpoex-role-sessioninstantiation-perl/current/t/02-traits.t?rev=45660&op=diff
==============================================================================
--- branches/upstream/libpoex-role-sessioninstantiation-perl/current/t/02-traits.t (original)
+++ branches/upstream/libpoex-role-sessioninstantiation-perl/current/t/02-traits.t Mon Oct 12 18:11:46 2009
@@ -9,7 +9,7 @@
     use Test::More;
     use aliased 'POEx::Role::Event';
     use MyTrait;
-    use POEx::Role::SessionInstantiation(traits => [['MyTrait' => { attr => 'foo' }], ['MyTrait' => { attr => 'bar' }]]);
+    use POEx::Role::SessionInstantiation traits => [ MyTrait => { attr => 'foo' }, MyTrait => { attr => 'bar' } ];
     with 'POEx::Role::SessionInstantiation';
 
     method _stop is Event
@@ -30,7 +30,7 @@
     use Test::More;
     use aliased 'POEx::Role::Event';
     use MyTrait;
-    use POEx::Role::SessionInstantiation(traits => [ 'MyTrait' => { attr => 'baz' } ]);
+    use POEx::Role::SessionInstantiation traits => [ 'MyTrait' => { attr => 'baz' } ];
     with 'POEx::Role::SessionInstantiation';
 
     method _stop is Event
@@ -50,7 +50,7 @@
     use Test::More;
     use aliased 'POEx::Role::Event';
     use MyTrait;
-    use POEx::Role::SessionInstantiation(traits => [ ['MyTrait'], [ 'MyTrait' => { attr => 'zarg' } ] ]);
+    use POEx::Role::SessionInstantiation traits => [ 'MyTrait', MyTrait => { attr => 'zarg' } ];
     with 'POEx::Role::SessionInstantiation';
 
     method _stop is Event

Modified: branches/upstream/libpoex-role-sessioninstantiation-perl/current/t/lib/MyTrait.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libpoex-role-sessioninstantiation-perl/current/t/lib/MyTrait.pm?rev=45660&op=diff
==============================================================================
--- branches/upstream/libpoex-role-sessioninstantiation-perl/current/t/lib/MyTrait.pm (original)
+++ branches/upstream/libpoex-role-sessioninstantiation-perl/current/t/lib/MyTrait.pm Mon Oct 12 18:11:46 2009
@@ -1,5 +1,5 @@
 {package MyTrait;
-our $VERSION = '0.092673';
+our $VERSION = '0.092800';
 }
 
 use MooseX::Declare;




More information about the Pkg-perl-cvs-commits mailing list