Skip to content

Commit 20e7f8e

Browse files
File-Temp-0.2310
- add AppVeyor CI - Add PERMS options to create temp file with given file permissions - remove remaining uses of indirect object syntax (#34, Nicolas R)
1 parent 1d3137c commit 20e7f8e

File tree

4 files changed

+45
-21
lines changed

4 files changed

+45
-21
lines changed

CONTRIBUTING

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,17 +72,21 @@ Once installed, here are some dzil commands you might try:
7272
You can learn more about Dist::Zilla at http://dzil.org/.
7373

7474
The code for this distribution is hosted at GitHub. The repository is:
75+
7576
https://github.com/Perl-Toolchain-Gang/File-Temp
77+
7678
You can submit code changes by forking the repository, pushing your code
77-
changes to your clone, and then submitting a pull request. Detailed
78-
instructions for doing that is available here:
79+
changes to your clone, and then submitting a pull request. Please include a
80+
suitable end-user-oriented entry in the Changes file describing your change.
81+
Detailed instructions for doing that is available here:
7982

8083
https://help.github.com/articles/creating-a-pull-request
8184

8285
All pull requests for this distribution will be automatically tested on Linux
8386
by Travis at: https://travis-ci.com/Perl-Toolchain-Gang/File-Temp
84-
All results will be visible in the pull request on GitHub. Follow the
85-
appropriate links for details when tests fail.
87+
Results will be visible in the pull request on GitHub. Follow the appropriate
88+
links for details when tests fail. Changes will not be mergeable until all
89+
tests pass.
8690

8791
If you have found a bug, but do not have an accompanying patch to fix it, you
8892
can submit an issue report here:
@@ -102,4 +106,4 @@ request to the .mailmap file to contain the correct mapping.
102106

103107

104108
This file was generated via Dist::Zilla::Plugin::GenerateFile::FromShareDir 0.014
105-
from a template file originating in Dist-Zilla-PluginBundle-Author-ETHER-0.145.
109+
from a template file originating in Dist-Zilla-PluginBundle-Author-ETHER-0.158.

Changes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{$NEXT}}
1+
0.2310 2020-09-26 17:37:56Z
22
- add AppVeyor CI
33
- Add PERMS options to create temp file with given file permissions
44
- remove remaining uses of indirect object syntax (#34, Nicolas R)

LICENSE

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
This software is copyright (c) 2019 by Tim Jenness and the UK Particle Physics and Astronomy Research Council.
1+
This software is copyright (c) 2020 by Tim Jenness and the UK Particle Physics and Astronomy Research Council.
22

33
This is free software; you can redistribute it and/or modify it under
44
the same terms as the Perl 5 programming language system itself.
@@ -12,7 +12,7 @@ b) the "Artistic License"
1212

1313
--- The GNU General Public License, Version 1, February 1989 ---
1414

15-
This software is Copyright (c) 2019 by Tim Jenness and the UK Particle Physics and Astronomy Research Council.
15+
This software is Copyright (c) 2020 by Tim Jenness and the UK Particle Physics and Astronomy Research Council.
1616

1717
This is free software, licensed under:
1818

@@ -272,7 +272,7 @@ That's all there is to it!
272272

273273
--- The Artistic License 1.0 ---
274274

275-
This software is Copyright (c) 2019 by Tim Jenness and the UK Particle Physics and Astronomy Research Council.
275+
This software is Copyright (c) 2020 by Tim Jenness and the UK Particle Physics and Astronomy Research Council.
276276

277277
This is free software, licensed under:
278278

README.pod

Lines changed: 32 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ File::Temp - return name and handle of a temporary file safely
88

99
=head1 VERSION
1010

11-
version 0.2309
11+
version 0.2310
1212

1313
=head1 SYNOPSIS
1414

@@ -179,7 +179,8 @@ that the temporary file is removed by the object destructor
179179
if UNLINK is set to true (the default).
180180

