Changeset 30866 for lang/perl/Path-Extended
- Timestamp:
- 03/05/09 21:36:20 (4 years ago)
- Location:
- lang/perl/Path-Extended/trunk
- Files:
-
- 4 modified
-
Changes (modified) (1 diff)
-
lib/Path/Extended.pm (modified) (1 diff)
-
lib/Path/Extended/Entity.pm (modified) (1 diff)
-
t/lib/Path/Extended/Test/Dir/Find.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Path-Extended/trunk/Changes
r30855 r30866 1 1 Revision history for Path-Extended 2 3 0.08 2009/03/05 4 - fixed relative/absolute path issue 2 5 3 6 0.07 2009/03/05 -
lang/perl/Path-Extended/trunk/lib/Path/Extended.pm
r30855 r30866 7 7 use Path::Extended::Dir; 8 8 9 our $VERSION = '0.0 7';9 our $VERSION = '0.08'; 10 10 11 11 our @EXPORT = our @EXPORT_OK = qw( file dir ); -
lang/perl/Path-Extended/trunk/lib/Path/Extended/Entity.pm
r30855 r30866 36 36 $item = $class->new( File::Basename::dirname($self->absolute) ); 37 37 } 38 elsif ( @parts && File::Spec->file_name_is_absolute($parts[0]) ) { 39 $item = $class->new( @parts ); 40 } 38 41 else { 39 42 $item = $class->new( $self->absolute, @parts ); -
lang/perl/Path-Extended/trunk/t/lib/Path/Extended/Test/Dir/Find.pm
r22164 r30866 6 6 use Path::Extended; 7 7 8 sub find : Tests( 4) {8 sub find : Tests(7) { 9 9 my $class = shift; 10 10 11 11 my $dir = dir('t/tmp/find')->mkdir; 12 ok $dir->exists, $class->message('created '.$dir->relative); 12 13 13 14 my $file1 = file('t/tmp/find/some.txt'); 14 15 $file1->save('some content'); 16 ok $file1->exists, $class->message('created '.$file1->relative); 15 17 16 18 my $file2 = file('t/tmp/find/other.txt'); 17 19 $file2->save('other content'); 20 ok $file2->exists, $class->message('created '.$file2->relative); 18 21 19 22 my @files = $dir->find('*.txt'); … … 35 38 } 36 39 37 sub find_dir : Tests( 4) {40 sub find_dir : Tests(6) { 38 41 my $class = shift; 39 42 40 43 my $dir = dir('t/tmp/find_dir'); 41 44 my $dir1 = dir('t/tmp/find_dir/found')->mkdir; 45 ok $dir1->exists, $class->message('created '.$dir1->relative); 46 42 47 my $dir2 = dir('t/tmp/find_dir/not_found')->mkdir; 48 ok $dir2->exists, $class->message('created '.$dir2->relative); 43 49 44 50 my $rule = '*';
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)