From: Shawn M Moore Date: Fri, 10 Jul 2009 06:27:58 +0000 (-0400) Subject: Rename IsDefaults to HasDefaults X-Git-Tag: 0.01~5 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e24f444c3571dea24de1bab39c6807aebac88108;p=gitmo%2FMooseX-HasDefaults.git Rename IsDefaults to HasDefaults --- diff --git a/.gitignore b/.gitignore index 432968e..9569a4c 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,4 @@ SIGNATURE blib/ inc/ pm_to_blib -MooseX-IsDefaults-* +MooseX-HasDefaults-* diff --git a/Makefile.PL b/Makefile.PL index a07e296..a38df99 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,7 +1,7 @@ use inc::Module::Install; -name 'MooseX-IsDefaults'; -all_from 'lib/MooseX/IsDefaults.pm'; +name 'MooseX-HasDefaults'; +all_from 'lib/MooseX/HasDefaults.pm'; githubmeta; requires 'Moose'; diff --git a/lib/MooseX/IsDefaults/Meta/IsRO.pm b/lib/MooseX/HasDefaults/Meta/IsRO.pm similarity index 91% rename from lib/MooseX/IsDefaults/Meta/IsRO.pm rename to lib/MooseX/HasDefaults/Meta/IsRO.pm index da40491..1607ca3 100644 --- a/lib/MooseX/IsDefaults/Meta/IsRO.pm +++ b/lib/MooseX/HasDefaults/Meta/IsRO.pm @@ -1,4 +1,4 @@ -package MooseX::IsDefaults::Meta::IsRO; +package MooseX::HasDefaults::Meta::IsRO; use Moose::Role; # This does not actually do anything but lie less in the attribute's metadata. diff --git a/lib/MooseX/IsDefaults/Meta/IsRW.pm b/lib/MooseX/HasDefaults/Meta/IsRW.pm similarity index 91% rename from lib/MooseX/IsDefaults/Meta/IsRW.pm rename to lib/MooseX/HasDefaults/Meta/IsRW.pm index ce692e6..4b113c9 100644 --- a/lib/MooseX/IsDefaults/Meta/IsRW.pm +++ b/lib/MooseX/HasDefaults/Meta/IsRW.pm @@ -1,4 +1,4 @@ -package MooseX::IsDefaults::Meta::IsRW; +package MooseX::HasDefaults::Meta::IsRW; use Moose::Role; # This does not actually do anything but lie less in the attribute's metadata. diff --git a/lib/MooseX/IsDefaults/RO.pm b/lib/MooseX/HasDefaults/RO.pm similarity index 71% rename from lib/MooseX/IsDefaults/RO.pm rename to lib/MooseX/HasDefaults/RO.pm index aa04c03..bde3acb 100644 --- a/lib/MooseX/IsDefaults/RO.pm +++ b/lib/MooseX/HasDefaults/RO.pm @@ -1,9 +1,9 @@ -package MooseX::IsDefaults::RO; +package MooseX::HasDefaults::RO; use Moose (); use Moose::Exporter; use Moose::Util::MetaRole; -use MooseX::IsDefaults::Meta::IsRO; +use MooseX::HasDefaults::Meta::IsRO; Moose::Exporter->setup_import_methods(also => 'Moose'); @@ -15,7 +15,7 @@ sub init_meta { Moose::Util::MetaRole::apply_metaclass_roles( for_class => $options{for_class}, - attribute_metaclass_roles => ['MooseX::IsDefaults::Meta::IsRO'], + attribute_metaclass_roles => ['MooseX::HasDefaults::Meta::IsRO'], ); return $options{for_class}->meta; diff --git a/lib/MooseX/IsDefaults/RW.pm b/lib/MooseX/HasDefaults/RW.pm similarity index 71% rename from lib/MooseX/IsDefaults/RW.pm rename to lib/MooseX/HasDefaults/RW.pm index 515da3c..c4c3a95 100644 --- a/lib/MooseX/IsDefaults/RW.pm +++ b/lib/MooseX/HasDefaults/RW.pm @@ -1,9 +1,9 @@ -package MooseX::IsDefaults::RW; +package MooseX::HasDefaults::RW; use Moose (); use Moose::Exporter; use Moose::Util::MetaRole; -use MooseX::IsDefaults::Meta::IsRW; +use MooseX::HasDefaults::Meta::IsRW; Moose::Exporter->setup_import_methods(also => 'Moose'); @@ -15,7 +15,7 @@ sub init_meta { Moose::Util::MetaRole::apply_metaclass_roles( for_class => $options{for_class}, - attribute_metaclass_roles => ['MooseX::IsDefaults::Meta::IsRW'], + attribute_metaclass_roles => ['MooseX::HasDefaults::Meta::IsRW'], ); return $options{for_class}->meta; diff --git a/t/001-ro.t b/t/001-ro.t index fafb47b..5c7fd00 100644 --- a/t/001-ro.t +++ b/t/001-ro.t @@ -7,7 +7,7 @@ use Test::Exception; do { package Person; use Moose; - use MooseX::IsDefaults::RO; + use MooseX::HasDefaults::RO; has name => ( isa => 'Str', diff --git a/t/002-rw.t b/t/002-rw.t index a302519..4b45a3d 100644 --- a/t/002-rw.t +++ b/t/002-rw.t @@ -7,7 +7,7 @@ use Test::Exception; do { package Person; use Moose; - use MooseX::IsDefaults::RW; + use MooseX::HasDefaults::RW; has name => ( isa => 'Str', diff --git a/t/003-no-accessor.t b/t/003-no-accessor.t index c1b8a2f..2863a4e 100644 --- a/t/003-no-accessor.t +++ b/t/003-no-accessor.t @@ -7,7 +7,7 @@ use Test::Exception; do { package Person; use Moose; - use MooseX::IsDefaults::RO; + use MooseX::HasDefaults::RO; has name => ( isa => 'Str',