181181
Supported arguments are the same as for C<tempfile>: UNLINK
182-
(defaulting to true), DIR, EXLOCK and SUFFIX. Additionally, the filename
182+
(defaulting to true), DIR, EXLOCK, PERMS and SUFFIX.
183+
Additionally, the filename
183184
template is specified using the TEMPLATE option. The OPEN option
184185
is not supported (the file is always opened).
185186

@@ -364,6 +365,11 @@ versions, explicitly set C<< EXLOCK=>0 >>.
364365

365366
($fh, $filename) = tempfile($template, EXLOCK => 1);
366367

368+
By default, the temp file is created with 0600 file permissions.
369+
Use C<PERMS> to change this:
370+
371+
($fh, $filename) = tempfile($template, PERMS => 0666);
372+
367373
Options can be combined as required.
368374

369375
Will croak() if there is an error.
@@ -376,6 +382,8 @@ TMPDIR flag available since 0.19.
376382

377383
EXLOCK flag available since 0.19.
378384

385+
PERMS flag available since 0.24.
386+
379387
=item B<tempdir>
380388

381389
This is the recommended interface for creation of temporary
@@ -966,49 +974,53 @@ Tim Jenness <[email protected]>
966974

967975
=head1 CONTRIBUTORS
968976

969-
=for stopwords David Golden Karen Etheridge Slaven Rezic Peter Rabbitson Olivier Mengue Kevin Ryde John Acklam James E. Keenan Brian Mowrey Dagfinn Ilmari Mannsåker Steinbrunner Ed Avis Guillem Jover Ben Tilly
977+
=for stopwords Tim Jenness Karen Etheridge David Golden Slaven Rezic mohawk2 Roy Ivy III Peter Rabbitson Olivier Mengué John Acklam Gim Yee Nicolas R Brian Mowrey Dagfinn Ilmari Mannsåker Steinbrunner Ed Avis Guillem Jover James E. Keenan Kevin Ryde Ben Tilly
970978

971979
=over 4
972980

973981
=item *
974982

975-
David Golden <[email protected]>
983+
Tim Jenness <[email protected]>
976984

977985
=item *
978986

979987
Karen Etheridge <[email protected]>
980988

981989
=item *
982990

983-
Slaven Rezic <[email protected]>
991+
David Golden <[email protected]>
984992

985993
=item *
986994

987-
Peter Rabbitson <ribasushi@cpan.org>
995+
Slaven Rezic <srezic@cpan.org>
988996

989997
=item *
990998

991-
Olivier Mengue <[email protected]>
999+
9921000

9931001
=item *
9941002

995-
David Golden <[email protected]>
1003+
Roy Ivy III <[email protected]>
9961004

9971005
=item *
9981006

999-
Kevin Ryde <[email protected]>
1007+
Peter Rabbitson <[email protected]>
1008+
1009+
=item *
1010+
1011+
Olivier Mengué <[email protected]>
10001012

10011013
=item *
10021014

10031015
Peter John Acklam <[email protected]>
10041016

10051017
=item *
10061018

1007-
Slaven Rezic <[email protected]>
1019+
Tim Gim Yee <[email protected]>
10081020

10091021
=item *
10101022

1011-
James E. Keenan <[email protected]>
1023+
Nicolas R <[email protected]>
10121024

10131025
=item *
10141026

@@ -1032,13 +1044,21 @@ Guillem Jover <[email protected]>
10321044

10331045
=item *
10341046

1047+
James E. Keenan <[email protected]>
1048+
1049+
=item *
1050+
1051+
Kevin Ryde <[email protected]>
1052+
1053+
=item *
1054+
10351055
Ben Tilly <[email protected]>
10361056

10371057
=back
10381058

10391059
=head1 COPYRIGHT AND LICENSE
10401060

1041-
This software is copyright (c) 2019 by Tim Jenness and the UK Particle Physics and Astronomy Research Council.
1061+
This software is copyright (c) 2020 by Tim Jenness and the UK Particle Physics and Astronomy Research Council.
10421062

10431063
This is free software; you can redistribute it and/or modify it under
10441064
the same terms as the Perl 5 programming language system itself.

0 commit comments

Comments
 (0)