[Bps-public-commit] r18210 - in Path-Dispatcher/trunk: lib/Path lib/Path/Dispatcher lib/Path/Dispatcher/Role lib/Path/Dispatcher/Rule

sartak at bestpractical.com sartak at bestpractical.com
Wed Feb 4 16:11:30 EST 2009


Author: sartak
Date: Wed Feb  4 16:11:30 2009
New Revision: 18210

Modified:
   Path-Dispatcher/trunk/   (props changed)
   Path-Dispatcher/trunk/Makefile.PL
   Path-Dispatcher/trunk/lib/Path/Dispatcher.pm
   Path-Dispatcher/trunk/lib/Path/Dispatcher/Dispatch.pm
   Path-Dispatcher/trunk/lib/Path/Dispatcher/Match.pm
   Path-Dispatcher/trunk/lib/Path/Dispatcher/Path.pm
   Path-Dispatcher/trunk/lib/Path/Dispatcher/Role/Rules.pm
   Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule.pm
   Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Always.pm
   Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/CodeRef.pm
   Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Dispatch.pm
   Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Empty.pm
   Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Eq.pm
   Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Intersection.pm
   Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Metadata.pm
   Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Regex.pm
   Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Tokens.pm
   Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Under.pm

Log:
 r79701 at onn:  sartak | 2009-02-04 16:11:25 -0500
 Any::Moose-ify Path::Dispatcher


Modified: Path-Dispatcher/trunk/Makefile.PL
==============================================================================
--- Path-Dispatcher/trunk/Makefile.PL	(original)
+++ Path-Dispatcher/trunk/Makefile.PL	Wed Feb  4 16:11:30 2009
@@ -3,7 +3,7 @@
 name           'Path-Dispatcher';
 all_from       'lib/Path/Dispatcher.pm';
 
-requires 'Moose';
+requires 'Any::Moose';
 requires 'Sub::Exporter';
 
 build_requires 'Test::More';

Modified: Path-Dispatcher/trunk/lib/Path/Dispatcher.pm
==============================================================================
--- Path-Dispatcher/trunk/lib/Path/Dispatcher.pm	(original)
+++ Path-Dispatcher/trunk/lib/Path/Dispatcher.pm	Wed Feb  4 16:11:30 2009
@@ -1,5 +1,5 @@
 package Path::Dispatcher;
-use Moose;
+use Any::Moose;
 
 our $VERSION = '0.08';
 
@@ -79,7 +79,7 @@
 }
 
 __PACKAGE__->meta->make_immutable;
-no Moose;
+no Any::Moose;
 
 1;
 

Modified: Path-Dispatcher/trunk/lib/Path/Dispatcher/Dispatch.pm
==============================================================================
--- Path-Dispatcher/trunk/lib/Path/Dispatcher/Dispatch.pm	(original)
+++ Path-Dispatcher/trunk/lib/Path/Dispatcher/Dispatch.pm	Wed Feb  4 16:11:30 2009
@@ -1,11 +1,11 @@
 package Path::Dispatcher::Dispatch;
-use Moose;
+use Any::Moose;
 
 use Path::Dispatcher::Match;
 
 has _matches => (
     is        => 'rw',
-    isa       => 'ArrayRef[Path::Dispatcher::Match]',
+    isa       => 'ArrayRef',
     default   => sub { [] },
 );
 
@@ -59,7 +59,7 @@
 }
 
 __PACKAGE__->meta->make_immutable;
-no Moose;
+no Any::Moose;
 
 1;
 

Modified: Path-Dispatcher/trunk/lib/Path/Dispatcher/Match.pm
==============================================================================
--- Path-Dispatcher/trunk/lib/Path/Dispatcher/Match.pm	(original)
+++ Path-Dispatcher/trunk/lib/Path/Dispatcher/Match.pm	Wed Feb  4 16:11:30 2009
@@ -1,5 +1,5 @@
 package Path::Dispatcher::Match;
-use Moose;
+use Any::Moose;
 
 use Path::Dispatcher::Path;
 use Path::Dispatcher::Rule;
