@@ -1,5 +1,11 @@
Revision history for Path-Tiny
+0.055 2014-06-30 10:29:28-04:00 America/New_York
+
+ [FIXED]
+
+ - tempfile/tempdir won't warn if used as functions without arguments
+
0.054 2014-05-04 13:56:11-04:00 America/New_York
[ADDED]
@@ -1,4 +1,4 @@
-# This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.015.
+# This file was automatically generated by Dist::Zilla::Plugin::Manifest v5.019.
CONTRIBUTING
Changes
LICENSE
@@ -4,7 +4,7 @@
"David Golden <dagolden@cpan.org>"
],
"dynamic_config" : 0,
- "generated_by" : "Dist::Zilla version 5.015, CPAN::Meta::Converter version 2.141170",
+ "generated_by" : "Dist::Zilla version 5.019, CPAN::Meta::Converter version 2.141170",
"license" : [
"apache_2_0"
],
@@ -33,7 +33,7 @@
},
"develop" : {
"requires" : {
- "Dist::Zilla" : "5.015",
+ "Dist::Zilla" : "5",
"Dist::Zilla::Plugin::MinimumPerl" : "0",
"Dist::Zilla::Plugin::OnlyCorePrereqs" : "0",
"Dist::Zilla::Plugin::Prereqs" : "0",
@@ -47,7 +47,8 @@
"Test::CPAN::Meta" : "0",
"Test::More" : "0",
"Test::Pod" : "1.41",
- "Test::Pod::Coverage" : "1.08"
+ "Test::Pod::Coverage" : "1.08",
+ "Test::Spelling" : "0.12"
}
},
"runtime" : {
@@ -97,11 +98,11 @@
"provides" : {
"Path::Tiny" : {
"file" : "lib/Path/Tiny.pm",
- "version" : "0.054"
+ "version" : "0.055"
},
"Path::Tiny::Error" : {
"file" : "lib/Path/Tiny.pm",
- "version" : "0.054"
+ "version" : "0.055"
}
},
"release_status" : "stable",
@@ -116,11 +117,12 @@
"web" : "https://github.com/dagolden/Path-Tiny"
}
},
- "version" : "0.054",
+ "version" : "0.055",
"x_authority" : "cpan:DAGOLDEN",
"x_contributors" : [
"Chris Williams <bingos@cpan.org>",
"David Steinbrunner <dsteinbrunner@pobox.com>",
+ "Doug Bell <madcityzen@gmail.com>",
"Gabor Szabo <szabgab@cpan.org>",
"Gabriel Andrade <gabiruh@gmail.com>",
"George Hartzell <hartzell@cpan.org>",
@@ -16,7 +16,7 @@ build_requires:
configure_requires:
ExtUtils::MakeMaker: '6.17'
dynamic_config: 0
-generated_by: 'Dist::Zilla version 5.015, CPAN::Meta::Converter version 2.141170'
+generated_by: 'Dist::Zilla version 5.019, CPAN::Meta::Converter version 2.141170'
license: apache
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -34,10 +34,10 @@ no_index:
provides:
Path::Tiny:
file: lib/Path/Tiny.pm
- version: '0.054'
+ version: '0.055'
Path::Tiny::Error:
file: lib/Path/Tiny.pm
- version: '0.054'
+ version: '0.055'
recommends:
Unicode::UTF8: '0.58'
requires:
@@ -62,11 +62,12 @@ resources:
bugtracker: https://github.com/dagolden/Path-Tiny/issues
homepage: https://github.com/dagolden/Path-Tiny
repository: https://github.com/dagolden/Path-Tiny.git
-version: '0.054'
+version: '0.055'
x_authority: cpan:DAGOLDEN
x_contributors:
- 'Chris Williams <bingos@cpan.org>'
- 'David Steinbrunner <dsteinbrunner@pobox.com>'
+ - 'Doug Bell <madcityzen@gmail.com>'
- 'Gabor Szabo <szabgab@cpan.org>'
- 'Gabriel Andrade <gabiruh@gmail.com>'
- 'George Hartzell <hartzell@cpan.org>'
@@ -1,5 +1,5 @@
-# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.015.
+# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v5.019.
use strict;
use warnings;
@@ -12,7 +12,6 @@ use ExtUtils::MakeMaker 6.17;
my %WriteMakefileArgs = (
"ABSTRACT" => "File path utility",
"AUTHOR" => "David Golden <dagolden\@cpan.org>",
- "BUILD_REQUIRES" => {},
"CONFIGURE_REQUIRES" => {
"ExtUtils::MakeMaker" => "6.17"
},
@@ -50,7 +49,7 @@ my %WriteMakefileArgs = (
"open" => 0,
"version" => 0
},
- "VERSION" => "0.054",
+ "VERSION" => "0.055",
"test" => {
"TESTS" => "t/*.t"
}
@@ -2,7 +2,7 @@ NAME
Path::Tiny - File path utility
VERSION
- version 0.054
+ version 0.055
SYNOPSIS
use Path::Tiny;
@@ -708,6 +708,8 @@ CONTRIBUTORS
* David Steinbrunner <dsteinbrunner@pobox.com>
+ * Doug Bell <madcityzen@gmail.com>
+
* Gabor Szabo <szabgab@cpan.org>
* Gabriel Andrade <gabiruh@gmail.com>
@@ -41,7 +41,7 @@ on 'configure' => sub {
};
on 'develop' => sub {
- requires "Dist::Zilla" => "5.015";
+ requires "Dist::Zilla" => "5";
requires "Dist::Zilla::Plugin::MinimumPerl" => "0";
requires "Dist::Zilla::Plugin::OnlyCorePrereqs" => "0";
requires "Dist::Zilla::Plugin::Prereqs" => "0";
@@ -56,4 +56,5 @@ on 'develop' => sub {
requires "Test::More" => "0";
requires "Test::Pod" => "1.41";
requires "Test::Pod::Coverage" => "1.08";
+ requires "Test::Spelling" => "0.12";
};
@@ -4,7 +4,7 @@ use warnings;
package Path::Tiny;
# ABSTRACT: File path utility
-our $VERSION = '0.054'; # VERSION
+our $VERSION = '0.055'; # VERSION
# Dependencies
use Config;
@@ -203,7 +203,7 @@ sub path {
return $path;
}
- # stringify initial path
+ # stringify objects
$path = "$path";
# expand relative volume paths on windows; put trailing slash on UNC root
@@ -212,18 +212,17 @@ sub path {
$path .= "/" if $path =~ m{^$UNC_VOL$};
}
- # concatenate more arguments (stringifies any objects, too)
+ # concatenations stringifies objects, too
if (@_) {
$path .= ( _is_root($path) ? "" : "/" ) . join( "/", @_ );
}
- # canonicalize paths
- my $cpath = $path = File::Spec->canonpath($path); # ugh, but probably worth it
- $path =~ tr[\\][/] if IS_WIN32(); # unix convention enforced
- $path .= "/" if IS_WIN32() && $path =~ m{^$UNC_VOL$}; # canonpath strips it
+ # canonicalize, but with unix slashes and put back trailing volume slash
+ my $cpath = $path = File::Spec->canonpath($path);
+ $path =~ tr[\\][/] if IS_WIN32();
+ $path .= "/" if IS_WIN32() && $path =~ m{^$UNC_VOL$};
- # hack to make splitpath give us a basename; root paths must always have
- # a trailing slash, but other paths must not
+ # root paths must always have a trailing slash, but other paths must not
if ( _is_root($path) ) {
$path =~ s{/?$}{/};
}
@@ -237,7 +236,6 @@ sub path {
$path =~ s{^(~[^/]*)}{$homedir};
}
- # and we're finally done
bless [ $path, $cpath ], __PACKAGE__;
}
@@ -318,7 +316,7 @@ sub rootdir { path( File::Spec->rootdir ) }
#pod =cut
sub tempfile {
- shift if $_[0] eq 'Path::Tiny'; # called as method
+ shift if @_ && $_[0] eq 'Path::Tiny'; # called as method
my ( $maybe_template, $args ) = _parse_file_temp_args(@_);
# File::Temp->new demands TEMPLATE
$args->{TEMPLATE} = $maybe_template->[0] if @$maybe_template;
@@ -332,7 +330,7 @@ sub tempfile {
}
sub tempdir {
- shift if $_[0] eq 'Path::Tiny'; # called as method
+ shift if @_ && $_[0] eq 'Path::Tiny'; # called as method
my ( $maybe_template, $args ) = _parse_file_temp_args(@_);
# File::Temp->newdir demands leading template
@@ -1490,7 +1488,7 @@ Path::Tiny - File path utility
=head1 VERSION
-version 0.054
+version 0.055
=head1 SYNOPSIS
@@ -2288,6 +2286,10 @@ David Steinbrunner <dsteinbrunner@pobox.com>
=item *
+Doug Bell <madcityzen@gmail.com>
+
+=item *
+
Gabor Szabo <szabgab@cpan.org>
=item *
@@ -50,7 +50,7 @@ my $static_prereqs = do { my $x = {
},
'develop' => {
'requires' => {
- 'Dist::Zilla' => '5.015',
+ 'Dist::Zilla' => '5',
'Dist::Zilla::Plugin::MinimumPerl' => '0',
'Dist::Zilla::Plugin::OnlyCorePrereqs' => '0',
'Dist::Zilla::Plugin::Prereqs' => '0',
@@ -64,7 +64,8 @@ my $static_prereqs = do { my $x = {
'Test::CPAN::Meta' => '0',
'Test::More' => '0',
'Test::Pod' => '1.41',
- 'Test::Pod::Coverage' => '1.08'
+ 'Test::Pod::Coverage' => '1.08',
+ 'Test::Spelling' => '0.12'
}
},
'runtime' => {
@@ -2,7 +2,7 @@ use 5.006;
use strict;
use warnings;
-# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.040
+# this test was generated with Dist::Zilla::Plugin::Test::Compile 2.043
use Test::More tests => 1 + ($ENV{AUTHOR_TESTING} ? 1 : 0);
@@ -2,7 +2,7 @@ use strict;
use warnings;
use Test::More;
-# generated by Dist::Zilla::Plugin::Test::PodSpelling 2.006007
+# generated by Dist::Zilla::Plugin::Test::PodSpelling 2.006008
use Test::Spelling 0.12;
use Pod::Wordlist;
@@ -41,6 +41,9 @@ Williams
bingos
Steinbrunner
dsteinbrunner
+Doug
+Bell
+madcityzen
Gabor
Szabo
szabgab