Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package perl-Path-Tiny for openSUSE:Factory 
checked in at 2021-10-29 22:33:51
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Path-Tiny (Old)
 and      /work/SRC/openSUSE:Factory/.perl-Path-Tiny.new.1890 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-Path-Tiny"

Fri Oct 29 22:33:51 2021 rev:27 rq:927519 version:0.120

Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-Path-Tiny/perl-Path-Tiny.changes    
2021-02-11 12:45:45.605346721 +0100
+++ /work/SRC/openSUSE:Factory/.perl-Path-Tiny.new.1890/perl-Path-Tiny.changes  
2021-10-29 22:34:48.455695137 +0200
@@ -1,0 +2,14 @@
+Mon Oct 25 03:06:31 UTC 2021 - Tina M??ller <timueller+p...@suse.de>
+
+- updated to 0.120
+   see /usr/share/doc/packages/perl-Path-Tiny/Changes
+
+  0.120     2021-10-24 12:12:57-04:00 America/New_York
+      - No changes from 0.119-TRIAL.
+  0.119     2021-10-20 18:15:24-04:00 America/New_York (TRIAL RELEASE)
+      [Changes]
+      - The `tempdir` and `tempfile` methods may be called on a Path::Tiny 
object
+        representing a directory, in which case the directory will be used as 
the
+        container for the temporary object (as if the `DIR` argument were 
used).
+
+-------------------------------------------------------------------

Old:
----
  Path-Tiny-0.118.tar.gz

New:
----
  Path-Tiny-0.120.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ perl-Path-Tiny.spec ++++++
--- /var/tmp/diff_new_pack.0yDy77/_old  2021-10-29 22:34:48.971695331 +0200
+++ /var/tmp/diff_new_pack.0yDy77/_new  2021-10-29 22:34:48.971695331 +0200
@@ -18,7 +18,7 @@
 
 %define cpan_name Path-Tiny
 Name:           perl-Path-Tiny
-Version:        0.118
+Version:        0.120
 Release:        0
 Summary:        File path utility
 License:        Apache-2.0

++++++ Path-Tiny-0.118.tar.gz -> Path-Tiny-0.120.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Path-Tiny-0.118/Changes new/Path-Tiny-0.120/Changes
--- old/Path-Tiny-0.118/Changes 2021-02-05 01:10:21.000000000 +0100
+++ new/Path-Tiny-0.120/Changes 2021-10-24 18:13:13.000000000 +0200
@@ -1,5 +1,17 @@
 Revision history for Path-Tiny
 
+0.120     2021-10-24 12:12:57-04:00 America/New_York
+
+    - No changes from 0.119-TRIAL.
+
+0.119     2021-10-20 18:15:24-04:00 America/New_York (TRIAL RELEASE)
+
+    [Changes]
+
+    - The `tempdir` and `tempfile` methods may be called on a Path::Tiny object
+      representing a directory, in which case the directory will be used as the
+      container for the temporary object (as if the `DIR` argument were used).
+
 0.118     2021-02-04 19:09:58-05:00 America/New_York
 
     - No changes from 0.117-TRIAL.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Path-Tiny-0.118/LICENSE new/Path-Tiny-0.120/LICENSE
--- old/Path-Tiny-0.118/LICENSE 2021-02-05 01:10:21.000000000 +0100
+++ new/Path-Tiny-0.120/LICENSE 2021-10-24 18:13:13.000000000 +0200
@@ -192,7 +192,7 @@
       same "printed page" as the copyright notice for easier
       identification within third-party archives.
 
-   Copyright [yyyy] [name of copyright owner]
+   Copyright 2014 David Golden
 
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Path-Tiny-0.118/MANIFEST new/Path-Tiny-0.120/MANIFEST
--- old/Path-Tiny-0.118/MANIFEST        2021-02-05 01:10:21.000000000 +0100
+++ new/Path-Tiny-0.120/MANIFEST        2021-10-24 18:13:13.000000000 +0200
@@ -1,4 +1,4 @@
-# This file was automatically generated by Dist::Zilla::Plugin::Manifest 
v6.017.
+# This file was automatically generated by Dist::Zilla::Plugin::Manifest 
v6.024.
 CONTRIBUTING.mkdn
 Changes
 LICENSE
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Path-Tiny-0.118/META.json 
new/Path-Tiny-0.120/META.json
--- old/Path-Tiny-0.118/META.json       2021-02-05 01:10:21.000000000 +0100
+++ new/Path-Tiny-0.120/META.json       2021-10-24 18:13:13.000000000 +0200
@@ -4,7 +4,7 @@
       "David Golden <dagol...@cpan.org>"
    ],
    "dynamic_config" : 0,
