r66447 - in /branches/upstream/libmoosex-role-parameterized-perl/current: ./ lib/MooseX/Role/ lib/MooseX/Role/Parameterized/ lib/MooseX/Role/Parameterized/Meta/ lib/MooseX/Role/Parameterized/Meta/Role/ lib/MooseX/Role/Parameterized/Meta/Trait/
carnil at users.alioth.debian.org
carnil at users.alioth.debian.org
Sun Dec 26 08:29:03 UTC 2010
Author: carnil
Date: Sun Dec 26 08:28:48 2010
New Revision: 66447
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=66447
Log:
[svn-upgrade] new version libmoosex-role-parameterized-perl (0.23)
Modified:
branches/upstream/libmoosex-role-parameterized-perl/current/Changes
branches/upstream/libmoosex-role-parameterized-perl/current/META.yml
branches/upstream/libmoosex-role-parameterized-perl/current/lib/MooseX/Role/Parameterized.pm
branches/upstream/libmoosex-role-parameterized-perl/current/lib/MooseX/Role/Parameterized/Extending.pod
branches/upstream/libmoosex-role-parameterized-perl/current/lib/MooseX/Role/Parameterized/Meta/Parameter.pm
branches/upstream/libmoosex-role-parameterized-perl/current/lib/MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm
branches/upstream/libmoosex-role-parameterized-perl/current/lib/MooseX/Role/Parameterized/Meta/Role/Parameterized.pm
branches/upstream/libmoosex-role-parameterized-perl/current/lib/MooseX/Role/Parameterized/Meta/Trait/Parameterized.pm
branches/upstream/libmoosex-role-parameterized-perl/current/lib/MooseX/Role/Parameterized/Parameters.pm
Modified: branches/upstream/libmoosex-role-parameterized-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmoosex-role-parameterized-perl/current/Changes?rev=66447&op=diff
==============================================================================
--- branches/upstream/libmoosex-role-parameterized-perl/current/Changes (original)
+++ branches/upstream/libmoosex-role-parameterized-perl/current/Changes Sun Dec 26 08:28:48 2010
@@ -1,4 +1,8 @@
Changes for MooseX-Role-Parameterized
+
+0.23 December 25, 2010
+ * Merry Christmas!
+ * Make MooseX::Role::Parameterized::Extending more instructive. Hopefully.
0.22 November 26, 2010
* The test suite now uses Test::Fatal instead of Test::Exception (Karen
Modified: branches/upstream/libmoosex-role-parameterized-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmoosex-role-parameterized-perl/current/META.yml?rev=66447&op=diff
==============================================================================
--- branches/upstream/libmoosex-role-parameterized-perl/current/META.yml (original)
+++ branches/upstream/libmoosex-role-parameterized-perl/current/META.yml Sun Dec 26 08:28:48 2010
@@ -27,4 +27,4 @@
homepage: http://github.com/sartak/MooseX-Role-Parameterized/tree
license: http://dev.perl.org/licenses/
repository: git://github.com/sartak/MooseX-Role-Parameterized.git
-version: 0.22
+version: 0.23
Modified: branches/upstream/libmoosex-role-parameterized-perl/current/lib/MooseX/Role/Parameterized.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmoosex-role-parameterized-perl/current/lib/MooseX/Role/Parameterized.pm?rev=66447&op=diff
==============================================================================
--- branches/upstream/libmoosex-role-parameterized-perl/current/lib/MooseX/Role/Parameterized.pm (original)
+++ branches/upstream/libmoosex-role-parameterized-perl/current/lib/MooseX/Role/Parameterized.pm Sun Dec 26 08:28:48 2010
@@ -7,7 +7,7 @@
use MooseX::Role::Parameterized::Meta::Role::Parameterizable;
-our $VERSION = '0.22';
+our $VERSION = '0.23';
our $CURRENT_METACLASS;
Moose::Exporter->setup_import_methods(
Modified: branches/upstream/libmoosex-role-parameterized-perl/current/lib/MooseX/Role/Parameterized/Extending.pod
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmoosex-role-parameterized-perl/current/lib/MooseX/Role/Parameterized/Extending.pod?rev=66447&op=diff
==============================================================================
--- branches/upstream/libmoosex-role-parameterized-perl/current/lib/MooseX/Role/Parameterized/Extending.pod (original)
+++ branches/upstream/libmoosex-role-parameterized-perl/current/lib/MooseX/Role/Parameterized/Extending.pod Sun Dec 26 08:28:48 2010
@@ -6,37 +6,48 @@
=head1 DESCRIPTION
-There are heaps of useful modules in the MooseX namespace that you can use to
-make your roles more powerful. However, they do not always work out of the box
-with MooseX::Role::Parameterized, but it's fairly straight-forward to achieve
-the functionality you desire.
+There are heaps of useful modules in the C<MooseX> namespace that you can use
+to make your roles more powerful. However, they do not always work out of the
+box with L<MooseX::Role::Parameterized>, but it's fairly straight-forward to
+achieve the functionality you desire.
-MooseX::Role::Parameterized was designed to be as extensible as the rest of
-Moose, and it is now possible to apply custom traits to the generated role,
-giving them the functionality provided in MooseX modules. In this example, we
-will look at applying the fake trait 'MooseX::MagicRole' to a parameterized
+L<MooseX::Role::Parameterized> was designed to be as extensible as the rest of
+L<Moose>, and as such it is possible to apply custom traits to both the
+parameterizable role or the ordinary roles they generate. In this example, we
+will look at applying the fake trait C<MooseX::MagicRole> to a parameterizable
role.
-The first we need to do is define a new metaclass for our parameterized role.
-To get MooseX::Role::Parameterized to apply this metaclass to our roles, we
-need a little bit of glue first:
+First we need to define a new metaclass for our parameterizable role.
package MyApp::Meta::Role::Parameterizable;
use Moose;
extends 'MooseX::Role::Parameterized::Meta::Role::Parameterizable';
with 'MooseX::MagicRole';
- sub parameterized_role_metaclass { 'MyApp::Meta::Role::Parameterized' }
-Now we can take advantage of this by specifying our glue metaclass to
-MooseX::Role::Parameterized:
+This is a class (observe that it uses L<Moose>, not L<Moose::Role>) which
+extends the class which governs parameterizable roles.
+L<MooseX::Role::Parameterized::Meta::Role::Parameterizable> is the metaclass
+that packages using L<MooseX::Role::Parameterized> receive by default.
+
+Note that the class we are extending,
+L<MooseX::Role::Parameterized::Meta::Role::ParameterizB<I<able>>|MooseX::Role::Parameterized::Meta::Role::Parameterizable>,
+is entirely distinct from the similarly-named class which governs the
+ordinary roles that parameterized roles generate. An instance of
+L<MooseX::Role::Parameterized::Meta::Role::ParameterizB<I<ed>>|MooseX::Role::Parameterized>
+represents a role with its parameters already bound.
+
+Now we can take advantage of our new subclass by specifying that we want to use
+C<MyApp::Meta::Role::Parameterizable> as our metaclass when importing
+L<MooseX::Role::Parameterized>:
package MyApp::Role;
use MooseX::Role::Parameterized -metaclass => 'MyApp::Meta::Role::Parameterizable';
role {
+ ...
}
-And there you go! MyApp::Role now has the MooseX::MagicRole trait applied.
+And there you go! C<MyApp::Role> now has the C<MooseX::MagicRole> trait applied.
=cut
Modified: branches/upstream/libmoosex-role-parameterized-perl/current/lib/MooseX/Role/Parameterized/Meta/Parameter.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmoosex-role-parameterized-perl/current/lib/MooseX/Role/Parameterized/Meta/Parameter.pm?rev=66447&op=diff
==============================================================================
--- branches/upstream/libmoosex-role-parameterized-perl/current/lib/MooseX/Role/Parameterized/Meta/Parameter.pm (original)
+++ branches/upstream/libmoosex-role-parameterized-perl/current/lib/MooseX/Role/Parameterized/Meta/Parameter.pm Sun Dec 26 08:28:48 2010
@@ -2,7 +2,7 @@
use Moose;
extends 'Moose::Meta::Attribute';
-our $VERSION = '0.22';
+our $VERSION = '0.23';
# This doesn't actually do anything because _process_options does not consult
# the default value of "is". hrm.
Modified: branches/upstream/libmoosex-role-parameterized-perl/current/lib/MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmoosex-role-parameterized-perl/current/lib/MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm?rev=66447&op=diff
==============================================================================
--- branches/upstream/libmoosex-role-parameterized-perl/current/lib/MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm (original)
+++ branches/upstream/libmoosex-role-parameterized-perl/current/lib/MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm Sun Dec 26 08:28:48 2010
@@ -2,7 +2,7 @@
use Moose;
extends 'Moose::Meta::Role';
-our $VERSION = '0.22';
+our $VERSION = '0.23';
use MooseX::Role::Parameterized::Meta::Role::Parameterized;
use MooseX::Role::Parameterized::Meta::Parameter;
Modified: branches/upstream/libmoosex-role-parameterized-perl/current/lib/MooseX/Role/Parameterized/Meta/Role/Parameterized.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmoosex-role-parameterized-perl/current/lib/MooseX/Role/Parameterized/Meta/Role/Parameterized.pm?rev=66447&op=diff
==============================================================================
--- branches/upstream/libmoosex-role-parameterized-perl/current/lib/MooseX/Role/Parameterized/Meta/Role/Parameterized.pm (original)
+++ branches/upstream/libmoosex-role-parameterized-perl/current/lib/MooseX/Role/Parameterized/Meta/Role/Parameterized.pm Sun Dec 26 08:28:48 2010
@@ -3,7 +3,7 @@
extends 'Moose::Meta::Role';
with 'MooseX::Role::Parameterized::Meta::Trait::Parameterized';
-our $VERSION = '0.22';
+our $VERSION = '0.23';
__PACKAGE__->meta->make_immutable;
no Moose;
Modified: branches/upstream/libmoosex-role-parameterized-perl/current/lib/MooseX/Role/Parameterized/Meta/Trait/Parameterized.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmoosex-role-parameterized-perl/current/lib/MooseX/Role/Parameterized/Meta/Trait/Parameterized.pm?rev=66447&op=diff
==============================================================================
--- branches/upstream/libmoosex-role-parameterized-perl/current/lib/MooseX/Role/Parameterized/Meta/Trait/Parameterized.pm (original)
+++ branches/upstream/libmoosex-role-parameterized-perl/current/lib/MooseX/Role/Parameterized/Meta/Trait/Parameterized.pm Sun Dec 26 08:28:48 2010
@@ -1,7 +1,7 @@
package MooseX::Role::Parameterized::Meta::Trait::Parameterized;
use Moose::Role;
-our $VERSION = '0.22';
+our $VERSION = '0.23';
use MooseX::Role::Parameterized::Parameters;
Modified: branches/upstream/libmoosex-role-parameterized-perl/current/lib/MooseX/Role/Parameterized/Parameters.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libmoosex-role-parameterized-perl/current/lib/MooseX/Role/Parameterized/Parameters.pm?rev=66447&op=diff
==============================================================================
--- branches/upstream/libmoosex-role-parameterized-perl/current/lib/MooseX/Role/Parameterized/Parameters.pm (original)
+++ branches/upstream/libmoosex-role-parameterized-perl/current/lib/MooseX/Role/Parameterized/Parameters.pm Sun Dec 26 08:28:48 2010
@@ -1,7 +1,7 @@
package MooseX::Role::Parameterized::Parameters;
use Moose;
-our $VERSION = '0.22';
+our $VERSION = '0.23';
__PACKAGE__->meta->make_immutable;
no Moose;
More information about the Pkg-perl-cvs-commits
mailing list