From: Dave Rolsky Date: Wed, 23 Feb 2011 03:48:41 +0000 (-0600) Subject: s/Role::Meta/Trait/g X-Git-Tag: v0.13~6 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1a4f77329859d1a5058064cdb3eecdfa30e226b0;p=gitmo%2FMooseX-StrictConstructor.git s/Role::Meta/Trait/g --- diff --git a/lib/MooseX/StrictConstructor.pm b/lib/MooseX/StrictConstructor.pm index 75d6eb3..5721c41 100644 --- a/lib/MooseX/StrictConstructor.pm +++ b/lib/MooseX/StrictConstructor.pm @@ -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( diff --git a/lib/MooseX/StrictConstructor/Role/Meta/Class.pm b/lib/MooseX/StrictConstructor/Trait/Class.pm similarity index 88% rename from lib/MooseX/StrictConstructor/Role/Meta/Class.pm rename to lib/MooseX/StrictConstructor/Trait/Class.pm index 7a034e8..75dc3e0 100644 --- a/lib/MooseX/StrictConstructor/Role/Meta/Class.pm +++ b/lib/MooseX/StrictConstructor/Trait/Class.pm @@ -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'], }, ); diff --git a/lib/MooseX/StrictConstructor/Role/Meta/Method/Constructor.pm b/lib/MooseX/StrictConstructor/Trait/Method/Constructor.pm similarity index 87% rename from lib/MooseX/StrictConstructor/Role/Meta/Method/Constructor.pm rename to lib/MooseX/StrictConstructor/Trait/Method/Constructor.pm index 43b2aa2..e3dd07b 100644 --- a/lib/MooseX/StrictConstructor/Role/Meta/Method/Constructor.pm +++ b/lib/MooseX/StrictConstructor/Trait/Method/Constructor.pm @@ -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'], }, );