From: Arthur Axel 'fREW' Schmidt Date: Mon, 28 May 2012 02:06:01 +0000 (-0500) Subject: remove dep on File::Touch X-Git-Tag: v0.002115~2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=7877209690a5cc9d34a4a4bc893bf2def787a0ca;p=dbsrgits%2FDBIx-Class-DeploymentHandler.git remove dep on File::Touch --- diff --git a/Changes b/Changes index 3d1048a..d2a9b06 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,7 @@ Revision history for {{$dist->name}} {{$NEXT}} + - Remove dep on File::Touch 0.002114 2012-05-07 08:05:20 America/Chicago - Correctly set the version deployed to the version requested on install diff --git a/dist.ini b/dist.ini index 8e57a5c..c4998d1 100644 --- a/dist.ini +++ b/dist.ini @@ -27,7 +27,6 @@ autodie = 0 namespace::autoclean = 0 Log::Contextual = 0.00300 File::Path = 2.08 -File::Touch = 0.08 DBIx::Class = 0.08121 Moose = 1.0 MooseX::Role::Parameterized = 0.18 diff --git a/t/deploy_methods/sql_translator.t b/t/deploy_methods/sql_translator.t index 62094d9..28f9dda 100644 --- a/t/deploy_methods/sql_translator.t +++ b/t/deploy_methods/sql_translator.t @@ -52,7 +52,7 @@ VERSION1: { mkpath(catfile(qw( t sql SQLite initialize 1.0 ))); open my $prerun, '>', catfile(qw( t sql SQLite initialize 1.0 003-semiautomatic.pl )); - print {$prerun} "sub {use File::Touch; touch(q(foobar));}"; + print {$prerun} "sub { open my \$fh, '>', q(foobar);}"; close $prerun; $dm->initialize({ version => '1.0' }); diff --git a/t/deploy_methods/sql_translator_protoschema_transform.t b/t/deploy_methods/sql_translator_protoschema_transform.t index d0ce6cf..1f404ae 100644 --- a/t/deploy_methods/sql_translator_protoschema_transform.t +++ b/t/deploy_methods/sql_translator_protoschema_transform.t @@ -49,8 +49,7 @@ VERSION2: { catfile(qw( t sql _preprocess_schema upgrade 1.0-2.0 003-semiautomatic.pl )); print {$prerun} 'sub { - use File::Touch; - touch(q(robotparty)) + open my $fh, ">", q(robotparty) if $_[0]->isa("SQL::Translator::Schema") && $_[1]->isa("SQL::Translator::Schema"); }';