s/Role::Meta/Trait/g
Dave Rolsky [Wed, 23 Feb 2011 03:48:41 +0000 (21:48 -0600)]
lib/MooseX/StrictConstructor.pm
lib/MooseX/StrictConstructor/Trait/Class.pm [moved from lib/MooseX/StrictConstructor/Role/Meta/Class.pm with 88% similarity]
lib/MooseX/StrictConstructor/Trait/Method/Constructor.pm [moved from lib/MooseX/StrictConstructor/Role/Meta/Method/Constructor.pm with 87% similarity]

index 75d6eb3..5721c41 100644 (file)
@@ -12,16 +12,16 @@ use MooseX::StrictConstructor::Role::Object;
     my %class_meta;
 
     if ( $Moose::VERSION < 1.9900 ) {
-        require MooseX::StrictConstructor::Role::Meta::Method::Constructor;
+        require MooseX::StrictConstructor::Trait::Method::Constructor;
         %class_meta = (
             constructor => [
-                'MooseX::StrictConstructor::Role::Meta::Method::Constructor']
+                'MooseX::StrictConstructor::Trait::Method::Constructor']
         );
     }
     else {
-        require MooseX::StrictConstructor::Role::Meta::Class;
+        require MooseX::StrictConstructor::Trait::Class;
         %class_meta
-            = ( class => ['MooseX::StrictConstructor::Role::Meta::Class'] );
+            = ( class => ['MooseX::StrictConstructor::Trait::Class'] );
     }
 
     Moose::Exporter->setup_import_methods(
@@ -1,4 +1,4 @@
-package MooseX::StrictConstructor::Role::Meta::Class;
+package MooseX::StrictConstructor::Trait::Class;
 
 use strict;
 use warnings;
@@ -47,7 +47,7 @@ __END__
       for_class => $caller,
       class     => {
           constructor =>
-              ['MooseX::StrictConstructor::Role::Meta::Method::Constructor'],
+              ['MooseX::StrictConstructor::Trait::Method::Constructor'],
       },
   );
 
@@ -1,4 +1,4 @@
-package MooseX::StrictConstructor::Role::Meta::Method::Constructor;
+package MooseX::StrictConstructor::Trait::Method::Constructor;
 
 use strict;
 use warnings;
@@ -51,7 +51,7 @@ __END__
       for_class => $caller,
       class     => {
           constructor =>
-              ['MooseX::StrictConstructor::Role::Meta::Method::Constructor'],
+              ['MooseX::StrictConstructor::Trait::Method::Constructor'],
       },
   );