./filesystems/p5-Path-Tiny, Perl5 file path utility

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 0.144nb1, Package name: p5-Path-Tiny-0.144nb1, Maintainer: pkgsrc-users

This module attempts to provide a small, fast utility for working with
file paths. It is friendlier to use than File::Spec and provides easy
access to functions from several other core file handling modules.

It doesn't attempt to be as full-featured as IO::All or Path::Class,
nor does it try to work for anything except Unix-like and Win32 platforms.
Even then, it might break if you try something particularly obscure or
tortuous. (Quick! What does this mean: ///../../..//./././a//b/.././c/././?
And how does it differ on Win32?)

All paths are forced to have Unix-style forward slashes. Stringifying the
object gives you back the path (after some clean up).

File input/output methods flock handles before reading or writing, as
appropriate.

The *_utf8 methods (slurp_utf8, lines_utf8, etc.) operate in raw mode
without CRLF translation. Installing Unicode::UTF8 0.58 or later will speed
up several of them and is highly recommended.

It uses autodie internally, so most failures will be thrown as exceptions.


Required to run:
[lang/perl5]

Required to build:
[pkgtools/cwrappers]

Master sites: (Expand)

Filesize: 103.252 KB

Version history: (Expand)


CVS history: (Expand)


   2023-07-06 11:43:03 by Thomas Klausner | Files touched by this commit (2483)
Log message:
*: recursive bump for perl 5.38
   2023-01-08 01:39:07 by Wen Heping | Files touched by this commit (2) | Package updated
Log message:
Update to 0.144

Upstream changes:
0.144     2022-12-01 11:36:19-05:00 America/New_York

    - No changes from 0.143-TRIAL

0.143     2022-11-26 17:46:59-05:00 America/New_York (TRIAL RELEASE)

    [Testing]

    - Fixed tilde expansion tests where ~root expands to '/'.

0.142     2022-11-09 07:06:36-05:00 America/New_York

    No changes from 0.141; all changes since last stable release are summarized \ 
below.

    [*** DEPRECATIONS ***]

    - Tilde expansion is deprecated due to inconsistent and bug-prone behavior.

    [Bug fixes]

    - Prevent expansion of tildes that are not the very first character (e.g.
      "./~foo"). Prevent unintentional tilde expansion during internal path
      processing. Escape non-tilde glob characters before tilde expansion.

    - Fixed spew/edit to a long filename approaching the filesystem length
      limit.

    - Internal calls to `print` are checked for possible errors.

    - Internal read calls are checked for errors.

    [Changes]

    - Path stringification now adds "./" in front of paths starting \ 
with literal tilde
      so they will round-trip.  FREEZE updated to use this stringification rule \ 
as well.

    - `move` now uses File::Copy::move internally instead of the built-in `rename`,
      allowing it to work across filesystems.  It also returns an object for the
      moved location, allowing chaining.

    - edit_lines_raw now uses a buffered raw I/O layer. edit_lines_utf8 now
      prefers PerlIO::utf8_strict, if available.

    - lines_utf8 now consistently uses a buffered I/O layer.

    - open*_utf8 now prefers PerlIO::utf8_strict, if available.

    - slurp_utf8 now consistently uses an unbuffered I/O layer.

    [Documented]

    - Changed all raw/UTF-8 layer descriptions in method documentation to match
      the code.

    - Fixed SYNOPSIS syntax.

    - Documented how to disable TMPDIR when making temp files/dirs.

    [Testing]

    - Add additional tilde stringification testing.

    - Fixed tilde expansion tests on Windows.

    - Skip a problematic test case on cygwin.

0.141     2022-11-07 12:47:25-05:00 America/New_York (TRIAL RELEASE)

    [Testing]

    - Add additional tilde expansion tests

0.139     2022-11-03 15:44:46-04:00 America/New_York (TRIAL RELEASE)

    [Testing]

    - Skip a problematic test case on cygwin

0.137     2022-11-02 09:50:26-04:00 America/New_York (TRIAL RELEASE)

    [Testing]

    - Add additional tilde stringification testing.

0.135     2022-11-01 22:27:21-04:00 America/New_York (TRIAL RELEASE)

    [Testing]

    - Fixed additional issues with tilde expansion tests on Windows for testers
      with lowercase drive letters in their userprofile.

0.133     2022-10-31 23:55:01-04:00 America/New_York (TRIAL RELEASE)

    [Bug fixes]

    - Path stringification now adds "./" in front of paths starting \ 
with literal tilde
      so they will round-trip.  FREEZE updated to use this stringification rule \ 
