Merge branch 'master' of git.moose.perl.org:Moose
John Napiorkowski [Tue, 1 Jun 2010 17:41:26 +0000 (13:41 -0400)]
Makefile.PL
lib/Moose.pm
lib/Moose/Meta/TypeConstraint.pm

index 70fdcde..4777e74 100644 (file)
@@ -1,6 +1,6 @@
 use strict;
 use warnings;
-use inc::Module::Install 0.97;
+use inc::Module::Install 0.98;
 use Module::Install::AuthorRequires;
 use 5.008001;
 
@@ -39,6 +39,7 @@ if ( is_maintainer() ) {
 tests_recursive();
 
 repository 'git://git.moose.perl.org/Moose.git';
+add_metadata(x_authority => 'cpan:STEVAN');
 
 WriteAll();
 
index c0ddafe..4299f73 100644 (file)
@@ -354,7 +354,10 @@ Much of the Moose documentation has been translated into other languages.
 
 =item Japanese
 
-Japanese docs can be found at L<http://perldoc.perlassociation.org/pod/Moose-Doc-JA/index.html>. The source POD files can be found in GitHub: L<http://github.com/jpa/Moose-Doc-JA>
+Japanese docs can be found at
+L<http://perldoc.perlassociation.org/pod/Moose-Doc-JA/index.html>. The
+source POD files can be found in GitHub:
+L<http://github.com/jpa/Moose-Doc-JA>
 
 =back
 
index 48c5ec4..791965f 100644 (file)
@@ -135,7 +135,7 @@ sub equals {
 
     my $other = Moose::Util::TypeConstraints::find_type_constraint($type_or_name) or return;
 
-    return 1 if 0+$self == 0+$other;
+    return 1 if $self == $other;
 
     if ( $self->has_hand_optimized_type_constraint and $other->has_hand_optimized_type_constraint ) {
         return 1 if $self->hand_optimized_type_constraint == $other->hand_optimized_type_constraint;