Skip to content

Commit

Permalink
Build results of 89af11c (on master)
Browse files Browse the repository at this point in the history
  • Loading branch information
kentfredric committed Aug 14, 2014
1 parent 79876ff commit 51ea530
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 18 deletions.
6 changes: 1 addition & 5 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@ Release history for File-Tempdir-ForPackage
- "Latest" deps for toolchain parts are now only "recommended"
- https://questhub.io/realm/perl/quest/5388cc12bbd0be5b2500011f

[03 Reworked Some internals]
- Now is heavily based on Path::Tiny instead of File::Path
- Path::Tiny handles most of the File::Temp interaction.

[04 Cleanup functions nuked from orbit]
[03 Cleanup functions nuked from orbit]
- The persist function is now handled on a tempdir basis by directly using File::Temp tricks.
- This means that any tempdir that is to be freed will be freed as soon as it is no longer referenced
- so ->_clear_dir will wipe it
Expand Down
2 changes: 0 additions & 2 deletions META.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@
"File::Temp" : "0",
"File::pushd" : "0",
"Moo" : "0",
"Path::Tiny" : "0",
"constant" : "0",
"perl" : "5.006",
"strict" : "0",
Expand Down Expand Up @@ -178,7 +177,6 @@
"File::Temp" : "0.2304",
"File::pushd" : "1.009",
"Moo" : "1.005000",
"Path::Tiny" : "0.056",
"Pod::Coverage::TrustPod" : "0.100003",
"Test::CPAN::Changes" : "0.30",
"Test::CPAN::Meta" : "0.23",
Expand Down
2 changes: 0 additions & 2 deletions META.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ requires:
File::Temp: '0'
File::pushd: '0'
Moo: '0'
Path::Tiny: '0'
constant: '0'
perl: '5.006'
strict: '0'
Expand Down Expand Up @@ -88,7 +87,6 @@ x_BuiltWith:
File::Temp: '0.2304'
File::pushd: '1.009'
Moo: '1.005000'
Path::Tiny: '0.056'
Pod::Coverage::TrustPod: '0.100003'
Test::CPAN::Changes: '0.30'
Test::CPAN::Meta: '0.23'
Expand Down
2 changes: 0 additions & 2 deletions Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ my %WriteMakefileArgs = (
"File::Temp" => 0,
"File::pushd" => 0,
"Moo" => 0,
"Path::Tiny" => 0,
"constant" => 0,
"strict" => 0,
"warnings" => 0
Expand All @@ -48,7 +47,6 @@ my %FallbackPrereqs = (
"File::Temp" => 0,
"File::pushd" => 0,
"Moo" => 0,
"Path::Tiny" => 0,
"Test::More" => "0.89",
"constant" => 0,
"strict" => 0,
Expand Down
10 changes: 4 additions & 6 deletions lib/File/Tempdir/ForPackage.pm
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,9 @@ our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY

use Carp qw( croak );
use Moo qw( has );
use Path::Tiny;
use File::Temp qw();
## no critic (Subroutines::ProhibitCallsToUnexportedSubs)
use constant MINX => File::Temp::MINX;
use constant TEMP => Path::Tiny::TEMP;
## use critic


Expand Down Expand Up @@ -146,11 +144,11 @@ sub preserve {
my ( $self, @args ) = @_;
if ( @args and not $args[0] ) {
$self->_preserve(0);
$self->_dir->[TEMP]->unlink_on_destroy(1);
$self->_dir->unlink_on_destroy(1);
return;
}
$self->_preserve(1);
$self->_dir->[TEMP]->unlink_on_destroy(0);
$self->_dir->unlink_on_destroy(0);
return 1;
}

Expand Down Expand Up @@ -204,9 +202,9 @@ sub _build__dir {
}
$template .= q{-} . ( 'X' x $self->num_random );

my $dir = Path::Tiny->tempdir( TEMPLATE => $template, TMPDIR => 1 );
my $dir = File::Temp->newdir( TEMPLATE => $template, TMPDIR => 1 );
if ( $self->_preserve ) {
$dir->[TEMP]->unlink_on_destroy(0);
$dir->unlink_on_destroy(0);
}
return $dir;
}
Expand Down
1 change: 0 additions & 1 deletion t/00-report-prereqs.dd
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ do { my $x = {
'File::Temp' => '0',
'File::pushd' => '0',
'Moo' => '0',
'Path::Tiny' => '0',
'constant' => '0',
'perl' => '5.006',
'strict' => '0',
Expand Down
1 change: 1 addition & 0 deletions xt/author/make-and-leave.t
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use File::Tempdir::ForPackage;

my $dir = File::Tempdir::ForPackage->new(
package => 'File::Tempdir::ForPackage',

# with_version => 1,
# with_timestamp => 1,
# with_pid => 1,
Expand Down

0 comments on commit 51ea530

Please sign in to comment.