-   "generated_by" : "Dist::Zilla version 6.017, CPAN::Meta::Converter version 
2.150010",
+   "generated_by" : "Dist::Zilla version 6.024, CPAN::Meta::Converter version 
2.150010",
    "license" : [
       "apache_2_0"
    ],
@@ -112,11 +112,11 @@
    "provides" : {
       "Path::Tiny" : {
          "file" : "lib/Path/Tiny.pm",
-         "version" : "0.118"
+         "version" : "0.120"
       },
       "Path::Tiny::Error" : {
          "file" : "lib/Path/Tiny.pm",
-         "version" : "0.118"
+         "version" : "0.120"
       }
    },
    "release_status" : "stable",
@@ -131,7 +131,7 @@
          "web" : "https://github.com/dagolden/Path-Tiny";
       }
    },
-   "version" : "0.118",
+   "version" : "0.120",
    "x_authority" : "cpan:DAGOLDEN",
    "x_contributors" : [
       "Alex Efros <power...@powerman.name>",
@@ -141,6 +141,7 @@
       "Dave Rolsky <auta...@urth.org>",
       "David Steinbrunner <dsteinbrun...@pobox.com>",
       "Doug Bell <madcity...@gmail.com>",
+      "Flavio Poletti <fla...@polettix.it>",
       "Gabor Szabo <szab...@cpan.org>",
       "Gabriel Andrade <gabi...@gmail.com>",
       "George Hartzell <hartz...@cpan.org>",
@@ -167,8 +168,8 @@
       "Yanick Champoux <yan...@babyl.dyndns.org>",
       "\uae40\ub3c4\ud615 - Keedi Kim <ke...@cpan.org>"
    ],
-   "x_generated_by_perl" : "v5.32.0",
-   "x_serialization_backend" : "Cpanel::JSON::XS version 4.24",
+   "x_generated_by_perl" : "v5.34.0",
+   "x_serialization_backend" : "Cpanel::JSON::XS version 4.26",
    "x_spdx_expression" : "Apache-2.0"
 }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Path-Tiny-0.118/META.yml new/Path-Tiny-0.120/META.yml
--- old/Path-Tiny-0.118/META.yml        2021-02-05 01:10:21.000000000 +0100
+++ new/Path-Tiny-0.120/META.yml        2021-10-24 18:13:13.000000000 +0200
@@ -18,7 +18,7 @@
   ExtUtils::MakeMaker: '6.17'
   perl: '5.008001'
 dynamic_config: 0
-generated_by: 'Dist::Zilla version 6.017, CPAN::Meta::Converter version 
2.150010'
+generated_by: 'Dist::Zilla version 6.024, CPAN::Meta::Converter version 
2.150010'
 license: apache
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -36,10 +36,10 @@
 provides:
   Path::Tiny:
     file: lib/Path/Tiny.pm
-    version: '0.118'
+    version: '0.120'
   Path::Tiny::Error:
     file: lib/Path/Tiny.pm
-    version: '0.118'
+    version: '0.120'
 recommends:
   Unicode::UTF8: '0.58'
 requires:
@@ -66,7 +66,7 @@
   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.118'
+version: '0.120'
 x_authority: cpan:DAGOLDEN
 x_contributors:
   - 'Alex Efros <power...@powerman.name>'
@@ -76,6 +76,7 @@
   - 'Dave Rolsky <auta...@urth.org>'
   - 'David Steinbrunner <dsteinbrun...@pobox.com>'
   - 'Doug Bell <madcity...@gmail.com>'
+  - 'Flavio Poletti <fla...@polettix.it>'
   - 'Gabor Szabo <szab...@cpan.org>'
   - 'Gabriel Andrade <gabi...@gmail.com>'
   - 'George Hartzell <hartz...@cpan.org>'
@@ -101,6 +102,6 @@
   - 'Toby Inkster <toby...@cpan.org>'
   - 'Yanick Champoux <yan...@babyl.dyndns.org>'
   - '????????? - Keedi Kim <ke...@cpan.org>'
-x_generated_by_perl: v5.32.0
+x_generated_by_perl: v5.34.0
 x_serialization_backend: 'YAML::Tiny version 1.73'
 x_spdx_expression: Apache-2.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Path-Tiny-0.118/Makefile.PL 