@@ -79,7 +79,7 @@
 }
 
 __PACKAGE__->meta->make_immutable;
-no Moose;
+no Any::Moose;
 
 1;
 

Modified: Path-Dispatcher/trunk/lib/Path/Dispatcher/Path.pm
==============================================================================
--- Path-Dispatcher/trunk/lib/Path/Dispatcher/Path.pm	(original)
+++ Path-Dispatcher/trunk/lib/Path/Dispatcher/Path.pm	Wed Feb  4 16:11:30 2009
@@ -1,5 +1,5 @@
 package Path::Dispatcher::Path;
-use Moose;
+use Any::Moose;
 
 use overload q{""} => sub { shift->path };
 
@@ -42,7 +42,7 @@
 }
 
 __PACKAGE__->meta->make_immutable;
-no Moose;
+no Any::Moose;
 
 1;
 

Modified: Path-Dispatcher/trunk/lib/Path/Dispatcher/Role/Rules.pm
==============================================================================
--- Path-Dispatcher/trunk/lib/Path/Dispatcher/Role/Rules.pm	(original)
+++ Path-Dispatcher/trunk/lib/Path/Dispatcher/Role/Rules.pm	Wed Feb  4 16:11:30 2009
@@ -1,9 +1,9 @@
 package Path::Dispatcher::Role::Rules;
-use Moose::Role;
+use Any::Moose '::Role';
 
 has _rules => (
     is       => 'rw',
-    isa      => 'ArrayRef[Path::Dispatcher::Rule]',
+    isa      => 'ArrayRef',
     init_arg => 'rules',
     default  => sub { [] },
 );
@@ -20,5 +20,7 @@
 
 sub rules { @{ shift->{_rules} } }
 
+no Any::Moose;
+
 1;
 

Modified: Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule.pm
==============================================================================
--- Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule.pm	(original)
+++ Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule.pm	Wed Feb  4 16:11:30 2009
@@ -1,5 +1,5 @@
 package Path::Dispatcher::Rule;
-use Moose;
+use Any::Moose;
 
 use Path::Dispatcher::Match;
 
@@ -120,7 +120,7 @@
 }
 
 __PACKAGE__->meta->make_immutable;
-no Moose;
+no Any::Moose;
 
 # don't require others to load our subclasses explicitly
 require Path::Dispatcher::Rule::Always;

Modified: Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Always.pm
==============================================================================
--- Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Always.pm	(original)
+++ Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Always.pm	Wed Feb  4 16:11:30 2009
@@ -1,5 +1,5 @@
 package Path::Dispatcher::Rule::Always;
-use Moose;
+use Any::Moose;
 extends 'Path::Dispatcher::Rule';
 
 sub _match {
@@ -9,7 +9,7 @@
 }
 
 __PACKAGE__->meta->make_immutable;
-no Moose;
+no Any::Moose;
 
 1;
 

Modified: Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/CodeRef.pm
==============================================================================
--- Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/CodeRef.pm	(original)
+++ Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/CodeRef.pm	Wed Feb  4 16:11:30 2009
@@ -1,5 +1,5 @@
 package Path::Dispatcher::Rule::CodeRef;
-use Moose;
+use Any::Moose;
 extends 'Path::Dispatcher::Rule';
 
 has matcher => (
@@ -26,7 +26,7 @@
 }
 
 __PACKAGE__->meta->make_immutable;
-no Moose;
+no Any::Moose;
 
 1;
 

Modified: Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Dispatch.pm
==============================================================================
--- Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Dispatch.pm	(original)
+++ Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Dispatch.pm	Wed Feb  4 16:11:30 2009
@@ -1,5 +1,5 @@
 package Path::Dispatcher::Rule::Dispatch;
