@@ -1,4 +1,4 @@
-CONTRIBUTING
+## HOW TO CONTRIBUTE
Thank you for considering contributing to this distribution. This file
contains instructions that will help you work with the source code.
@@ -7,44 +7,56 @@ The distribution is managed with Dist::Zilla. This means than many of the
usual files you might expect are not in the repository, but are generated
at release time (e.g. Makefile.PL).
-However, you can run tests directly using the 'prove' tool:
+### Getting dependencies
- $ prove -l
- $ prove -lv t/some_test_file.t
+See the included `cpanfile` file for a list of dependencies. If you have
+App::cpanminus 1.6 or later installed, you can use `cpanm` to satisfy
+dependencies like this:
-For most distributions, 'prove' is entirely sufficent for you to test any
-patches you have.
+ $ cpanm --installdeps .
+
+Otherwise, you can install Module::CPANfile 1.0002 or later and then satisfy
+dependencies with the regular `cpan` client and `cpanfile-dump`:
+
+ $ cpan `cpanfile-dump`
-You may need to satisfy some dependencies. See the included META.json
-file for a list. If you install App::mymeta_requires from CPAN, it's easy
-to satisfy any that you are missing by piping the output to your favorite
-CPAN client:
+### Running tests
- $ mymeta-requires | cpanm
- $ cpan `mymeta-requires`
+You can run tests directly using the `prove` tool:
+
+ $ prove -l
+ $ prove -lv t/some_test_file.t
+
+For most distributions, `prove` is entirely sufficent for you to test any
+patches you have.
+
+### Patching documentation
Likewise, much of the documentation Pod is generated at release time.
Depending on the distribution, some documentation may be written in a Pod
-dialect called WikiDoc. (See Pod::WikiDoc on CPAN.) If you would like to
-submit a documentation edit, please limit yourself to the documentation you
-see.
+dialect called WikiDoc. (See Pod::WikiDoc on CPAN.)
+
+If you would like to submit a documentation edit, please limit yourself to the
+documentation you see.
If you see typos or documentation issues in the generated docs, please
email or open a bug ticket instead of patching.
+### Learning Dist::Zilla
+
Dist::Zilla is a very powerful authoring tool, but requires a number of
author-specific plugins. If you would like to use it for contributing,
install it from CPAN, then run one of the following commands, depending on
your CPAN client:
- $ cpan `dzil authordeps`
- $ dzil authordeps | cpanm
+ $ cpan `dzil authordeps`
+ $ dzil authordeps | cpanm
Once installed, here are some dzil commands you might try:
- $ dzil build
- $ dzil test
- $ dzil xtest
+ $ dzil build
+ $ dzil test
+ $ dzil xtest
You can learn more about Dist::Zilla at http://dzil.org/
@@ -1,3 +1,21 @@
+0.2304 2013-10-10 09:16:27 America/New_York
+
+ * List all detectable dependencies for completeness. (Test::More had
+ been unintentionally omitted in the last release and many core
+ dependencies had never been listed.)
+
+0.2303 2013-10-09 09:57:21 America/New_York
+
+ * Remove compile test and associated dependencies
+
+0.2302 2013-09-26 09:45:35 America/New_York
+
+ * Drop minimum Perl version back to 5.6 (erroneously bumped by dzil)
+ * Do not inherit from Exporter (requires Exporter 5.57) (thanks to
+ Olivier Mengué)
+ * 'use base ...' => 'use parent ...' as parent is lighter (thanks to
+ Olivier Mengué)
+
0.2301 2013-04-11 16:30:05 Europe/London
* dist.ini: Managed with Dist::Zilla now; generates Makefile.PL
@@ -6,11 +6,11 @@ META.json
META.yml
Makefile.PL
README
+cpanfile
dist.ini
lib/File/Temp.pm
misc/benchmark.pl
misc/results.txt
-t/00-compile.t
t/00-report-prereqs.t
t/cmp.t
t/fork.t
@@ -3,8 +3,8 @@
"author" : [
"Tim Jenness <tjenness@cpan.org>"
],
- "dynamic_config" : 0,
- "generated_by" : "Dist::Zilla version 4.300031, CPAN::Meta::Converter version 2.130880",
+ "dynamic_config" : 1,
+ "generated_by" : "Dist::Zilla version 4.300039, CPAN::Meta::Converter version 2.132810",
"license" : [
"perl_5"
],
@@ -27,7 +27,7 @@
"prereqs" : {
"configure" : {
"requires" : {
- "ExtUtils::MakeMaker" : "6.30"
+ "ExtUtils::MakeMaker" : "6.17"
}
},
"develop" : {
@@ -40,44 +40,72 @@
},
"runtime" : {
"requires" : {
+ "Carp" : "0",
+ "Carp::Heavy" : "0",
+ "Cwd" : "0",
+ "Exporter" : "5.57",
"Fcntl" : "1.03",
"File::Path" : "2.06",
"File::Spec" : "0.8",
- "perl" : "v5.8.3"
+ "IO::Handle" : "0",
+ "IO::Seekable" : "0",
+ "POSIX" : "0",
+ "Scalar::Util" : "0",
+ "Symbol" : "0",
+ "constant" : "0",
+ "overload" : "0",
+ "parent" : "0.221",
+ "perl" : "5.006",
+ "strict" : "0",
+ "vars" : "0"
+ }
+ },
+ "test" : {
+ "requires" : {
+ "ExtUtils::MakeMaker" : "0",
+ "File::Spec::Functions" : "0",
+ "FileHandle" : "0",
+ "List::Util" : "0",
+ "Test::More" : "0",
+ "warnings" : "0"
}
}
},
"provides" : {
"File::Temp" : {
"file" : "lib/File/Temp.pm",
- "version" : "0.2301"
+ "version" : "0.2304"
},
"File::Temp::Dir" : {
"file" : "lib/File/Temp.pm",
- "version" : "0.2301"
+ "version" : "0.2304"
}
},
"release_status" : "stable",
"resources" : {
"bugtracker" : {
- "mailto" : "bug-File-Temp@rt.cpan.org",
- "web" : "https://rt.cpan.org/Public/Dist/Display.html?Name=File-Temp"
+ "web" : "http://rt.cpan.org/Public/Dist/Display.html?Name=File-Temp"
},
- "homepage" : "https://metacpan.org/release/File-Temp",
+ "homepage" : "https://github.com/Perl-Toolchain-Gang/File-Temp",
"repository" : {
"type" : "git",
- "url" : "git://github.com/Perl-Toolchain-Gang/File-Temp.git",
- "web" : "http://github.com/Perl-Toolchain-Gang/File-Temp"
+ "url" : "https://github.com/Perl-Toolchain-Gang/File-Temp.git",
+ "web" : "https://github.com/Perl-Toolchain-Gang/File-Temp"
}
},
- "version" : "0.2301",
+ "version" : "0.2304",
+ "x_authority" : "cpan:TJENNESS",
"x_contributors" : [
"Ben Tilly <btilly@gmail.com>",
"David Golden <dagolden@cpan.org>",
+ "David Steinbrunner <dsteinbrunner@pobox.com>",
"Ed Avis <eda@linux01.wcl.local>",
"James E. Keenan <jkeen@verizon.net>",
+ "Karen Etheridge <ether@cpan.org>",
"Kevin Ryde <user42@zip.com.au>",
- "Peter John Acklam <pjacklam@online.no>"
+ "Olivier Mengue <dolmen@cpan.org>",
+ "Peter John Acklam <pjacklam@online.no>",
+ "Peter Rabbitson <ribasushi@cpan.org>"
]
}
@@ -2,11 +2,17 @@
abstract: 'return name and handle of a temporary file safely'
author:
- 'Tim Jenness <tjenness@cpan.org>'
-build_requires: {}
+build_requires:
+ ExtUtils::MakeMaker: 0
+ File::Spec::Functions: 0
+ FileHandle: 0
+ List::Util: 0
+ Test::More: 0
+ warnings: 0
configure_requires:
- ExtUtils::MakeMaker: 6.30
-dynamic_config: 0
-generated_by: 'Dist::Zilla version 4.300031, CPAN::Meta::Converter version 2.130880'
+ ExtUtils::MakeMaker: 6.17
+dynamic_config: 1
+generated_by: 'Dist::Zilla version 4.300039, CPAN::Meta::Converter version 2.132810'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -23,24 +29,43 @@ no_index:
provides:
File::Temp:
file: lib/File/Temp.pm
- version: 0.2301
+ version: 0.2304
File::Temp::Dir:
file: lib/File/Temp.pm
- version: 0.2301
+ version: 0.2304
requires:
+ Carp: 0
+ Carp::Heavy: 0
+ Cwd: 0
+ Exporter: 5.57
Fcntl: 1.03
File::Path: 2.06
File::Spec: 0.8
- perl: v5.8.3
+ IO::Handle: 0
+ IO::Seekable: 0
+ POSIX: 0
+ Scalar::Util: 0
+ Symbol: 0
+ constant: 0
+ overload: 0
+ parent: 0.221
+ perl: 5.006
+ strict: 0
+ vars: 0
resources:
- bugtracker: https://rt.cpan.org/Public/Dist/Display.html?Name=File-Temp
- homepage: https://metacpan.org/release/File-Temp
- repository: git://github.com/Perl-Toolchain-Gang/File-Temp.git
-version: 0.2301
+ bugtracker: http://rt.cpan.org/Public/Dist/Display.html?Name=File-Temp
+ homepage: https://github.com/Perl-Toolchain-Gang/File-Temp
+ repository: https://github.com/Perl-Toolchain-Gang/File-Temp.git
+version: 0.2304
+x_authority: cpan:TJENNESS
x_contributors:
- 'Ben Tilly <btilly@gmail.com>'
- 'David Golden <dagolden@cpan.org>'
+ - 'David Steinbrunner <dsteinbrunner@pobox.com>'
- 'Ed Avis <eda@linux01.wcl.local>'
- 'James E. Keenan <jkeen@verizon.net>'
+ - 'Karen Etheridge <ether@cpan.org>'
- 'Kevin Ryde <user42@zip.com.au>'
+ - 'Olivier Mengue <dolmen@cpan.org>'
- 'Peter John Acklam <pjacklam@online.no>'
+ - 'Peter Rabbitson <ribasushi@cpan.org>'
@@ -2,9 +2,9 @@
use strict;
use warnings;
-use 5.008003;
+use 5.006;
-use ExtUtils::MakeMaker 6.30;
+use ExtUtils::MakeMaker 6.17;
@@ -13,24 +13,59 @@ my %WriteMakefileArgs = (
"AUTHOR" => "Tim Jenness <tjenness\@cpan.org>",
"BUILD_REQUIRES" => {},
"CONFIGURE_REQUIRES" => {
- "ExtUtils::MakeMaker" => "6.30"
+ "ExtUtils::MakeMaker" => "6.17"
},
"DISTNAME" => "File-Temp",
"EXE_FILES" => [],
"LICENSE" => "perl",
"NAME" => "File::Temp",
"PREREQ_PM" => {
+ "Carp" => 0,
+ "Carp::Heavy" => 0,
+ "Cwd" => 0,
+ "Exporter" => "5.57",
"Fcntl" => "1.03",
"File::Path" => "2.06",
- "File::Spec" => "0.8"
+ "File::Spec" => "0.8",
+ "IO::Handle" => 0,
+ "IO::Seekable" => 0,
+ "POSIX" => 0,
+ "Scalar::Util" => 0,
+ "Symbol" => 0,
+ "constant" => 0,
+ "overload" => 0,
+ "parent" => "0.221",
+ "strict" => 0,
+ "vars" => 0
},
- "VERSION" => "0.2301",
+ "TEST_REQUIRES" => {
+ "ExtUtils::MakeMaker" => 0,
+ "File::Spec::Functions" => 0,
+ "FileHandle" => 0,
+ "List::Util" => 0,
+ "Test::More" => 0,
+ "warnings" => 0
+ },
+ "VERSION" => "0.2304",
"test" => {
"TESTS" => "t/*.t"
}
);
+unless ( eval { ExtUtils::MakeMaker->VERSION(6.63_03) } ) {
+ my $tr = delete $WriteMakefileArgs{TEST_REQUIRES};
+ my $br = $WriteMakefileArgs{BUILD_REQUIRES};
+ for my $mod ( keys %$tr ) {
+ if ( exists $br->{$mod} ) {
+ $br->{$mod} = $tr->{$mod} if $tr->{$mod} > $br->{$mod};
+ }
+ else {
+ $br->{$mod} = $tr->{$mod};
+ }
+ }
+}
+
unless ( eval { ExtUtils::MakeMaker->VERSION(6.56) } ) {
my $br = delete $WriteMakefileArgs{BUILD_REQUIRES};
my $pp = $WriteMakefileArgs{PREREQ_PM};
@@ -47,6 +82,10 @@ unless ( eval { ExtUtils::MakeMaker->VERSION(6.56) } ) {
delete $WriteMakefileArgs{CONFIGURE_REQUIRES}
unless eval { ExtUtils::MakeMaker->VERSION(6.52) };
+if ( $^O eq 'VMS' ) {
+ $WriteMakefileArgs{PREREQ_PM}{'VMS::Stdio'} = '0';
+}
+
$WriteMakefileArgs{INSTALLDIRS} = 'perl'
if $] >= 5.006001 && $] <= 5.011000;
@@ -2,7 +2,7 @@ NAME
File::Temp - return name and handle of a temporary file safely
VERSION
- version 0.2301
+ version 0.2304
SYNOPSIS
use File::Temp qw/ tempfile tempdir /;
@@ -774,16 +774,16 @@ SEE ALSO
SUPPORT
Bugs / Feature Requests
Please report any bugs or feature requests through the issue tracker at
- <https://rt.cpan.org/Public/Dist/Display.html?Name=File-Temp>. You will
+ <http://rt.cpan.org/Public/Dist/Display.html?Name=File-Temp>. You will
be notified automatically of any progress on your issue.
Source Code
This is open source software. The code repository is available for
public review and contribution under the terms of the license.
- <http://github.com/Perl-Toolchain-Gang/File-Temp>
+ <https://github.com/Perl-Toolchain-Gang/File-Temp>
- git clone git://github.com/Perl-Toolchain-Gang/File-Temp.git
+ git clone https://github.com/Perl-Toolchain-Gang/File-Temp.git
AUTHOR
Tim Jenness <tjenness@cpan.org>
@@ -793,14 +793,22 @@ CONTRIBUTORS
* David Golden <dagolden@cpan.org>
+ * David Steinbrunner <dsteinbrunner@pobox.com>
+
* Ed Avis <eda@linux01.wcl.local>
* James E. Keenan <jkeen@verizon.net>
+ * Karen Etheridge <ether@cpan.org>
+
* Kevin Ryde <user42@zip.com.au>
+ * Olivier Mengue <dolmen@cpan.org>
+
* Peter John Acklam <pjacklam@online.no>
+ * Peter Rabbitson <ribasushi@cpan.org>
+
COPYRIGHT AND LICENSE
This software is copyright (c) 2013 by Tim Jenness and the UK Particle
Physics and Astronomy Research Council.
@@ -0,0 +1,38 @@
+requires "Carp" => "0";
+requires "Carp::Heavy" => "0";
+requires "Cwd" => "0";
+requires "Exporter" => "5.57";
+requires "Fcntl" => "1.03";
+requires "File::Path" => "2.06";
+requires "File::Spec" => "0.8";
+requires "IO::Handle" => "0";
+requires "IO::Seekable" => "0";
+requires "POSIX" => "0";
+requires "Scalar::Util" => "0";
+requires "Symbol" => "0";
+requires "constant" => "0";
+requires "overload" => "0";
+requires "parent" => "0.221";
+requires "perl" => "5.006";
+requires "strict" => "0";
+requires "vars" => "0";
+
+on 'test' => sub {
+ requires "ExtUtils::MakeMaker" => "0";
+ requires "File::Spec::Functions" => "0";
+ requires "FileHandle" => "0";
+ requires "List::Util" => "0";
+ requires "Test::More" => "0";
+ requires "warnings" => "0";
+};
+
+on 'configure' => sub {
+ requires "ExtUtils::MakeMaker" => "6.17";
+};
+
+on 'develop' => sub {
+ requires "Pod::Coverage::TrustPod" => "0";
+ requires "Test::CPAN::Meta" => "0";
+ requires "Test::Pod" => "1.41";
+ requires "Test::Pod::Coverage" => "1.08";
+};
@@ -3,16 +3,14 @@ author = Tim Jenness <tjenness@cpan.org>
license = Perl_5
copyright_holder = Tim Jenness and the UK Particle Physics and Astronomy Research Council
-[Prereqs]
-Fcntl = 1.03
-File::Path = 2.06
-File::Spec = 0.8
-
[@DAGOLDEN]
-:version = 0.043
-AutoMetaResources.repository.github = 0
+:version = 0.053
+-remove = MinimumPerl
+-remove = Test::Compile
+authority = cpan:TJENNESS
+github_issues = 0
no_critic = 1
-auto_prereq = 0
+GithubMeta.user = Perl-Toolchain-Gang
stopwords = APIs
stopwords = Acklam
stopwords = Christiansen
@@ -38,10 +36,11 @@ stopwords = unlink
stopwords = unlinked
stopwords = unlinking
-[MetaResources]
-repository.url = git://github.com/Perl-Toolchain-Gang/File-Temp.git
-repository.web = http://github.com/Perl-Toolchain-Gang/File-Temp
-repository.type = git
+[RemovePrereqs]
+remove = VMS::Stdio
+
+[OSPrereqs / VMS]
+VMS::Stdio = 0
[DualLife]
entered_core=5.006001
@@ -1,16 +1,17 @@
package File::Temp;
# ABSTRACT: return name and handle of a temporary file safely
-our $VERSION = '0.2301'; # VERSION
+our $VERSION = '0.2304'; # VERSION
-# 5.6.0 gives us S_IWOTH, S_IWGRP, our and auto-vivifying filehandls
-# People would like a version on 5.004 so give them what they want :-)
-use 5.004;
+# Toolchain targets v5.8.1, but we'll try to support back to v5.6 anyway.
+# It might be possible to make this v5.5, but many v5.6isms are creeping
+# into the code and tests.
+use 5.006;
use strict;
use Carp;
use File::Spec 0.8;
use Cwd ();
-use File::Path qw/ rmtree /;
+use File::Path 2.06 qw/ rmtree /;
use Fcntl 1.03;
use IO::Seekable; # For SEEK_*
use Errno;
@@ -28,7 +29,7 @@ eval { require Carp::Heavy; };
require Symbol if $] < 5.006;
### For the OO interface
-use base qw/ IO::Handle IO::Seekable /;
+use parent 0.221 qw/ IO::Handle IO::Seekable /;
use overload '""' => "STRINGIFY", '0+' => "NUMIFY",
fallback => 1;
@@ -40,7 +41,7 @@ $KEEP_ALL = 0;
# We are exporting functions
-use base qw/Exporter/;
+use Exporter 5.57 'import'; # 5.57 lets us import 'import'
# Export list - to allow fine tuning of export table
@@ -752,7 +753,7 @@ sub _can_do_level {
foreach my $file (@files) {
# close the filehandle without checking its state
# in order to make real sure that this is closed
- # if its already closed then I dont care about the answer
+ # if its already closed then I don't care about the answer
# probably a better way to do this
close($file->[0]); # file handle is [0]
@@ -1632,7 +1633,7 @@ File::Temp - return name and handle of a temporary file safely
=head1 VERSION
-version 0.2301
+version 0.2304
=head1 SYNOPSIS
@@ -2521,7 +2522,7 @@ the C<tempdir> function.
=head2 Bugs / Feature Requests
Please report any bugs or feature requests through the issue tracker
-at L<https://rt.cpan.org/Public/Dist/Display.html?Name=File-Temp>.
+at L<http://rt.cpan.org/Public/Dist/Display.html?Name=File-Temp>.
You will be notified automatically of any progress on your issue.
=head2 Source Code
@@ -2529,9 +2530,9 @@ You will be notified automatically of any progress on your issue.
This is open source software. The code repository is available for
public review and contribution under the terms of the license.
-L<http://github.com/Perl-Toolchain-Gang/File-Temp>
+L<https://github.com/Perl-Toolchain-Gang/File-Temp>
- git clone git://github.com/Perl-Toolchain-Gang/File-Temp.git
+ git clone https://github.com/Perl-Toolchain-Gang/File-Temp.git
=head1 AUTHOR
@@ -2551,6 +2552,10 @@ David Golden <dagolden@cpan.org>
=item *
+David Steinbrunner <dsteinbrunner@pobox.com>
+
+=item *
+
Ed Avis <eda@linux01.wcl.local>
=item *
@@ -2559,12 +2564,24 @@ James E. Keenan <jkeen@verizon.net>
=item *
+Karen Etheridge <ether@cpan.org>
+
+=item *
+
Kevin Ryde <user42@zip.com.au>
=item *
+Olivier Mengue <dolmen@cpan.org>
+
+=item *
+
Peter John Acklam <pjacklam@online.no>
+=item *
+
+Peter Rabbitson <ribasushi@cpan.org>
+
=back
=head1 COPYRIGHT AND LICENSE
@@ -1,74 +0,0 @@
-#!perl
-
-use strict;
-use warnings;
-
-use Test::More;
-
-
-
-use File::Find;
-use File::Temp qw{ tempdir };
-
-my @modules;
-find(
- sub {
- return if $File::Find::name !~ /\.pm\z/;
- my $found = $File::Find::name;
- $found =~ s{^lib/}{};
- $found =~ s{[/\\]}{::}g;
- $found =~ s/\.pm$//;
- # nothing to skip
- push @modules, $found;
- },
- 'lib',
-);
-
-sub _find_scripts {
- my $dir = shift @_;
-
- my @found_scripts = ();
- find(
- sub {
- return unless -f;
- my $found = $File::Find::name;
- # nothing to skip
- open my $FH, '<', $_ or do {
- note( "Unable to open $found in ( $! ), skipping" );
- return;
- };
- my $shebang = <$FH>;
- return unless $shebang =~ /^#!.*?\bperl\b\s*$/;
- push @found_scripts, $found;
- },
- $dir,
- );
-
- return @found_scripts;
-}
-
-my @scripts;
-do { push @scripts, _find_scripts($_) if -d $_ }
- for qw{ bin script scripts };
-
-my $plan = scalar(@modules) + scalar(@scripts);
-$plan ? (plan tests => $plan) : (plan skip_all => "no tests to run");
-
-{
- # fake home for cpan-testers
- local $ENV{HOME} = tempdir( CLEANUP => 1 );
-
- like( qx{ $^X -Ilib -e "require $_; print '$_ ok'" }, qr/^\s*$_ ok/s, "$_ loaded ok" )
- for sort @modules;
-
- SKIP: {
- eval "use Test::Script 1.05; 1;";
- skip "Test::Script needed to test script compilation", scalar(@scripts) if $@;
- foreach my $file ( @scripts ) {
- my $script = $file;
- $script =~ s!.*/!!;
- script_compiles( $file, "$script script compiles" );
- }
- }
-
-}
@@ -10,11 +10,30 @@ use File::Spec::Functions;
use List::Util qw/max/;
my @modules = qw(
+ Carp
+ Carp::Heavy
+ Cwd
+ Exporter
ExtUtils::MakeMaker
Fcntl
File::Path
File::Spec
+ File::Spec::Functions
+ FileHandle
+ IO::Handle
+ IO::Seekable
+ List::Util
+ POSIX
+ Scalar::Util
+ Symbol
+ Test::More
+ constant
+ overload
+ parent
perl
+ strict
+ vars
+ warnings
);
# replace modules with dynamic results from MYMETA.json if we can
@@ -2,8 +2,9 @@ use strict;
use warnings;
use Test::More;
-# generated by Dist::Zilla::Plugin::Test::PodSpelling 2.004003
-eval "use Test::Spelling 0.12; use Pod::Wordlist::hanekomu; 1" or die $@;
+# generated by Dist::Zilla::Plugin::Test::PodSpelling 2.006001
+use Test::Spelling 0.12;
+use Pod::Wordlist;
add_stopwords(<DATA>);
@@ -44,6 +45,32 @@ Physics
Astronomy
Research
Council
+Ben
+btilly
+David
+Golden
+dagolden
+Steinbrunner
+dsteinbrunner
+Ed
+Avis
+eda
+James
+Keenan
+jkeen
+Karen
+Etheridge
+ether
+Kevin
+user42
+Olivier
+Mengue
+dolmen
+Peter
+John
+pjacklam
+Rabbitson
+ribasushi
lib
File
Temp
@@ -1,5 +1,8 @@
#!perl
+use strict;
+use warnings;
+
use Test::More;
eval 'use Test::Portability::Files';