new/Path-Tiny-0.120/Makefile.PL
--- old/Path-Tiny-0.118/Makefile.PL     2021-02-05 01:10:21.000000000 +0100
+++ new/Path-Tiny-0.120/Makefile.PL     2021-10-24 18:13:13.000000000 +0200
@@ -1,4 +1,4 @@
-# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker 
v6.017.
+# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker 
v6.024.
 use strict;
 use warnings;
 
@@ -48,7 +48,7 @@
     "lib" => 0,
     "open" => 0
   },
-  "VERSION" => "0.118",
+  "VERSION" => "0.120",
   "test" => {
     "TESTS" => "t/*.t"
   }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Path-Tiny-0.118/README new/Path-Tiny-0.120/README
--- old/Path-Tiny-0.118/README  2021-02-05 01:10:21.000000000 +0100
+++ new/Path-Tiny-0.120/README  2021-10-24 18:13:13.000000000 +0200
@@ -2,7 +2,7 @@
     Path::Tiny - File path utility
 
 VERSION
-    version 0.118
+    version 0.120
 
 SYNOPSIS
       use Path::Tiny;
@@ -147,6 +147,8 @@
   tempfile, tempdir
         $temp = Path::Tiny->tempfile( @options );
         $temp = Path::Tiny->tempdir( @options );
+        $temp = $dirpath->tempfile( @options );
+        $temp = $dirpath->tempdir( @options );
         $temp = tempfile( @options ); # optional export
         $temp = tempdir( @options );  # optional export
 
@@ -177,6 +179,17 @@
     Both "tempfile" and "tempdir" may be exported on request and used as
     functions instead of as methods.
 
+    The methods can be called on an instances representing a directory. In
+    this case, the directory is used as the base to create the temporary
+    file/directory, setting the "DIR" option in File::Temp.
+
+        my $target_dir = path('/to/destination');
+        my $tempfile = $target_dir->tempfile('foobarXXXXXX');
+        $tempfile->spew('A lot of data...');  # not atomic
+        $tempfile->rename($target_dir->child('foobar')); # hopefully atomic
+
+    In this case, any value set for option "DIR" is ignored.
+
     Note: for tempfiles, the filehandles from File::Temp are closed and not
     reused. This is not as secure as using File::Temp handles directly, but
     is less prone to deadlocks or access problems on some platforms. Think
@@ -196,7 +209,7 @@
     Keeping a reference to, or modifying the cached object may break the
     behavior documented above and is not supported. Use at your own risk.
 
-    Current API available since 0.097.
+    Current API available since 0.119.
 
 METHODS
   absolute
@@ -1036,6 +1049,20 @@
     This module was featured in the 2013 Perl Advent Calendar
     <http://www.perladvent.org/2013/2013-12-18.html>.
 
+SUPPORT
+  Bugs / Feature Requests
+    Please report any bugs or feature requests through the issue tracker at
+    <https://github.com/dagolden/Path-Tiny/issues>. 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.
+
+    <https://github.com/dagolden/Path-Tiny>
+
+      git clone https://github.com/dagolden/Path-Tiny.git
+
 AUTHOR
     David Golden <dagol...@cpan.org>
 
@@ -1054,6 +1081,8 @@
 
     *   Doug Bell <madcity...@gmail.com>
 
+    *   Flavio Poletti <fla...@polettix.it>
+
     *   Gabor Szabo <szab...@cpan.org>
 
     *   Gabriel Andrade <gabi...@gmail.com>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Path-Tiny-0.118/cpanfile new/Path-Tiny-0.120/cpanfile
--- old/Path-Tiny-0.118/cpanfile        2021-02-05 01:10:21.000000000 +0100
+++ new/Path-Tiny-0.120/cpanfile        2021-10-24 18:13:13.000000000 +0200
@@ -1,4 +1,4 @@
-# This file is generated by Dist::Zilla::Plugin::CPANFile v6.017
+# This file is generated by Dist::Zilla::Plugin::CPANFile v6.024
 # Do not edit this file directly. To change prereqs, edit the `dist.ini` file.
 
 requires "Carp" => "0";
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Path-Tiny-0.118/lib/Path/Tiny.pm 
new/Path-Tiny-0.120/lib/Path/Tiny.pm
--- old/Path-Tiny-0.118/lib/Path/Tiny.pm        2021-02-05 01:10:21.000000000 
+0100
+++ new/Path-Tiny-0.120/lib/Path/Tiny.pm        2021-10-24 18:13:13.000000000 
+0200
@@ -5,7 +5,7 @@
 package Path::Tiny;
 # ABSTRACT: File path utility
 