as well.

    [Changes]

    - `move` now uses File::Copy::move internally instead of the built-in `rename`,
      allowing it to work across filesystems.  It also returns an object for the
      moved location, allowing chaining.

    [Testing]

    - Fixed tilde expansion tests on Windows.

0.131     2022-10-31 10:42:46-04:00 America/New_York (TRIAL RELEASE)

    [*** DEPRECATIONS ***]

    - Tilde expansion is deprecated due to inconsistent and bug-prone behavior.

    [Bug fixes]

    - Fixed spew/edit to a long filename approaching the filesystem length
      limit.

    - Internal calls to `print` are checked for possible errors.

    - Internal read calls are checked for errors.

    - Prevent expansion of tildes that are not the very first character (e.g.
      "./~foo"). Prevent unintentional tilde expansion during internal path
      processing. Escape non-tilde glob characters before tilde expansion.

    [Changes]

    - edit_lines_raw now uses a buffered raw I/O layer. edit_lines_utf8 now
      prefers PerlIO::utf8_strict, if available.

    - lines_utf8 now consistently uses a buffered I/O layer.

    - open*_utf8 now prefers PerlIO::utf8_strict, if available.

    - slurp_utf8 now consistently uses an unbuffered I/O layer.

    [Documented]

    - Changed all raw/UTF-8 layer descriptions in method documentation to match
      the code.

    - Fixed SYNOPSIS syntax.

    - Documented how to disable TMPDIR when making temp files/dirs.

0.130     2022-10-20 07:08:01-04:00 America/New_York

    [Bug fixes]

    - mkdir no longer fails when applied to an existing directory.

0.128     2022-10-19 15:32:39-04:00 America/New_York

    - No changes from 0.127-TRIAL.

0.127     2022-10-05 17:17:36-04:00 America/New_York (TRIAL RELEASE)

    [Testing]

    - Fixed has_same_bytes test for Windows.

0.125     2022-09-30 17:08:36-04:00 America/New_York (TRIAL RELEASE)

    [*** DEPRECATIONS ***]

    - The 'mkpath' method is deprecated in favor of 'mkdir'.

    [Additions]

    - Added 'mkdir' to replace 'mkpath', but returning the path object for chaining.

    - Added `has_same_bytes` to efficiently compare the contents of two files.

    [Documentation]

    - Edited SYNOPSIS

0.124     2022-09-02 11:06:12-04:00 America/New_York

    - No changes from 0.123-TRIAL.

0.123     2022-08-29 11:06:49-04:00 America/New_York (TRIAL RELEASE)

    [Documentation]

    - Added link to `touchpath` in the `mkpath` docs.

    - Fixed example in `tempfile` docs.
   2022-08-05 14:57:26 by Adrian Steinmann | Files touched by this commit (2) | Package updated
Log message:
filesystems/p5-Path-Tiny update to 0.122
  From upstream 0.122/0.121-TRIAL:
    - Adds `size` and `size_human` methods.  The latter gives `ls -lh` style
      output, with options to choose base2 or base10 forms.
  From upstream 0.120/0.119-TRIAL:
    - 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).
   2022-06-28 13:38:00 by Thomas Klausner | Files touched by this commit (3952)
Log message:
*: recursive bump for perl 5.36
   2021-10-26 12:25:31 by Nia Alarie | Files touched by this commit (47)
Log message:
filesystems: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes
   2021-10-07 15:51:05 by Nia Alarie | Files touched by this commit (47)
Log message:
filesystems: Remove SHA1 hashes for distfiles
   2021-05-24 21:56:06 by Thomas Klausner | Files touched by this commit (3575)
Log message:
*: recursive bump for perl 5.34
   2021-04-26 16:57:26 by Thomas Klausner | Files touched by this commit (2) | Package updated
Log message:
p5-Path-Tiny: update to 0.118.

0.118     2021-02-04 19:09:58-05:00 America/New_York

    - No changes from 0.117-TRIAL.

0.117     2021-01-31 21:22:29-05:00 America/New_York (TRIAL RELEASE)

    [Tests]

    - Skip symlink tests on Windows by actually testing symlinks, as Perl
      5.33.5 adds notional support but it's not possible without elevated
      privileges.

0.116     2021-01-22 10:32:22-05:00 America/New_York

    - No changes from 0.115-TRIAL.

0.115     2021-01-19 12:01:33-05:00 America/New_York (TRIAL RELEASE)

    [Tests]

    - Fixes tests on MSYS without symlinks enabled.