Skip to content

Commit

Permalink
Switched to Dist::Zilla
Browse files Browse the repository at this point in the history
  • Loading branch information
Torsten Raudssus committed Nov 4, 2010
1 parent 1dd597c commit 5e333dc
Show file tree
Hide file tree
Showing 17 changed files with 120 additions and 388 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -0,0 +1,2 @@
MooseX-POE-*
.build
5 changes: 4 additions & 1 deletion Changes
@@ -1,4 +1,7 @@
Revision history for MooseX-POE Revision history for {{$dist->name}}

{{$NEXT}}
+ Switched to Dist::Zilla for the author (Getty)


0.209 2010-09-26 0.209 2010-09-26
+ Remove useless call to ->_meta_instance (autarch) + Remove useless call to ->_meta_instance (autarch)
Expand Down
14 changes: 0 additions & 14 deletions MANIFEST.SKIP

This file was deleted.

18 changes: 0 additions & 18 deletions Makefile.PL

This file was deleted.

37 changes: 37 additions & 0 deletions dist.ini
@@ -0,0 +1,37 @@
name = MooseX-POE
author = Chris Prather <chris@prather.org>
author = Ash Berlin <ash@cpan.org>
author = Chris Williams <chris@bingosnet.co.uk>
author = Yuval (nothingmuch) Kogman
author = Torsten Raudssus <getty@cpan.org>
license = Perl_5
copyright_holder = Chris Prather, Ash Berlin, Chris Williams, Yuval Kogman, Torsten Raudssus
copyright_year = 2010

[Prereqs]
Moose = 0.90
POE = 1.004

[Prereqs / TestRequires]
Test::More = 0.90

[@Basic]

[AutoPrereqs]
[Git::NextVersion]
version_regexp = ^(.+)$

[PkgVersion]
[MetaConfig]
[MetaJSON]
[NextRelease]
[PodSyntaxTests]
[GithubMeta]
[PodWeaver]
[Repository]

[MetaNoIndex]
directory = ex

[@Git]
tag_format = %v
110 changes: 25 additions & 85 deletions lib/MooseX/POE.pm
@@ -1,6 +1,5 @@
package MooseX::POE; package MooseX::POE;

# ABSTRACT: The Illicit Love Child of Moose and POE
our $VERSION = '0.209';


