Permalink
Browse files

Switched to Dist::Zilla

  • Loading branch information...
1 parent 1dd597c commit 5e333dc49965aba3279162d92000e731f9098f47 Torsten Raudssus committed Nov 4, 2010
View
@@ -0,0 +1,2 @@
+MooseX-POE-*
+.build
View
@@ -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
+ Remove useless call to ->_meta_instance (autarch)
View
@@ -1,14 +0,0 @@
-MANIFEST.SKIP
-^\.gitignore$
-^\.git/
-/\.svn/
-^\.svn/
-~$
-\.sw.$
-\.bak$
-\bblib\b
-\bpm_to_blib\b
-^Makefile$
-^Makefile\.old$
-^control/
-^Module-Install-AutoManifest-\d
View
@@ -1,18 +0,0 @@
-# Load the Module::Install bundled in ./inc/
-use inc::Module::Install 0.79;
-
-# Define metadata
-name 'MooseX-POE';
-all_from 'lib/MooseX/POE.pm';
-
-# Specific dependencies
-requires 'Moose' => '0.90';
-requires 'POE' => '1.004';
-
-build_requires 'Test::More' => '0.90';
-
-no_index 'directory' => 'ex';
-
-auto_set_repository;
-auto_manifest;
-WriteAll;
View
@@ -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
View
@@ -1,6 +1,5 @@
package MooseX::POE;
-
-our $VERSION = '0.209';
+# ABSTRACT: The Illicit Love Child of Moose and POE
use Moose ();
use Moose::Exporter;
@@ -37,14 +36,6 @@ sub event {
1;
__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
package Counter;
@@ -104,65 +95,57 @@ or with L<MooseX::Declare|MooseX::Declare>:
=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
-=over
-
-=item event $name $subref
+=method event $name $subref
Create an event handler named $name.
-=back
-
=head1 METHODS
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
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:
-=over
-
-=item get_session_id
+=method get_session_id
Get the internal POE Session ID, this is useful to hand to other POE aware
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.
-=item STARTALL
-
-=item STOPALL
+=method STARTALL
-=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,
I don't have any code that uses it, and thus I can't adequately say that it
@@ -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
arguments.
-2. MooseX::POE attempts to re-export L<Moose|Moose>, which
-L<MooseX::Declare|MooseX::Declare> has already exported in a custom fashion.
+2. MooseX::POE attempts to re-export L<Moose>, which
+L<MooseX::Declare> has already exported in a custom fashion.
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
handles. To work around this you'll need to write:
@@ -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
writing) is not on the CPAN.
-=head1 DEPENDENCIES
-
-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
+=head1 SEE ALSO
-BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
-FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
-OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
-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.
+=for :list
+* L<Moose|Moose>
+* L<POE|POE>
-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.
@@ -3,6 +3,8 @@ use MooseX::POE::Role;
use overload ();
+# ABSTRACT: A sane alias attribute for your MooseX::POE objects.
+
use POE;
has alias => (
@@ -39,17 +41,12 @@ event _update_alias => sub {
$kernel->alias_set($alias) if defined $alias;
};
-__PACKAGE__
+__PACKAGE__;
__END__
=pod
-=head1 NAME
-
-MooseX::POE::Aliased - A sane C<alias> attribute for your L<MooseX::POE>
-objects.
-
=head1 SYNOPSIS
use MooseX::POE;
@@ -71,9 +68,7 @@ value to be set.
=head1 ATTRIBUTES
-=over 4
-
-=item alias
+=method alias
The alias to set for the session.
@@ -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.
-=back
-
=cut
@@ -1,4 +1,5 @@
package MooseX::POE::Meta::Method::State;
+# ABSTRACT: Dont look into this, its boring
use strict;
use Moose;
extends qw(Moose::Meta::Method);
@@ -1,4 +1,5 @@
package MooseX::POE::Meta::Role;
+# ABSTRACT: Pay no attention to this.
use Moose::Role;
with qw(MooseX::POE::Meta::Trait);
@@ -1,4 +1,5 @@
package MooseX::POE::Meta::Trait;
+# ABSTRACT: There be dragons here.
use Moose::Role;
use MooseX::POE::Meta::Method::State;
@@ -27,8 +28,7 @@ sub add_state_method {
my ( $self, $name, $method ) = @_;
if ( $self->has_method($name) ) {
my $full_name = $self->get_method($name)->fully_qualified_name;
- confess
-"Cannot add a state method ($name) if a local method ($full_name) is already present";
+ confess "Cannot add a state method ($name) if a local method ($full_name) is already present";
}
$self->add_event($name);
@@ -1,5 +1,5 @@
package MooseX::POE::Meta::Trait::Class;
-
+# ABSTRACT: No achmed inside
use Moose::Role;
with qw(MooseX::POE::Meta::Trait);
@@ -53,38 +53,12 @@ no Moose::Role;
1;
__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
-=over
-
-=item get_all_events
-
-=back
+=method get_all_events
=head1 DEPENDENCIES
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
Oops, something went wrong.

0 comments on commit 5e333dc

Please sign in to comment.