remove dep on File::Touch
Arthur Axel 'fREW' Schmidt [Mon, 28 May 2012 02:06:01 +0000 (21:06 -0500)]
Changes
dist.ini
t/deploy_methods/sql_translator.t
t/deploy_methods/sql_translator_protoschema_transform.t

diff --git a/Changes b/Changes
index 3d1048a..d2a9b06 100644 (file)
--- 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
index 8e57a5c..c4998d1 100644 (file)
--- 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
index 62094d9..28f9dda 100644 (file)
@@ -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' });
 
index d0ce6cf..1f404ae 100644 (file)
@@ -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");
       }';