-use Moose;
+use Any::Moose;
 extends 'Path::Dispatcher::Rule';
 
 has dispatcher => (
@@ -19,7 +19,7 @@
 sub readable_attributes { shift->dispatcher->name }
 
 __PACKAGE__->meta->make_immutable;
-no Moose;
+no Any::Moose;
 
 1;
 

Modified: Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Empty.pm
==============================================================================
--- Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Empty.pm	(original)
+++ Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Empty.pm	Wed Feb  4 16:11:30 2009
@@ -1,5 +1,5 @@
 package Path::Dispatcher::Rule::Empty;
-use Moose;
+use Any::Moose;
 extends 'Path::Dispatcher::Rule';
 
 sub _match {
@@ -10,7 +10,7 @@
 }
 
 __PACKAGE__->meta->make_immutable;
-no Moose;
+no Any::Moose;
 
 1;
 

Modified: Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Eq.pm
==============================================================================
--- Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Eq.pm	(original)
+++ Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Eq.pm	Wed Feb  4 16:11:30 2009
@@ -1,5 +1,5 @@
 package Path::Dispatcher::Rule::Eq;
-use Moose;
+use Any::Moose;
 extends 'Path::Dispatcher::Rule';
 
 has string => (
@@ -23,7 +23,7 @@
 sub readable_attributes { q{"} . shift->string . q{"} }
 
 __PACKAGE__->meta->make_immutable;
-no Moose;
+no Any::Moose;
 
 1;
 

Modified: Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Intersection.pm
==============================================================================
--- Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Intersection.pm	(original)
+++ Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Intersection.pm	Wed Feb  4 16:11:30 2009
@@ -1,5 +1,5 @@
 package Path::Dispatcher::Rule::Intersection;
-use Moose;
+use Any::Moose;
 extends 'Path::Dispatcher::Rule';
 
 with 'Path::Dispatcher::Role::Rules';
@@ -16,7 +16,7 @@
 }
 
 __PACKAGE__->meta->make_immutable;
-no Moose;
+no Any::Moose;
 
 1;
 

Modified: Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Metadata.pm
==============================================================================
--- Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Metadata.pm	(original)
+++ Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Metadata.pm	Wed Feb  4 16:11:30 2009
@@ -1,5 +1,5 @@
 package Path::Dispatcher::Rule::Metadata;
-use Moose;
+use Any::Moose;
 extends 'Path::Dispatcher::Rule';
 
 has field => (
@@ -34,7 +34,7 @@
 }
 
 __PACKAGE__->meta->make_immutable;
-no Moose;
+no Any::Moose;
 
 1;
 

Modified: Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Regex.pm
==============================================================================
--- Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Regex.pm	(original)
+++ Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Regex.pm	Wed Feb  4 16:11:30 2009
@@ -1,5 +1,5 @@
 package Path::Dispatcher::Rule::Regex;
-use Moose;
+use Any::Moose;
 extends 'Path::Dispatcher::Rule';
 
 has regex => (
@@ -28,7 +28,7 @@
 sub readable_attributes { shift->regex }
 
 __PACKAGE__->meta->make_immutable;
-no Moose;
+no Any::Moose;
 
 1;
 

Modified: Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Tokens.pm
==============================================================================
--- Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Tokens.pm	(original)
+++ Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Tokens.pm	Wed Feb  4 16:11:30 2009
@@ -1,5 +1,5 @@
 package Path::Dispatcher::Rule::Tokens;
-use Moose;
+use Any::Moose;
 extends 'Path::Dispatcher::Rule';
 
 has tokens => (
@@ -139,7 +139,7 @@
 };
 
 __PACKAGE__->meta->make_immutable;
-no Moose;
+no Any::Moose;
 
 1;
 

Modified: Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Under.pm
==============================================================================
--- Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Under.pm	(original)
+++ Path-Dispatcher/trunk/lib/Path/Dispatcher/Rule/Under.pm	Wed Feb  4 16:11:30 2009
@@ -1,6 +1,6 @@
 package Path::Dispatcher::Rule::Under;
-use Moose;
-use Moose::Util::TypeConstraints;
+use Any::Moose;
+use Any::Moose '::Util::TypeConstraints';
 
 extends 'Path::Dispatcher::Rule';
 with 'Path::Dispatcher::Role::Rules';
@@ -30,8 +30,7 @@
 sub readable_attributes { shift->predicate->readable_attributes }
 
 __PACKAGE__->meta->make_immutable;
-no Moose;
-no Moose::Util::TypeConstraints;
+no Any::Moose;
 
 1;
 



More information about the Bps-public-commit mailing list