From: Arthur Axel 'fREW' Schmidt Date: Thu, 16 Feb 2012 14:54:12 +0000 (-0600) Subject: remove remaining refereces to Method::Signatures::Simple X-Git-Tag: v0.001007~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ffe7229cba92b8e8ed4aa259bea29f825595dbb3;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git remove remaining refereces to Method::Signatures::Simple --- diff --git a/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator/Deprecated.pm b/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator/Deprecated.pm index 813013c..368905a 100644 --- a/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator/Deprecated.pm +++ b/lib/DBIx/Class/DeploymentHandler/DeployMethod/SQL/Translator/Deprecated.pm @@ -3,17 +3,17 @@ use Moose; # ABSTRACT: (DEPRECATED) Use this if you are stuck in the past -use Method::Signatures::Simple; - use File::Spec::Functions; -extends 'DBIx::Class::DeploymentHandler::DeployMethod::SQL::Translator', +extends 'DBIx::Class::DeploymentHandler::DeployMethod::SQL::Translator'; -method _ddl_schema_consume_filenames($type, $version) { +sub _ddl_schema_consume_filenames { + my ($self, $type, $version) = @_; return [$self->_ddl_schema_produce_filename($type, $version)] } -method _ddl_schema_produce_filename($type, $version) { +sub _ddl_schema_produce_filename { + my ($self, $type, $version) = @_; my $filename = ref $self->schema; $filename =~ s/::/-/g; @@ -24,7 +24,8 @@ method _ddl_schema_produce_filename($type, $version) { return $filename; } -method _ddl_schema_up_produce_filename($type, $versions, $dir) { +sub _ddl_schema_up_produce_filename { + my ($self, $type, $versions, $dir) = @_; my $filename = ref $self->schema; $filename =~ s/::/-/g; @@ -35,7 +36,8 @@ method _ddl_schema_up_produce_filename($type, $versions, $dir) { return $filename; } -method _ddl_schema_up_consume_filenames($type, $versions) { +sub _ddl_schema_up_consume_filenames { + my ($self, $type, $versions) = @_; return [$self->_ddl_schema_up_produce_filename($type, $versions)] } diff --git a/lib/DBIx/Class/DeploymentHandler/VersionHandler/DatabaseToSchemaVersions.pm b/lib/DBIx/Class/DeploymentHandler/VersionHandler/DatabaseToSchemaVersions.pm index de34af0..fd0f798 100644 --- a/lib/DBIx/Class/DeploymentHandler/VersionHandler/DatabaseToSchemaVersions.pm +++ b/lib/DBIx/Class/DeploymentHandler/VersionHandler/DatabaseToSchemaVersions.pm @@ -3,8 +3,6 @@ use Moose; # ABSTRACT: Go straight from Database to Schema version -use Method::Signatures::Simple; - with 'DBIx::Class::DeploymentHandler::HandlesVersioning'; has schema_version => ( diff --git a/lib/DBIx/Class/DeploymentHandler/VersionStorage/Deprecated.pm b/lib/DBIx/Class/DeploymentHandler/VersionStorage/Deprecated.pm index 3b13fa7..9754a16 100644 --- a/lib/DBIx/Class/DeploymentHandler/VersionStorage/Deprecated.pm +++ b/lib/DBIx/Class/DeploymentHandler/VersionStorage/Deprecated.pm @@ -9,8 +9,6 @@ use Log::Contextual ':log', -package_logger => # ABSTRACT: (DEPRECATED) Use this if you are stuck in the past -use Method::Signatures::Simple; - has schema => ( isa => 'DBIx::Class::Schema', is => 'ro', diff --git a/lib/DBIx/Class/DeploymentHandler/VersionStorage/Standard.pm b/lib/DBIx/Class/DeploymentHandler/VersionStorage/Standard.pm index cc79c4f..bff0301 100644 --- a/lib/DBIx/Class/DeploymentHandler/VersionStorage/Standard.pm +++ b/lib/DBIx/Class/DeploymentHandler/VersionStorage/Standard.pm @@ -8,7 +8,6 @@ use Log::Contextual ':log', -package_logger => # ABSTRACT: Version storage that does the normal stuff -use Method::Signatures::Simple; use DBIx::Class::DeploymentHandler::VersionStorage::Standard::VersionResult; has schema => (