diff options
author | Jesse Luehrs <doy@tozt.net> | 2010-07-18 23:58:56 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2010-07-19 00:03:12 -0500 |
commit | cb170931288a0dbef03fece2a0fa01decbd5dfbb (patch) | |
tree | abf1e0c128bdb1932b6cd7d33a44a7d45511d951 | |
parent | 2f257268ef4fe266b0b24bf182242961cfd85ce2 (diff) | |
download | moosex-abc-0.05.tar.gz moosex-abc-0.05.zip |
update dzil stuff0.05
-rw-r--r-- | .gitignore | 13 | ||||
-rw-r--r-- | Changes | 26 | ||||
-rw-r--r-- | dist.ini | 9 | ||||
-rw-r--r-- | lib/MooseX/ABC.pm | 61 | ||||
-rw-r--r-- | lib/MooseX/ABC/Role/Object.pm | 46 | ||||
-rw-r--r-- | lib/MooseX/ABC/Trait/Class.pm | 46 | ||||
-rw-r--r-- | t/000-load.t | 9 | ||||
-rw-r--r-- | t/01-basic.t (renamed from t/001-basic.t) | 0 | ||||
-rw-r--r-- | t/02-immutable.t (renamed from t/002-immutable.t) | 0 | ||||
-rw-r--r-- | t/03-custom-constructor.t (renamed from t/003-custom-constructor.t) | 0 | ||||
-rw-r--r-- | t/04-abstract-subclass.t (renamed from t/004-abstract-subclass.t) | 0 | ||||
-rw-r--r-- | weaver.ini | 36 |
12 files changed, 76 insertions, 170 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5030425 --- /dev/null +++ b/.gitignore @@ -0,0 +1,13 @@ +cover_db +META.yml +Makefile +blib +inc +pm_to_blib +MANIFEST +Makefile.old +nytprof.out +MANIFEST.bak +*.sw[po] +.build +MooseX-ABC-* @@ -1,18 +1,18 @@ -Revision history for MooseX::ABC +Revision history for MooseX-ABC -0.05 7/18/2010 - Fix deprecation warning in newer Moose +{{$NEXT}} + - Fix deprecation warning in newer Moose. -0.04 12/20/2009 - No actual changes, just repackaging with a new Dist::Zilla that doesn't - mess up POD stuff +0.04 2009-12-20 + - No actual changes, just repackaging with a new Dist::Zilla that doesn't + mess up POD stuff. -0.03 12/20/2009 - Allow creation of abstract subclasses of abstract classes +0.03 2009-12-20 + - Allow creation of abstract subclasses of abstract classes. -0.02 7/10/2009 - Fix a warning on make_immutable when extending a class extended from an - abstract class +0.02 2009-07-10 + - Fix a warning on make_immutable when extending a class extended from an + abstract class. -0.01 7/03/2009 - Initial release +0.01 2009-07-03 + - Initial release. @@ -1,12 +1,13 @@ name = MooseX-ABC -version = 0.04 author = Jesse Luehrs <doy at tozt dot net> license = Perl_5 copyright_holder = Jesse Luehrs -abstract = abstract base classes for Moose -[@Classic] +[@DOY] +dist = MooseX-ABC [Prereq] -Moose = 0.90 +Moose = 0.94 + +[Prereq / TestRequires] Test::Exception = 0 diff --git a/lib/MooseX/ABC.pm b/lib/MooseX/ABC.pm index ee31435..452446a 100644 --- a/lib/MooseX/ABC.pm +++ b/lib/MooseX/ABC.pm @@ -1,10 +1,7 @@ package MooseX::ABC; use Moose (); use Moose::Exporter; - -=head1 NAME - -MooseX::ABC - abstract base classes for Moose +# ABSTRACT: abstract base classes for Moose =head1 SYNOPSIS @@ -44,11 +41,7 @@ their ancestors' required methods. =cut -=head1 EXPORTS - -=cut - -=head2 requires METHOD_NAMES +=func requires METHOD_NAMES Takes a list of methods that classes inheriting from this one must implement. If a class inherits from this class without implementing each method listed @@ -78,56 +71,16 @@ sub init_meta { return $ret; } -=head1 BUGS - -No known bugs. - -Please report any bugs through RT: email -C<bug-moosex-abc at rt.cpan.org>, or browse to -L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=MooseX-ABC>. - =head1 SEE ALSO -L<Moose>, L<Moose::Role> - -=head1 SUPPORT - -You can find this documentation for this module with the perldoc command. - - perldoc MooseX::ABC - -You can also look for information at: - -=over 4 - -=item * AnnoCPAN: Annotated CPAN documentation - -L<http://annocpan.org/dist/MooseX-ABC> - -=item * CPAN Ratings - -L<http://cpanratings.perl.org/d/MooseX-ABC> - -=item * RT: CPAN's request tracker - -L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=MooseX-ABC> - -=item * Search CPAN - -L<http://search.cpan.org/dist/MooseX-ABC> - -=back - -=head1 AUTHOR - - Jesse Luehrs <doy at tozt dot net> +L<Moose> +L<Moose::Role> -=head1 COPYRIGHT AND LICENSE +=begin Pod::Coverage -This software is copyright (c) 2009 by Jesse Luehrs. + init_meta -This is free software; you can redistribute it and/or modify it under -the same terms as perl itself. +=end Pod::Coverage =cut diff --git a/lib/MooseX/ABC/Role/Object.pm b/lib/MooseX/ABC/Role/Object.pm index 765ef64..fd56386 100644 --- a/lib/MooseX/ABC/Role/Object.pm +++ b/lib/MooseX/ABC/Role/Object.pm @@ -1,9 +1,6 @@ package MooseX::ABC::Role::Object; use Moose::Role; - -=head1 NAME - -MooseX::ABC::Role::Object - base object role for L<MooseX::ABC> +# ABSTRACT: base object role for L<MooseX::ABC> =head1 DESCRIPTION @@ -23,45 +20,4 @@ around new => sub { no Moose::Role; -=head1 SUPPORT - -You can find this documentation for this module with the perldoc command. - - perldoc MooseX::ABC - -You can also look for information at: - -=over 4 - -=item * AnnoCPAN: Annotated CPAN documentation - -L<http://annocpan.org/dist/MooseX-ABC> - -=item * CPAN Ratings - -L<http://cpanratings.perl.org/d/MooseX-ABC> - -=item * RT: CPAN's request tracker - -L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=MooseX-ABC> - -=item * Search CPAN - -L<http://search.cpan.org/dist/MooseX-ABC> - -=back - -=head1 AUTHOR - - Jesse Luehrs <doy at tozt dot net> - -=head1 COPYRIGHT AND LICENSE - -This software is copyright (c) 2009 by Jesse Luehrs. - -This is free software; you can redistribute it and/or modify it under -the same terms as perl itself. - -=cut - 1; diff --git a/lib/MooseX/ABC/Trait/Class.pm b/lib/MooseX/ABC/Trait/Class.pm index e54e70b..1b221b0 100644 --- a/lib/MooseX/ABC/Trait/Class.pm +++ b/lib/MooseX/ABC/Trait/Class.pm @@ -1,9 +1,6 @@ package MooseX::ABC::Trait::Class; use Moose::Role; - -=head1 NAME - -MooseX::ABC::Trait::Class - metaclass trait for L<MooseX::ABC> +# ABSTRACT: metaclass trait for L<MooseX::ABC> =head1 DESCRIPTION @@ -75,45 +72,4 @@ around _immutable_options => sub { no Moose::Role; -=head1 SUPPORT - -You can find this documentation for this module with the perldoc command. - - perldoc MooseX::ABC - -You can also look for information at: - -=over 4 - -=item * AnnoCPAN: Annotated CPAN documentation - -L<http://annocpan.org/dist/MooseX-ABC> - -=item * CPAN Ratings - -L<http://cpanratings.perl.org/d/MooseX-ABC> - -=item * RT: CPAN's request tracker - -L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=MooseX-ABC> - -=item * Search CPAN - -L<http://search.cpan.org/dist/MooseX-ABC> - -=back - -=head1 AUTHOR - - Jesse Luehrs <doy at tozt dot net> - -=head1 COPYRIGHT AND LICENSE - -This software is copyright (c) 2009 by Jesse Luehrs. - -This is free software; you can redistribute it and/or modify it under -the same terms as perl itself. - -=cut - 1; diff --git a/t/000-load.t b/t/000-load.t deleted file mode 100644 index 2854494..0000000 --- a/t/000-load.t +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env perl -use strict; -use warnings; -use Test::More tests => 1; - -package Foo; -use Moose; -::use_ok('MooseX::ABC') - or ::BAIL_OUT("couldn't load MooseX::ABC"); diff --git a/t/001-basic.t b/t/01-basic.t index d5951d4..d5951d4 100644 --- a/t/001-basic.t +++ b/t/01-basic.t diff --git a/t/002-immutable.t b/t/02-immutable.t index 66424da..66424da 100644 --- a/t/002-immutable.t +++ b/t/02-immutable.t diff --git a/t/003-custom-constructor.t b/t/03-custom-constructor.t index cb12835..cb12835 100644 --- a/t/003-custom-constructor.t +++ b/t/03-custom-constructor.t diff --git a/t/004-abstract-subclass.t b/t/04-abstract-subclass.t index 3542d07..3542d07 100644 --- a/t/004-abstract-subclass.t +++ b/t/04-abstract-subclass.t diff --git a/weaver.ini b/weaver.ini new file mode 100644 index 0000000..219a165 --- /dev/null +++ b/weaver.ini @@ -0,0 +1,36 @@ +[@CorePrep] + +[Name] +[Version] + +[Region / prelude] + +[Generic / SYNOPSIS] +[Generic / DESCRIPTION] +[Generic / OVERVIEW] + +[Collect / ATTRIBUTES] +command = attr + +[Collect / METHODS] +command = method + +[Collect / FUNCTIONS] +command = func + +[Leftovers] + +[Region / postlude] + +[Template / BUGS] +template = ~/.dzil/pod_templates/bugs.section +main_module_only = 1 + +[SeeAlso] + +[Template / SUPPORT] +template = ~/.dzil/pod_templates/support.section +main_module_only = 1 + +[Authors] +[Legal] |