-our $VERSION = '0.118';
+our $VERSION = '0.120';
 
 # Dependencies
 use Config;
@@ -323,6 +323,8 @@
 #pod
 #pod     $temp = Path::Tiny->tempfile( @options );
 #pod     $temp = Path::Tiny->tempdir( @options );
+#pod     $temp = $dirpath->tempfile( @options );
+#pod     $temp = $dirpath->tempdir( @options );
 #pod     $temp = tempfile( @options ); # optional export
 #pod     $temp = tempdir( @options );  # optional export
 #pod
@@ -352,6 +354,17 @@
 #pod Both C<tempfile> and C<tempdir> may be exported on request and used as
 #pod functions instead of as methods.
 #pod
+#pod The methods can be called on an instances representing a
+#pod directory. In this case, the directory is used as the base to create the
+#pod temporary file/directory, setting the C<DIR> option in File::Temp.
+#pod
+#pod     my $target_dir = path('/to/destination');
+#pod     my $tempfile = $target_dir->tempfile('foobarXXXXXX');
+#pod     $tempfile->spew('A lot of data...');  # not atomic
+#pod     $tempfile->rename($target_dir->child('foobar')); # hopefully atomic
+#pod
+#pod In this case, any value set for option C<DIR> is ignored.
+#pod
 #pod B<Note>: for tempfiles, the filehandles from File::Temp are closed and not
 #pod reused.  This is not as secure as using File::Temp handles directly, but 
is
 #pod less prone to deadlocks or access problems on some platforms.  Think of 
what
@@ -372,16 +385,14 @@
 #pod Keeping a reference to, or modifying the cached object may break the
 #pod behavior documented above and is not supported.  Use at your own risk.
 #pod
-#pod Current API available since 0.097.
+#pod Current API available since 0.119.
 #pod
 #pod =cut
 
 sub tempfile {
-    shift if @_ && $_[0] eq 'Path::Tiny'; # called as method
-    my $opts = ( @_ && ref $_[0] eq 'HASH' ) ? shift @_ : {};
-    $opts = _get_args( $opts, qw/realpath/ );
+    my ( $opts, $maybe_template, $args )
+        = _parse_file_temp_args(tempfile => @_);
 
-    my ( $maybe_template, $args ) = _parse_file_temp_args(@_);
     # File::Temp->new demands TEMPLATE
     $args->{TEMPLATE} = $maybe_template->[0] if @$maybe_template;
 
@@ -394,13 +405,9 @@
 }
 
 sub tempdir {
-    shift if @_ && $_[0] eq 'Path::Tiny'; # called as method
-    my $opts = ( @_ && ref $_[0] eq 'HASH' ) ? shift @_ : {};
-    $opts = _get_args( $opts, qw/realpath/ );
-
-    my ( $maybe_template, $args ) = _parse_file_temp_args(@_);
+    my ( $opts, $maybe_template, $args )
+        = _parse_file_temp_args(tempdir => @_);
 
-    # File::Temp->newdir demands leading template
     require File::Temp;
     my $temp = File::Temp->newdir( @$maybe_template, TMPDIR => 1, %$args );
     my $self = $opts->{realpath} ? path($temp)->realpath : 
path($temp)->absolute;
@@ -414,6 +421,18 @@
 
 # normalize the various ways File::Temp does templates
 sub _parse_file_temp_args {
+    my $called_as = shift;
+    if ( @_ && $_[0] eq 'Path::Tiny' ) { shift } # class method
+    elsif ( @_ && eval{$_[0]->isa('Path::Tiny')} ) {
+        my $dir = shift;
+        if (! $dir->is_dir) {
+            $dir->_throw( $called_as, $dir, "is not a directory object" );
+        }
+        push @_, DIR => $dir->stringify; # no overriding
+    }
+    my $opts = ( @_ && ref $_[0] eq 'HASH' ) ? shift @_ : {};
+    $opts = _get_args( $opts, qw/realpath/ );
+
     my $leading_template = ( scalar(@_) % 2 == 1 ? shift(@_) : '' );
     my %args = @_;
     %args = map { uc($_), $args{$_} } keys %args;
@@ -422,7 +441,8 @@
         : $leading_template      ? $leading_template
         :                          ()
     );
-    return ( \@template, \%args );
+
+    return ( $opts, \@template, \%args );
 }
 
 #--------------------------------------------------------------------------#
