From: Arthur Axel 'fREW' Schmidt Date: Sat, 20 Mar 2010 20:15:14 +0000 (-0500) Subject: restructure namespace X-Git-Tag: v0.001000_01~73 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=30c3818a792878356b3b2f6b7e929a74d3a6974d;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git restructure namespace --- diff --git a/lib/DBIx/Class/DeploymentHandler/Component.pm b/lib/DBIx/Class/DeploymentHandler/VersionStorage/Standard/Component.pm similarity index 75% rename from lib/DBIx/Class/DeploymentHandler/Component.pm rename to lib/DBIx/Class/DeploymentHandler/VersionStorage/Standard/Component.pm index fec0e1b..6f03c72 100644 --- a/lib/DBIx/Class/DeploymentHandler/Component.pm +++ b/lib/DBIx/Class/DeploymentHandler/VersionStorage/Standard/Component.pm @@ -1,16 +1,16 @@ -package DBIx::Class::DeploymentHandler::Component; +package DBIx::Class::DeploymentHandler::VersionStorage::Standard::Component; use strict; use warnings; use Carp 'carp'; -use DBIx::Class::DeploymentHandler::VersionResult; +use DBIx::Class::DeploymentHandler::VersionStorage::Standard::VersionResult; sub set_us_up_the_bomb { my $self = shift; $self->register_class( - __VERSION => 'DBIx::Class::DeploymentHandler::VersionResult' + __VERSION => 'DBIx::Class::DeploymentHandler::VersionStorage::Standard::VersionResult' ); } diff --git a/lib/DBIx/Class/DeploymentHandler/VersionResult.pm b/lib/DBIx/Class/DeploymentHandler/VersionStorage/Standard/VersionResult.pm similarity index 85% rename from lib/DBIx/Class/DeploymentHandler/VersionResult.pm rename to lib/DBIx/Class/DeploymentHandler/VersionStorage/Standard/VersionResult.pm index 6492356..f3ce125 100644 --- a/lib/DBIx/Class/DeploymentHandler/VersionResult.pm +++ b/lib/DBIx/Class/DeploymentHandler/VersionStorage/Standard/VersionResult.pm @@ -1,4 +1,4 @@ -package DBIx::Class::DeploymentHandler::VersionResult; +package DBIx::Class::DeploymentHandler::VersionStorage::Standard::VersionResult; use strict; use warnings; @@ -30,6 +30,6 @@ __PACKAGE__->add_columns ( __PACKAGE__->set_primary_key('installed'); __PACKAGE__->add_unique_constraint(['version']); -__PACKAGE__->resultset_class('DBIx::Class::DeploymentHandler::VersionResultSet'); +__PACKAGE__->resultset_class('DBIx::Class::DeploymentHandler::VersionStorage::Standard::VersionResultSet'); 1; diff --git a/lib/DBIx/Class/DeploymentHandler/VersionResultSet.pm b/lib/DBIx/Class/DeploymentHandler/VersionStorage/Standard/VersionResultSet.pm similarity index 80% rename from lib/DBIx/Class/DeploymentHandler/VersionResultSet.pm rename to lib/DBIx/Class/DeploymentHandler/VersionStorage/Standard/VersionResultSet.pm index cc76c62..52d73ec 100644 --- a/lib/DBIx/Class/DeploymentHandler/VersionResultSet.pm +++ b/lib/DBIx/Class/DeploymentHandler/VersionStorage/Standard/VersionResultSet.pm @@ -1,4 +1,4 @@ -package DBIx::Class::DeploymentHandler::VersionResultSet; +package DBIx::Class::DeploymentHandler::VersionStorage::Standard::VersionResultSet; use strict; use warnings; diff --git a/t/01-load.t b/t/01-load.t deleted file mode 100644 index cccff7d..0000000 --- a/t/01-load.t +++ /dev/null @@ -1,11 +0,0 @@ -#!perl - -use Test::More; -use lib 't/lib'; - -use_ok 'DBIx::Class::DeploymentHandler'; -use_ok 'DBIx::Class::DeploymentHandler::VersionResult'; -use_ok 'DBIx::Class::DeploymentHandler::VersionResultSet'; -use_ok 'DBIx::Class::DeploymentHandler::Component'; - -done_testing; diff --git a/t/lib/DBICVersion_v1.pm b/t/lib/DBICVersion_v1.pm index 9063d26..2eee7af 100644 --- a/t/lib/DBICVersion_v1.pm +++ b/t/lib/DBICVersion_v1.pm @@ -27,6 +27,6 @@ use warnings; our $VERSION = '1.0'; __PACKAGE__->register_class('Foo', 'DBICVersion::Foo'); -__PACKAGE__->load_components('DeploymentHandler::Component'); +__PACKAGE__->load_components('DeploymentHandler::VersionStorage::Standard::Component'); 1; diff --git a/t/lib/DBICVersion_v2.pm b/t/lib/DBICVersion_v2.pm index 659e3b6..602a1c3 100644 --- a/t/lib/DBICVersion_v2.pm +++ b/t/lib/DBICVersion_v2.pm @@ -32,6 +32,6 @@ use warnings; our $VERSION = '2.0'; __PACKAGE__->register_class('Foo', 'DBICVersion::Foo'); -__PACKAGE__->load_components('DeploymentHandler::Component'); +__PACKAGE__->load_components('DeploymentHandler::VersionStorage::Standard::Component'); 1; diff --git a/t/lib/DBICVersion_v3.pm b/t/lib/DBICVersion_v3.pm index 3d614db..e7a94ea 100644 --- a/t/lib/DBICVersion_v3.pm +++ b/t/lib/DBICVersion_v3.pm @@ -37,6 +37,6 @@ use warnings; our $VERSION = '3.0'; __PACKAGE__->register_class('Foo', 'DBICVersion::Foo'); -__PACKAGE__->load_components('DeploymentHandler::Component'); +__PACKAGE__->load_components('DeploymentHandler::VersionStorage::Standard::Component'); 1;