- Add p5-MooseX-Role-Strict 0.05

When using Moose::Role, a class which provides a method a role provides will
silently override that method. This can cause strange, hard-to-debug errors when
the role's methods are not called. Simple use MooseX::Role::Strict instead of
Moose::Role and overriding a role's method becomes a composition-time failure.
See the synopsis for a resolution.

WWW: http://search.cpan.org/dist/MooseX-Role-Strict/

Feature safe:	yes
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2013-04-16 16:45:52 +00:00
parent b583453e4d
commit 6ded264c9f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=315843
5 changed files with 50 additions and 0 deletions

View File

@ -2335,6 +2335,7 @@
SUBDIR += p5-MooseX-RelatedClassRoles
SUBDIR += p5-MooseX-Role-Loggable
SUBDIR += p5-MooseX-Role-Parameterized
SUBDIR += p5-MooseX-Role-Strict
SUBDIR += p5-MooseX-Role-WithOverloading
SUBDIR += p5-MooseX-Runnable
SUBDIR += p5-MooseX-SemiAffordanceAccessor

View File

@ -0,0 +1,30 @@
# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD$
PORTNAME= MooseX-Role-Strict
PORTVERSION= 0.05
CATEGORIES= devel perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Use strict 'roles'
LICENSE= ART10 GPLv1
LICENSE_COMB= dual
BUILD_DEPENDS= p5-Moose>=0.89:${PORTSDIR}/devel/p5-Moose
RUN_DEPENDS:= ${BUILD_DEPENDS}
PERL_CONFIGURE= yes
MAN3= MooseX::Meta::Role::Strict.3 \
MooseX::Role::Strict.3
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 501400
TEST_DEPENDS+= p5-Test-Simple>=0.96:${PORTSDIR}/devel/p5-Test-Simple
.endif
.include <bsd.port.post.mk>

View File

@ -0,0 +1,2 @@
SHA256 (MooseX-Role-Strict-0.05.tar.gz) = 7d508e2fa7708aa1ba91e00f6a2a7a1af641709fa374335c19ea19519ba6b90d
SIZE (MooseX-Role-Strict-0.05.tar.gz) = 5229

View File

@ -0,0 +1,7 @@
When using Moose::Role, a class which provides a method a role provides will
silently override that method. This can cause strange, hard-to-debug errors when
the role's methods are not called. Simple use MooseX::Role::Strict instead of
Moose::Role and overriding a role's method becomes a composition-time failure.
See the synopsis for a resolution.
WWW: http://search.cpan.org/dist/MooseX-Role-Strict/

View File

@ -0,0 +1,10 @@
%%SITE_PERL%%/MooseX/Role/Strict.pm
%%SITE_PERL%%/MooseX/Meta/Role/Strict.pm
%%SITE_PERL%%/%%PERL_ARCH%%/auto/MooseX/Role/Strict/.packlist
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/MooseX/Role/Strict
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/MooseX/Role
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/MooseX
@dirrmtry %%SITE_PERL%%/MooseX/Role
@dirrmtry %%SITE_PERL%%/MooseX/Meta/Role
@dirrmtry %%SITE_PERL%%/MooseX/Meta
@dirrmtry %%SITE_PERL%%/MooseX