@@ -2156,7 +2176,7 @@
 
 =head1 VERSION
 
-version 0.118
+version 0.120
 
 =head1 SYNOPSIS
 
@@ -2309,6 +2329,8 @@
 
     $temp = Path::Tiny->tempfile( @options );
     $temp = Path::Tiny->tempdir( @options );
+    $temp = $dirpath->tempfile( @options );
+    $temp = $dirpath->tempdir( @options );
     $temp = tempfile( @options ); # optional export
     $temp = tempdir( @options );  # optional export
 
@@ -2338,6 +2360,17 @@
 Both C<tempfile> and C<tempdir> may be exported on request and used as
 functions instead of as methods.
 
+The methods can be called on an instances representing a
+directory. In this case, the directory is used as the base to create the
+temporary file/directory, setting the C<DIR> option in File::Temp.
+
+    my $target_dir = path('/to/destination');
+    my $tempfile = $target_dir->tempfile('foobarXXXXXX');
+    $tempfile->spew('A lot of data...');  # not atomic
+    $tempfile->rename($target_dir->child('foobar')); # hopefully atomic
+
+In this case, any value set for option C<DIR> is ignored.
+
 B<Note>: for tempfiles, the filehandles from File::Temp are closed and not
 reused.  This is not as secure as using File::Temp handles directly, but is
 less prone to deadlocks or access problems on some platforms.  Think of what
@@ -2358,7 +2391,7 @@
 Keeping a reference to, or modifying the cached object may break the
 behavior documented above and is not supported.  Use at your own risk.
 
-Current API available since 0.097.
+Current API available since 0.119.
 
 =head1 METHODS
 
@@ -3285,13 +3318,32 @@
 
 This module was featured in the L<2013 Perl Advent 
Calendar|http://www.perladvent.org/2013/2013-12-18.html>.
 
+=for :stopwords cpan testmatrix url bugtracker rt cpants kwalitee diff irc 
mailto metadata placeholders metacpan
+
+=head1 SUPPORT
+
+=head2 Bugs / Feature Requests
+
+Please report any bugs or feature requests through the issue tracker
+at L<https://github.com/dagolden/Path-Tiny/issues>.
+You will be notified automatically of any progress on your issue.
+
+=head2 Source Code
+
+This is open source software.  The code repository is available for
+public review and contribution under the terms of the license.
+
+L<https://github.com/dagolden/Path-Tiny>
+
+  git clone https://github.com/dagolden/Path-Tiny.git
+
 =head1 AUTHOR
 
 David Golden <dagol...@cpan.org>
 
 =head1 CONTRIBUTORS
 
-=for stopwords Alex Efros Aristotle Pagaltzis Chris Williams Dan Book Dave 
Rolsky David Steinbrunner Doug Bell Gabor Szabo Gabriel Andrade George Hartzell 
Geraud Continsouzas Goro Fuji Graham Knop Ollis Ian Sillitoe James Hunt John 
Karr Karen Etheridge Mark Ellis Martin H. Sluka Kjeldsen Michael G. Schwern 
Nigel Gregoire Philippe Bruhat (BooK) regina-verbae Roy Ivy III Shlomi Fish 
Smylers Tatsuhiko Miyagawa Toby Inkster Yanick Champoux ????????? - Keedi Kim
+=for stopwords Alex Efros Aristotle Pagaltzis Chris Williams Dan Book Dave 
Rolsky David Steinbrunner Doug Bell Flavio Poletti Gabor Szabo Gabriel Andrade 
George Hartzell Geraud Continsouzas Goro Fuji Graham Knop Ollis Ian Sillitoe 
James Hunt John Karr Karen Etheridge Mark Ellis Martin H. Sluka Kjeldsen 
Michael G. Schwern Nigel Gregoire Philippe Bruhat (BooK) regina-verbae Roy Ivy 
III Shlomi Fish Smylers Tatsuhiko Miyagawa Toby Inkster Yanick Champoux 
????????? - Keedi Kim
 
 =over 4
 
@@ -3325,6 +3377,10 @@
 
 =item *
 