use Moose (); use Moose ();
use Moose::Exporter; use Moose::Exporter;
Expand Down Expand Up @@ -37,14 +36,6 @@ sub event {
1; 1;
__END__ __END__
=head1 NAME
MooseX::POE - The Illicit Love Child of Moose and POE
=head1 VERSION
This document describes MooseX::POE version 0.209
=head1 SYNOPSIS =head1 SYNOPSIS
package Counter; package Counter;
Expand Down Expand Up @@ -104,65 +95,57 @@ or with L<MooseX::Declare|MooseX::Declare>:
=head1 DESCRIPTION =head1 DESCRIPTION
MooseX::POE is a Moose wrapper around a POE::Session. MooseX::POE is a L<Moose> wrapper around a L<POE::Session>.
=head1 KEYWORDS =head1 KEYWORDS
=over =method event $name $subref
=item event $name $subref
Create an event handler named $name. Create an event handler named $name.
=back
=head1 METHODS =head1 METHODS
Default POE-related methods are provided by L<MooseX::POE::Meta::Trait::Object|MooseX::POE::Meta::Trait::Object> Default POE-related methods are provided by L<MooseX::POE::Meta::Trait::Object|MooseX::POE::Meta::Trait::Object>
which is applied to your base class (which is usually L<Moose::Object|Moose::Object>) when which is applied to your base class (which is usually L<Moose::Object|Moose::Object>) when
you use this module. See that module for the documentation for. Below is a list you use this module. See that module for the documentation for. Below is a list
of methods on that class so you know what to look for: of methods on that class so you know what to look for:
=over =method get_session_id
=item get_session_id
Get the internal POE Session ID, this is useful to hand to other POE aware Get the internal POE Session ID, this is useful to hand to other POE aware
functions. functions.
=item yield =method yield
=item call =method call
=item delay =method delay
=item alarm =method alarm
=item alarm_add =method alarm_add
=item delay_add =method delay_add
=item alarm_set =method alarm_set
=item alarm_adjust =method alarm_adjust
=item alarm_remove =method alarm_remove
=item alarm_remove_all =method alarm_remove_all
=item delay_set =method delay_set
=item delay_adjust =method delay_adjust
A cheap alias for the same POE::Kernel function which will gurantee posting to the object's session. A cheap alias for the same POE::Kernel function which will gurantee posting to the object's session.
=item STARTALL =method STARTALL
=item STOPALL
=back =method STOPALL
=head1 NOTES ON USAGE WITH L<MooseX::Declare|MooseX::Declare> =head1 NOTES ON USAGE WITH L<MooseX::Declare>
L<MooseX::Declare|MooseX::Declare> support is still "experimental". Meaning that I don't use it, L<MooseX::Declare|MooseX::Declare> support is still "experimental". Meaning that I don't use it,
I don't have any code that uses it, and thus I can't adequately say that it I don't have any code that uses it, and thus I can't adequately say that it
Expand All @@ -176,8 +159,8 @@ integration issue that is being resolved but I want to wait for
L<MooseX::Declare|MooseX::Declare> to gain some more polish on their slurpy L<MooseX::Declare|MooseX::Declare> to gain some more polish on their slurpy
arguments. arguments.
2. MooseX::POE attempts to re-export L<Moose|Moose>, which 2. MooseX::POE attempts to re-export L<Moose>, which
L<MooseX::Declare|MooseX::Declare> has already exported in a custom fashion. L<MooseX::Declare> has already exported in a custom fashion.
This means that you'll get a keyword clash between the features that This means that you'll get a keyword clash between the features that
L<MooseX::Declare|MooseX::Declare> handles for you and the features that Moose L<MooseX::Declare|MooseX::Declare> handles for you and the features that Moose
handles. To work around this you'll need to write: handles. To work around this you'll need to write:
Expand All @@ -193,52 +176,9 @@ L<MooseX::Declare|MooseX::Declare> doesn't like. This is fixed in the Git
version of L<MooseX::Declare|MooseX::Declare> but that version (as of this version of L<MooseX::Declare|MooseX::Declare> but that version (as of this
writing) is not on the CPAN. writing) is not on the CPAN.
=head1 DEPENDENCIES =head1 SEE ALSO
L<Moose|Moose>
L<POE|POE>
=head1 AUTHOR
Chris Prather C<< <chris@prather.org> >>
Ash Berlin C<< <ash@cpan.org> >>
Chris Williams C<< <chris@bingosnet.co.uk> >>
Yuval (nothingmuch) Kogman
Torsten Raudssus C<< <getty@cpan.org> >>
=head1 LICENCE AND COPYRIGHT
Copyright (c) 2007-2009, Chris Prather C<< <chris@prather.org> >>, Ash Berlin
C<< <ash@cpan.org> >>, Chris Williams C<< <chris@bingosnet.co.uk> >>, Yuval
(nothingmuch) Kogman, Torsten Raudssus C<< <getty@cpan.org> >>. Some rights reserved.
This module is free software; you can redistribute it and/or
modify it under the same terms as Perl itself. See L<perlartistic>.
=head1 DISCLAIMER OF WARRANTY
BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY =for :list
FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN * L<Moose|Moose>
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES * L<POE|POE>
PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE
ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH
YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
NECESSARY SERVICING, REPAIR, OR CORRECTION.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENCE, BE
LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL,
OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE
THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
15 changes: 4 additions & 11 deletions lib/MooseX/POE/Aliased.pm
Expand Up @@ -3,6 +3,8 @@ use MooseX::POE::Role;


use overload (); use overload ();


# ABSTRACT: A sane alias attribute for your MooseX::POE objects.

use POE; use POE;


has alias => ( has alias => (
Expand Down Expand Up @@ -39,17 +41,12 @@ event _update_alias => sub {
$kernel->alias_set($alias) if defined $alias; $kernel->alias_set($alias) if defined $alias;
}; };


__PACKAGE__ __PACKAGE__;


__END__ __END__
=pod =pod
=head1 NAME
MooseX::POE::Aliased - A sane C<alias> attribute for your L<MooseX::POE>
objects.
=head1 SYNOPSIS =head1 SYNOPSIS
use MooseX::POE; use MooseX::POE;
Expand All @@ -71,9 +68,7 @@ value to be set.
=head1 ATTRIBUTES =head1 ATTRIBUTES
=over 4 =method alias
=item alias
The alias to set for the session. The alias to set for the session.
Expand All @@ -83,8 +78,6 @@ If the value is set at runtime the alias will be updated in the L<POE::Kernel>.
A value of C<undef> inhibits aliasing. A value of C<undef> inhibits aliasing.
=back
=cut =cut
1 change: 1 addition & 0 deletions lib/MooseX/POE/Meta/Method/State.pm
@@ -1,4 +1,5 @@
package MooseX::POE::Meta::Method::State; package MooseX::POE::Meta::Method::State;
# ABSTRACT: Dont look into this, its boring
use strict; use strict;
use Moose; use Moose;
extends qw(Moose::Meta::Method); extends qw(Moose::Meta::Method);
Expand Down
1 change: 1 addition & 0 deletions lib/MooseX/POE/Meta/Role.pm
@@ -1,4 +1,5 @@
package MooseX::POE::Meta::Role; package MooseX::POE::Meta::Role;
# ABSTRACT: Pay no attention to this.
use Moose::Role; use Moose::Role;
with qw(MooseX::POE::Meta::Trait); with qw(MooseX::POE::Meta::Trait);


Expand Down
4 changes: 2 additions & 2 deletions lib/MooseX/POE/Meta/Trait.pm
@@ -1,4 +1,5 @@
package MooseX::POE::Meta::Trait; package MooseX::POE::Meta::Trait;
# ABSTRACT: There be dragons here.
use Moose::Role; use Moose::Role;


use MooseX::POE::Meta::Method::State; use MooseX::POE::Meta::Method::State;
Expand Down Expand Up @@ -27,8 +28,7 @@ sub add_state_method {
my ( $self, $name, $method ) = @_; my ( $self, $name, $method ) = @_;
if ( $self->has_method($name) ) { if ( $self->has_method($name) ) {
my $full_name = $self->get_method($name)->fully_qualified_name; my $full_name = $self->get_method($name)->fully_qualified_name;
confess confess "Cannot add a state method ($name) if a local method ($full_name) is already present";
"Cannot add a state method ($name) if a local method ($full_name) is already present";
} }


$self->add_event($name); $self->add_event($name);
Expand Down
30 changes: 2 additions & 28 deletions lib/MooseX/POE/Meta/Trait/Class.pm
@@ -1,5 +1,5 @@
package MooseX::POE::Meta::Trait::Class; package MooseX::POE::Meta::Trait::Class;

# ABSTRACT: No achmed inside
use Moose::Role; use Moose::Role;


with qw(MooseX::POE::Meta::Trait); with qw(MooseX::POE::Meta::Trait);
Expand Down Expand Up @@ -53,38 +53,12 @@ no Moose::Role;
1; 1;
__END__ __END__
=head1 NAME
MooseX::POE::Meta::Trait::Class
=head1 SYNOPSIS
use MooseX::POE::Meta::Trait::Constructor;
=head1 DESCRIPTION
The MooseX::POE::Meta::Trait::Constructor class implements ...
=head1 METHODS =head1 METHODS
=over =method get_all_events
=item get_all_events
=back
=head1 DEPENDENCIES =head1 DEPENDENCIES
Moose::Role Moose::Role
=head1 AUTHOR
Chris Prather (chris@prather.org)
=head1 LICENCE
Copyright 2009 by Chris Prather.
This software is free. It is licensed under the same terms as Perl itself.
=cut =cut

0 comments on commit 5e333dc

Please sign in to comment.