diff options
author | Jesse Luehrs <doy@tozt.net> | 2010-06-15 01:36:37 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2010-06-15 01:36:37 -0500 |
commit | 60c5f48aff6a579ce22bd4b4245f7be346609901 (patch) | |
tree | 7025b94a0470cef60d9c3694d0dbf247f5b30aaa | |
parent | 571bfa3b91ff5567338948776b6fce84d3ede09e (diff) | |
download | moosex-nonmoose-60c5f48aff6a579ce22bd4b4245f7be346609901.tar.gz moosex-nonmoose-60c5f48aff6a579ce22bd4b4245f7be346609901.zip |
convert to new dzil stuff
-rw-r--r-- | .gitignore | 13 | ||||
-rw-r--r-- | Changes | 68 | ||||
-rw-r--r-- | dist.ini | 5 | ||||
-rw-r--r-- | lib/MooseX/NonMoose.pm | 52 | ||||
-rw-r--r-- | lib/MooseX/NonMoose/InsideOut.pm | 18 | ||||
-rw-r--r-- | lib/MooseX/NonMoose/Meta/Role/Class.pm | 18 | ||||
-rw-r--r-- | lib/MooseX/NonMoose/Meta/Role/Constructor.pm | 18 | ||||
-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-methods.t (renamed from t/002-methods.t) | 0 | ||||
-rw-r--r-- | t/03-attrs.t (renamed from t/003-attrs.t) | 0 | ||||
-rw-r--r-- | t/04-multi-level.t (renamed from t/004-multi-level.t) | 0 | ||||
-rw-r--r-- | t/05-moose.t (renamed from t/005-moose.t) | 0 | ||||
-rw-r--r-- | t/06-disable.t (renamed from t/006-disable.t) | 0 | ||||
-rw-r--r-- | t/10-immutable.t (renamed from t/010-immutable.t) | 0 | ||||
-rw-r--r-- | t/20-BUILD.t (renamed from t/020-BUILD.t) | 0 | ||||
-rw-r--r-- | t/21-BUILDARGS.t (renamed from t/021-BUILDARGS.t) | 0 | ||||
-rw-r--r-- | t/22-replaced-constructor.t (renamed from t/022-replaced-constructor.t) | 0 | ||||
-rw-r--r-- | t/23-FOREIGNBUILDARGS.t (renamed from t/023-FOREIGNBUILDARGS.t) | 0 | ||||
-rw-r--r-- | t/24-nonmoose-moose-nonmoose.t (renamed from t/024-nonmoose-moose-nonmoose.t) | 0 | ||||
-rw-r--r-- | t/25-constructor-method-calls.t (renamed from t/025-constructor-method-calls.t) | 0 | ||||
-rw-r--r-- | t/30-only-metaclass-trait.t (renamed from t/030-only-metaclass-trait.t) | 0 | ||||
-rw-r--r-- | t/31-moose-exporter.t (renamed from t/031-moose-exporter.t) | 0 | ||||
-rw-r--r-- | t/32-moosex-insideout.t (renamed from t/032-moosex-insideout.t) | 0 | ||||
-rw-r--r-- | t/33-moosex-globref.t (renamed from t/033-moosex-globref.t) | 0 | ||||
-rw-r--r-- | t/40-destructor.t (renamed from t/040-destructor.t) | 0 | ||||
-rw-r--r-- | t/50-buggy-constructor-inlining.t (renamed from t/100-buggy-constructor-inlining.t) | 0 | ||||
-rw-r--r-- | t/51-buggy-constructors.t (renamed from t/101-buggy-constructors.t) | 0 | ||||
-rw-r--r-- | weaver.ini | 37 |
29 files changed, 96 insertions, 142 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cb39f32 --- /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-NonMoose-* @@ -1,44 +1,46 @@ -Revision history for MooseX::NonMoose +Revision history for MooseX-NonMoose -0.08 05/20/2010 - Fix inheriting from classes which don't bless their instances into the - correct class when subclassing (jhallock). +{{$NEXT}} - Update for things fixed in latest Moose. +0.08 2010-05-20 + - Fix inheriting from classes which don't bless their instances into the + correct class when subclassing (jhallock). -0.07 09/27/2009 - Start adding support for non-Moose destructors. Destructor inlining isn't - supported yet, since Moose isn't quite flexible enough there for it to be - more than an annoying hack, but this should still work with immutable - classes anyway. + - Update for things fixed in latest Moose. -0.06 09/27/2009 - defining a custom constructor in a class using mx-nonmoose now works +0.07 2009-09-27 + - Start adding support for non-Moose destructors. Destructor inlining + isn't supported yet, since Moose isn't quite flexible enough there for + it to be more than an annoying hack, but this should still work with + immutable classes anyway. - use a less broken test for whether or not a superclass has an inlined - constructor (fixes issue uncovered by fixes to Moose's metaclass - compatibility fixing) +0.06 2009-09-27 + - defining a custom constructor in a class using mx-nonmoose now works -0.05 06/24/2009 - gaaaaah, packaging is so stupid (remove stray test.pl file) + - use a less broken test for whether or not a superclass has an inlined + constructor (fixes issue uncovered by fixes to Moose's metaclass + compatibility fixing) -0.04 06/23/2009 - Add tests and official support for alternate instance metaclasses, such as - MooseX::GlobRef and MooseX::InsideOut - including supplying a custom - exporter MooseX::NonMoose::InsideOut which should work in all possible - cases, when just using the same hash that the nonmoose class is using would - break +0.05 2009-06-24 + - gaaaaah, packaging is so stupid (remove stray test.pl file) - Fix a couple issues with inheriting from MooseX::NonMoose classes - make - sure FOREIGNBUILDARGS is only called once, and fix some issues with - immutability +0.04 2009-06-23 + - Add tests and official support for alternate instance metaclasses, such + as MooseX::GlobRef and MooseX::InsideOut - including supplying a custom + exporter MooseX::NonMoose::InsideOut which should work in all possible + cases, when just using the same hash that the nonmoose class is using + would break -0.03 05/06/2009 - Add a FOREIGNBUILDARGS method to support modifying the argument list passed - to the non-Moose constructor + - Fix a couple issues with inheriting from MooseX::NonMoose classes - + make sure FOREIGNBUILDARGS is only called once, and fix some issues + with immutability -0.02 04/29/2009 - A few minor doc fixes +0.03 2009-05-06 + - Add a FOREIGNBUILDARGS method to support modifying the argument list + passed to the non-Moose constructor -0.01 04/20/2009 - Initial release +0.02 2009-04-29 + - A few minor doc fixes + +0.01 2009-04-20 + - Initial release @@ -1,11 +1,10 @@ name = MooseX-NonMoose -version = 0.08 author = Jesse Luehrs <doy at tozt dot net> license = Perl_5 copyright_holder = Jesse Luehrs -abstract = foreign inheritance for Moose -[@Classic] +[@DOY] +dist = MooseX-NonMoose [Prereq] Moose = 1.05 diff --git a/lib/MooseX/NonMoose.pm b/lib/MooseX/NonMoose.pm index a05ca30..cd14526 100644 --- a/lib/MooseX/NonMoose.pm +++ b/lib/MooseX/NonMoose.pm @@ -1,9 +1,6 @@ package MooseX::NonMoose; use Moose::Exporter; - -=head1 NAME - -MooseX::NonMoose - easy subclassing of non-Moose classes +# ABSTRACT: easy subclassing of non-Moose classes =head1 SYNOPSIS @@ -89,7 +86,7 @@ sub init_meta { =back -=head1 BUGS/CAVEATS +=head1 CAVEATS =over 4 @@ -112,56 +109,19 @@ in the future. =back -Please report any bugs through RT: email -C<bug-moosex-nonmoose at rt.cpan.org>, or browse to -L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=MooseX-NonMoose>. - =head1 SEE ALSO -L<Moose::Cookbook::FAQ/How do I make non-Moose constructors work with Moose?> - -L<MooseX::Alien> - serves the same purpose, but with a radically different (and -far more hackish) implementation. - -=head1 SUPPORT - -You can find this documentation for this module with the perldoc command. - - perldoc MooseX::NonMoose - -You can also look for information at: - =over 4 -=item * AnnoCPAN: Annotated CPAN documentation - -L<http://annocpan.org/dist/MooseX-NonMoose> +=item * L<Moose::Cookbook::FAQ/How do I make non-Moose constructors work with Moose?> -=item * CPAN Ratings +=item * L<MooseX::Alien> -L<http://cpanratings.perl.org/d/MooseX-NonMoose> - -=item * RT: CPAN's request tracker - -L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=MooseX-NonMoose> - -=item * Search CPAN - -L<http://search.cpan.org/dist/MooseX-NonMoose> +serves the same purpose, but with a radically different (and far more hackish) +implementation. =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/NonMoose/InsideOut.pm b/lib/MooseX/NonMoose/InsideOut.pm index 58bdcbd..8946003 100644 --- a/lib/MooseX/NonMoose/InsideOut.pm +++ b/lib/MooseX/NonMoose/InsideOut.pm @@ -1,9 +1,6 @@ package MooseX::NonMoose::InsideOut; use Moose::Exporter; - -=head1 NAME - -MooseX::NonMoose::InsideOut - easy subclassing of non-Moose non-hashref classes +# ABSTRACT: easy subclassing of non-Moose non-hashref classes =head1 SYNOPSIS @@ -51,17 +48,4 @@ sub init_meta { $package->$init_meta(@_); } -=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/NonMoose/Meta/Role/Class.pm b/lib/MooseX/NonMoose/Meta/Role/Class.pm index cc7275e..1b90c7d 100644 --- a/lib/MooseX/NonMoose/Meta/Role/Class.pm +++ b/lib/MooseX/NonMoose/Meta/Role/Class.pm @@ -1,10 +1,7 @@ package MooseX::NonMoose::Meta::Role::Class; use Moose::Role; use List::MoreUtils qw(any); - -=head1 NAME - -MooseX::NonMoose::Meta::Role::Class - metaclass trait for L<MooseX::NonMoose> +# ABSTRACT: metaclass trait for L<MooseX::NonMoose> =head1 SYNOPSIS @@ -234,17 +231,4 @@ around superclasses => sub { no Moose::Role; -=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/NonMoose/Meta/Role/Constructor.pm b/lib/MooseX/NonMoose/Meta/Role/Constructor.pm index 50ddec6..38c70f0 100644 --- a/lib/MooseX/NonMoose/Meta/Role/Constructor.pm +++ b/lib/MooseX/NonMoose/Meta/Role/Constructor.pm @@ -1,9 +1,6 @@ package MooseX::NonMoose::Meta::Role::Constructor; use Moose::Role; - -=head1 NAME - -MooseX::NonMoose::Meta::Role::Constructor - constructor method trait for L<MooseX::NonMoose> +# ABSTRACT: constructor method trait for L<MooseX::NonMoose> =head1 SYNOPSIS @@ -79,17 +76,4 @@ sub _generate_instance { no Moose::Role; -=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 03ac467..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::NonMoose') - or ::BAIL_OUT("couldn't load MooseX::NonMoose"); diff --git a/t/001-basic.t b/t/01-basic.t index a448abf..a448abf 100644 --- a/t/001-basic.t +++ b/t/01-basic.t diff --git a/t/002-methods.t b/t/02-methods.t index 03b8101..03b8101 100644 --- a/t/002-methods.t +++ b/t/02-methods.t diff --git a/t/003-attrs.t b/t/03-attrs.t index 6b25849..6b25849 100644 --- a/t/003-attrs.t +++ b/t/03-attrs.t diff --git a/t/004-multi-level.t b/t/04-multi-level.t index 4cd0465..4cd0465 100644 --- a/t/004-multi-level.t +++ b/t/04-multi-level.t diff --git a/t/005-moose.t b/t/05-moose.t index 33a14b1..33a14b1 100644 --- a/t/005-moose.t +++ b/t/05-moose.t diff --git a/t/006-disable.t b/t/06-disable.t index 6d652ab..6d652ab 100644 --- a/t/006-disable.t +++ b/t/06-disable.t diff --git a/t/010-immutable.t b/t/10-immutable.t index 36430eb..36430eb 100644 --- a/t/010-immutable.t +++ b/t/10-immutable.t diff --git a/t/020-BUILD.t b/t/20-BUILD.t index 81de930..81de930 100644 --- a/t/020-BUILD.t +++ b/t/20-BUILD.t diff --git a/t/021-BUILDARGS.t b/t/21-BUILDARGS.t index d6aa973..d6aa973 100644 --- a/t/021-BUILDARGS.t +++ b/t/21-BUILDARGS.t diff --git a/t/022-replaced-constructor.t b/t/22-replaced-constructor.t index c7b2e44..c7b2e44 100644 --- a/t/022-replaced-constructor.t +++ b/t/22-replaced-constructor.t diff --git a/t/023-FOREIGNBUILDARGS.t b/t/23-FOREIGNBUILDARGS.t index 43529dd..43529dd 100644 --- a/t/023-FOREIGNBUILDARGS.t +++ b/t/23-FOREIGNBUILDARGS.t diff --git a/t/024-nonmoose-moose-nonmoose.t b/t/24-nonmoose-moose-nonmoose.t index faa6f6f..faa6f6f 100644 --- a/t/024-nonmoose-moose-nonmoose.t +++ b/t/24-nonmoose-moose-nonmoose.t diff --git a/t/025-constructor-method-calls.t b/t/25-constructor-method-calls.t index 7806b44..7806b44 100644 --- a/t/025-constructor-method-calls.t +++ b/t/25-constructor-method-calls.t diff --git a/t/030-only-metaclass-trait.t b/t/30-only-metaclass-trait.t index 07be5d8..07be5d8 100644 --- a/t/030-only-metaclass-trait.t +++ b/t/30-only-metaclass-trait.t diff --git a/t/031-moose-exporter.t b/t/31-moose-exporter.t index 8fbfbae..8fbfbae 100644 --- a/t/031-moose-exporter.t +++ b/t/31-moose-exporter.t diff --git a/t/032-moosex-insideout.t b/t/32-moosex-insideout.t index 128c437..128c437 100644 --- a/t/032-moosex-insideout.t +++ b/t/32-moosex-insideout.t diff --git a/t/033-moosex-globref.t b/t/33-moosex-globref.t index be8c26b..be8c26b 100644 --- a/t/033-moosex-globref.t +++ b/t/33-moosex-globref.t diff --git a/t/040-destructor.t b/t/40-destructor.t index f2c88be..f2c88be 100644 --- a/t/040-destructor.t +++ b/t/40-destructor.t diff --git a/t/100-buggy-constructor-inlining.t b/t/50-buggy-constructor-inlining.t index 591fae0..591fae0 100644 --- a/t/100-buggy-constructor-inlining.t +++ b/t/50-buggy-constructor-inlining.t diff --git a/t/101-buggy-constructors.t b/t/51-buggy-constructors.t index 066498d..066498d 100644 --- a/t/101-buggy-constructors.t +++ b/t/51-buggy-constructors.t diff --git a/weaver.ini b/weaver.ini new file mode 100644 index 0000000..31f851b --- /dev/null +++ b/weaver.ini @@ -0,0 +1,37 @@ +[@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 + +[Generic / SEEALSO] +header = SEE ALSO + +[Template / SUPPORT] +template = ~/.dzil/pod_templates/support.section +main_module_only = 1 + +[Authors] +[Legal] |