+Flavio Poletti <fla...@polettix.it>
+
+=item *
+
 Gabor Szabo <szab...@cpan.org>
 
 =item *
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Path-Tiny-0.118/t/temp.t new/Path-Tiny-0.120/t/temp.t
--- old/Path-Tiny-0.118/t/temp.t        2021-02-05 01:10:21.000000000 +0100
+++ new/Path-Tiny-0.120/t/temp.t        2021-10-24 18:13:13.000000000 +0200
@@ -77,6 +77,74 @@
     like( $@, qr/has no cached File::Temp object/, "cached_temp error message" 
);
 };
 
+subtest "tempdir w/ leading template as instance method" => sub {
+    my $wd = tempd;
+
+    my $basedir = Path::Tiny->cwd;
+    my $repodir = $basedir->child('whatever');
+    $repodir->remove_tree if $repodir->exists;
+    $repodir->mkpath;
+    my $tempdir = $repodir->tempdir("helloXXXXX");
+    like( $tempdir, qr/hello/, "found template" );
+    ok( scalar($repodir->children) > 0, 'something was created' );
+    my $basename = $tempdir->basename;
+    ok( -d $repodir->child($basename), "right directory exists" );
+};
+
+subtest "tempdir w/ leading template as instance method" => sub {
+    my $wd = tempd;
+
+    my $basedir = Path::Tiny->cwd;
+    my $repodir = $basedir->child('whatever');
+    $repodir->remove_tree if $repodir->exists;
+    $repodir->mkpath;
+    my $tempdir = $repodir->tempdir("helloXXXXX");
+    like( $tempdir, qr/hello/, "found template" );
+    ok( scalar($repodir->children) > 0, 'something was created' );
+    my $basename = $tempdir->basename;
+    ok( -d $repodir->child($basename), "right directory exists" );
+};
+
+subtest "tempfile w/out leading template as instance method" => sub {
+    my $wd = tempd;
+
+    my $basedir = Path::Tiny->cwd;
+    my $repodir = $basedir->child('whatever');
+    $repodir->remove_tree if $repodir->exists;
+    $repodir->mkpath;
+    my $tempfile = $repodir->tempfile( TEMPLATE => "helloXXXXX" );
+    like( $tempfile, qr/hello/, "found template" );
+    ok( scalar($repodir->children) > 0, 'something was created' );
+    my $basename = $tempfile->basename;
+    ok( -e $repodir->child($basename), "right file exists" );
+};
+
+subtest "tempfile w/out leading template as instance method" => sub {
+    my $wd = tempd;
+
+    my $basedir = Path::Tiny->cwd;
+    my $repodir = $basedir->child('whatever');
+    $repodir->remove_tree if $repodir->exists;
+    $repodir->mkpath;
+    my $tempfile = $repodir->tempfile( TEMPLATE => "helloXXXXX");
+    like( $tempfile, qr/hello/, "found template" );
+    ok( scalar($repodir->children) > 0, 'something was created' );
+    my $basename = $tempfile->basename;
+    ok( -e $repodir->child($basename), "right file exists" );
+};
+
+subtest "tempfile, instance method, overridden DIR" => sub {
+    my $wd = tempd;
+
+    my $basedir = Path::Tiny->cwd;
+    my $repodir = $basedir->child('whatever');
+    $repodir->remove_tree if $repodir->exists;
+    $repodir->mkpath;
+    my $bd = $basedir->stringify;
+    my $tempfile = $repodir->tempfile("helloXXXXX", DIR => $bd);
+    ok( $tempfile->parent ne $bd ), "DIR is overridden";
+};
+
 done_testing;
 #
 # This file is part of Path-Tiny
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Path-Tiny-0.118/xt/author/pod-spell.t 
new/Path-Tiny-0.120/xt/author/pod-spell.t
--- old/Path-Tiny-0.118/xt/author/pod-spell.t   2021-02-05 01:10:21.000000000 
+0100
+++ new/Path-Tiny-0.120/xt/author/pod-spell.t   2021-10-24 18:13:13.000000000 
+0200
@@ -31,6 +31,7 @@
 Ellis
 Etheridge
 Fish
+Flavio
 Fuji
 Gabor
 Gabriel
@@ -65,6 +66,7 @@
 Pagaltzis
 Path
 Philippe
+Poletti
 Rolsky
 Roy
 SHA
@@ -94,6 +96,7 @@
 ether
 fany
 fatalize
+flavio
 gabiruh
 geraud
 gfuji

Reply via email to