r73003 - in /trunk/libmoosex-role-parameterized-perl: ./ debian/ lib/MooseX/Role/ lib/MooseX/Role/Parameterized/ lib/MooseX/Role/Parameterized/Meta/ lib/MooseX/Role/Parameterized/Meta/Role/ lib/MooseX/Role/Parameterized/Meta/Trait/ t/
gregoa at users.alioth.debian.org
gregoa at users.alioth.debian.org
Thu Apr 21 18:28:54 UTC 2011
Author: gregoa
Date: Thu Apr 21 18:28:31 2011
New Revision: 73003
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=73003
Log:
* New upstream release 0.25
* New upstream release 0.26.
Modified:
trunk/libmoosex-role-parameterized-perl/Changes
trunk/libmoosex-role-parameterized-perl/META.yml
trunk/libmoosex-role-parameterized-perl/debian/changelog
trunk/libmoosex-role-parameterized-perl/lib/MooseX/Role/Parameterized.pm
trunk/libmoosex-role-parameterized-perl/lib/MooseX/Role/Parameterized/Meta/Parameter.pm
trunk/libmoosex-role-parameterized-perl/lib/MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm
trunk/libmoosex-role-parameterized-perl/lib/MooseX/Role/Parameterized/Meta/Role/Parameterized.pm
trunk/libmoosex-role-parameterized-perl/lib/MooseX/Role/Parameterized/Meta/Trait/Parameterized.pm
trunk/libmoosex-role-parameterized-perl/lib/MooseX/Role/Parameterized/Parameters.pm
trunk/libmoosex-role-parameterized-perl/t/006-requires.t
trunk/libmoosex-role-parameterized-perl/t/007-excludes.t
Modified: trunk/libmoosex-role-parameterized-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-role-parameterized-perl/Changes?rev=73003&op=diff
==============================================================================
--- trunk/libmoosex-role-parameterized-perl/Changes (original)
+++ trunk/libmoosex-role-parameterized-perl/Changes Thu Apr 21 18:28:31 2011
@@ -1,4 +1,7 @@
Changes for MooseX-Role-Parameterized
+
+0.26 March 20, 2011
+ * make tests stop relying on a specific format for anon class/role names (doy)
0.25 March 4, 2011
* Move the reinitialization hook from Role to Trait so hardcore hackers
Modified: trunk/libmoosex-role-parameterized-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-role-parameterized-perl/META.yml?rev=73003&op=diff
==============================================================================
--- trunk/libmoosex-role-parameterized-perl/META.yml (original)
+++ trunk/libmoosex-role-parameterized-perl/META.yml Thu Apr 21 18:28:31 2011
@@ -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.25
+version: 0.26
Modified: trunk/libmoosex-role-parameterized-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-role-parameterized-perl/debian/changelog?rev=73003&op=diff
==============================================================================
--- trunk/libmoosex-role-parameterized-perl/debian/changelog (original)
+++ trunk/libmoosex-role-parameterized-perl/debian/changelog Thu Apr 21 18:28:31 2011
@@ -1,11 +1,12 @@
-libmoosex-role-parameterized-perl (0.25-1) UNRELEASED; urgency=low
+libmoosex-role-parameterized-perl (0.26-1) UNRELEASED; urgency=low
- NOTE: Forward compatibility changes for the new Moose 2.0, not
- needed until that version is in Debian
+ [ Jonathan Yu ]
+ * New upstream release 0.25
- * New upstream release
+ [ gregor herrmann ]
+ * New upstream release 0.26.
- -- Jonathan Yu <jawnsy at cpan.org> Sat, 05 Mar 2011 20:10:55 -0500
+ -- gregor herrmann <gregoa at debian.org> Thu, 21 Apr 2011 20:27:47 +0200
libmoosex-role-parameterized-perl (0.23-1) unstable; urgency=low
Modified: trunk/libmoosex-role-parameterized-perl/lib/MooseX/Role/Parameterized.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-role-parameterized-perl/lib/MooseX/Role/Parameterized.pm?rev=73003&op=diff
==============================================================================
--- trunk/libmoosex-role-parameterized-perl/lib/MooseX/Role/Parameterized.pm (original)
+++ trunk/libmoosex-role-parameterized-perl/lib/MooseX/Role/Parameterized.pm Thu Apr 21 18:28:31 2011
@@ -7,7 +7,7 @@
use MooseX::Role::Parameterized::Meta::Role::Parameterizable;
-our $VERSION = '0.25';
+our $VERSION = '0.26';
our $CURRENT_METACLASS;
Moose::Exporter->setup_import_methods(
Modified: trunk/libmoosex-role-parameterized-perl/lib/MooseX/Role/Parameterized/Meta/Parameter.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-role-parameterized-perl/lib/MooseX/Role/Parameterized/Meta/Parameter.pm?rev=73003&op=diff
==============================================================================
--- trunk/libmoosex-role-parameterized-perl/lib/MooseX/Role/Parameterized/Meta/Parameter.pm (original)
+++ trunk/libmoosex-role-parameterized-perl/lib/MooseX/Role/Parameterized/Meta/Parameter.pm Thu Apr 21 18:28:31 2011
@@ -2,7 +2,7 @@
use Moose;
extends 'Moose::Meta::Attribute';
-our $VERSION = '0.25';
+our $VERSION = '0.26';
# This doesn't actually do anything because _process_options does not consult
# the default value of "is". hrm.
Modified: trunk/libmoosex-role-parameterized-perl/lib/MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-role-parameterized-perl/lib/MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm?rev=73003&op=diff
==============================================================================
--- trunk/libmoosex-role-parameterized-perl/lib/MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm (original)
+++ trunk/libmoosex-role-parameterized-perl/lib/MooseX/Role/Parameterized/Meta/Role/Parameterizable.pm Thu Apr 21 18:28:31 2011
@@ -2,7 +2,7 @@
use Moose;
extends 'Moose::Meta::Role';
-our $VERSION = '0.25';
+our $VERSION = '0.26';
use MooseX::Role::Parameterized::Meta::Role::Parameterized;
use MooseX::Role::Parameterized::Meta::Parameter;
Modified: trunk/libmoosex-role-parameterized-perl/lib/MooseX/Role/Parameterized/Meta/Role/Parameterized.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-role-parameterized-perl/lib/MooseX/Role/Parameterized/Meta/Role/Parameterized.pm?rev=73003&op=diff
==============================================================================
--- trunk/libmoosex-role-parameterized-perl/lib/MooseX/Role/Parameterized/Meta/Role/Parameterized.pm (original)
+++ trunk/libmoosex-role-parameterized-perl/lib/MooseX/Role/Parameterized/Meta/Role/Parameterized.pm Thu Apr 21 18:28:31 2011
@@ -3,7 +3,7 @@
extends 'Moose::Meta::Role';
with 'MooseX::Role::Parameterized::Meta::Trait::Parameterized';
-our $VERSION = '0.25';
+our $VERSION = '0.26';
__PACKAGE__->meta->make_immutable;
no Moose;
Modified: trunk/libmoosex-role-parameterized-perl/lib/MooseX/Role/Parameterized/Meta/Trait/Parameterized.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-role-parameterized-perl/lib/MooseX/Role/Parameterized/Meta/Trait/Parameterized.pm?rev=73003&op=diff
==============================================================================
--- trunk/libmoosex-role-parameterized-perl/lib/MooseX/Role/Parameterized/Meta/Trait/Parameterized.pm (original)
+++ trunk/libmoosex-role-parameterized-perl/lib/MooseX/Role/Parameterized/Meta/Trait/Parameterized.pm Thu Apr 21 18:28:31 2011
@@ -1,7 +1,7 @@
package MooseX::Role::Parameterized::Meta::Trait::Parameterized;
use Moose::Role;
-our $VERSION = '0.25';
+our $VERSION = '0.26';
use MooseX::Role::Parameterized::Parameters;
Modified: trunk/libmoosex-role-parameterized-perl/lib/MooseX/Role/Parameterized/Parameters.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-role-parameterized-perl/lib/MooseX/Role/Parameterized/Parameters.pm?rev=73003&op=diff
==============================================================================
--- trunk/libmoosex-role-parameterized-perl/lib/MooseX/Role/Parameterized/Parameters.pm (original)
+++ trunk/libmoosex-role-parameterized-perl/lib/MooseX/Role/Parameterized/Parameters.pm Thu Apr 21 18:28:31 2011
@@ -1,7 +1,7 @@
package MooseX::Role::Parameterized::Parameters;
use Moose;
-our $VERSION = '0.25';
+our $VERSION = '0.26';
__PACKAGE__->meta->make_immutable;
no Moose;
Modified: trunk/libmoosex-role-parameterized-perl/t/006-requires.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-role-parameterized-perl/t/006-requires.t?rev=73003&op=diff
==============================================================================
--- trunk/libmoosex-role-parameterized-perl/t/006-requires.t (original)
+++ trunk/libmoosex-role-parameterized-perl/t/006-requires.t Thu Apr 21 18:28:31 2011
@@ -32,11 +32,14 @@
} @_
}
-like( exception {
- Moose::Meta::Class->create_anon_class(
- roles => [ requires_names('alpha') ],
- );
-}, qr/'Moose::Meta::Role::__ANON__::SERIAL::\d+' requires the method 'alpha' to be implemented by 'Class::MOP::Class::__ANON__::SERIAL::\d+'/);
+{
+ my ($role_name) = requires_names('alpha');
+ like( exception {
+ Moose::Meta::Class->create_anon_class(
+ roles => [ $role_name ],
+ );
+ }, qr/'$role_name' requires the method 'alpha' to be implemented by '[\w:]+'/);
+}
is (exception {
Moose::Meta::Class->create_anon_class(
@@ -47,23 +50,29 @@
);
}, undef);
-like( exception {
- Moose::Meta::Class->create_anon_class(
- methods => {
- alpha => sub {},
- },
- roles => [ requires_names('alpha', 'beta') ],
- );
-}, qr/'Moose::Meta::Role::__ANON__::SERIAL::\d+\|Moose::Meta::Role::__ANON__::SERIAL::\d+' requires the method 'beta' to be implemented by 'Class::MOP::Class::__ANON__::SERIAL::\d+'/);
+{
+ my ($role1, $role2) = requires_names('alpha', 'beta');
+ like( exception {
+ Moose::Meta::Class->create_anon_class(
+ methods => {
+ alpha => sub {},
+ },
+ roles => [ $role1, $role2 ],
+ );
+ }, qr/'$role1\|$role2' requires the method 'beta' to be implemented by '[\w:]+'/);
+}
-like( exception {
- Moose::Meta::Class->create_anon_class(
- methods => {
- beta => sub {},
- },
- roles => [ requires_names('alpha', 'beta') ],
- );
-}, qr/'Moose::Meta::Role::__ANON__::SERIAL::\d+\|Moose::Meta::Role::__ANON__::SERIAL::\d+' requires the method 'alpha' to be implemented by 'Class::MOP::Class::__ANON__::SERIAL::\d+'/);
+{
+ my ($role1, $role2) = requires_names('alpha', 'beta');
+ like( exception {
+ Moose::Meta::Class->create_anon_class(
+ methods => {
+ beta => sub {},
+ },
+ roles => [ $role1, $role2 ],
+ );
+ }, qr/'$role1\|$role2' requires the method 'alpha' to be implemented by '[\w:]+'/);
+}
is (exception {
Moose::Meta::Class->create_anon_class(
Modified: trunk/libmoosex-role-parameterized-perl/t/007-excludes.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmoosex-role-parameterized-perl/t/007-excludes.t?rev=73003&op=diff
==============================================================================
--- trunk/libmoosex-role-parameterized-perl/t/007-excludes.t (original)
+++ trunk/libmoosex-role-parameterized-perl/t/007-excludes.t Thu Apr 21 18:28:31 2011
@@ -41,11 +41,14 @@
);
}, undef);
-like( exception {
- Moose::Meta::Class->create_anon_class(
- roles => [ 'Role::A', excludes_roles('Role::A') ],
- );
-}, qr/^Conflict detected: Role Moose::Meta::Role::__ANON__::SERIAL::\d+ excludes role 'Role::A'/);
+{
+ my ($role_name) = excludes_roles('Role::A');
+ like( exception {
+ Moose::Meta::Class->create_anon_class(
+ roles => [ 'Role::A', $role_name ],
+ );
+ }, qr/^Conflict detected: Role $role_name excludes role 'Role::A'/);
+}
is (exception {
Moose::Meta::Class->create_anon_class(
More information about the Pkg-perl-cvs-commits
mailing list