Commit Graph

53 Commits

Author SHA1 Message Date
Paul Howarth
c0d07ef99d Update to 0.144
- New upstream release 0.144
  - Fixed tilde expansion tests where ~root expands to '/'
2022-12-02 11:37:32 +00:00
Paul Howarth
f9dde8dc7b Update to 0.142
- New upstream release 0.142
  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
2022-11-09 14:11:07 +00:00
Paul Howarth
f22502c8e4 Update to 0.130
- New upstream release 0.130
  - The 'mkdir' method no longer fails when applied to an existing directory
2022-10-20 17:53:17 +01:00
Paul Howarth
7ca17f45d2 Update to 0.128
- New upstream release 0.128
  - Added 'mkdir' to replace 'mkpath', but returning the path object for
    chaining
  - The 'mkpath' method is deprecated in favor of 'mkdir'
  - Added 'has_same_bytes' to efficiently compare the contents of two files
  - Edited SYNOPSIS in the POD
2022-10-20 09:29:54 +01:00
Paul Howarth
971cc4bf32 Update to 0.124
- New upstream release 0.124
  - Added link to 'touchpath' in the 'mkpath' docs
  - Fixed example in `tempfile' docs
- Use SPDX-format license tag
2022-09-02 18:34:40 +01:00
Paul Howarth
b663d2db46 Update to 0.122
- New upstream release 0.122
  - Adds 'size' and 'size_human' methods; the latter gives 'ls -lh' style
    output, with options to choose base2 or base10 forms
2022-01-17 09:55:46 +00:00
Paul Howarth
476791589f Update to 0.120
- New upstream release 0.120
  - 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)
2021-10-25 09:50:25 +01:00
Paul Howarth
9700bdba13 Update to 0.118
- New upstream release 0.118
  - 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
2021-02-05 09:43:40 +00:00
Paul Howarth
03ebf4aba0 Update to 0.116
- New upstream release 0.116
  - Fix tests on MSYS without symlinks enabled
2021-01-23 16:35:52 +00:00
Paul Howarth
0669662730 Update to 0.114
- New upstream release 0.114
  - Use \z instead of $ in regular expressions
2020-04-26 19:09:54 +01:00
Paul Howarth
0a9c60c0de Update to 0.112
- New upstream release 0.112
  - Another test fix on Windows, possibly due to a behavior change in
    Cwd::getdcwd
2020-01-29 12:31:16 +00:00
Paul Howarth
306975ea5b Update to 0.110
- New upstream release 0.110
  - Fixes tests on Windows, particularly with newer File::Spec
2020-01-14 10:47:22 +00:00
Paul Howarth
9de8a3be47 Update to 0.108
- New upstream release 0.108
  - Fixed a bug where failure to load optional modules would trigger an
    external $SIG{__DIE__} handler
2018-08-01 16:27:02 +01:00
Paul Howarth
09664620a3 Update to 0.106
- New upstream release 0.106
  - The PERL_PATH_TINY_NO_FLOCK environment variable has been added to allow
    users to disable file locking (and any associated warnings)
  - Detection of unsupported 'flock' is no longer BSD-specific; this allows
    detecting and warning, for example, with the Luster filesystem on Linux
  - Improve reliability and diagnostics of tests run via 'do'
2018-07-16 12:03:03 +01:00
Paul Howarth
82be5f2e5f Update to 0.104
- New upstream release 0.104
  - The 'absolute' method now always returns an absolute path, even if a user
    provided a relative path for the base path; the old, odd behavior was
    documented, but people often don't read docs so the new behavior avoids
    surprises
  - Added 'cached_temp' method
2017-02-18 16:40:35 +00:00
Paul Howarth
96f6b40b79 Update to 0.100
- New upstream release 0.100
  - Fixed tests for eventual removal of '.' from @INC in Perl
  - Fixed filehandle mode doc typo
  - Fixed doc typo in relative() that mentioned rel2abs instead of abs2rel
2017-01-16 14:08:07 +00:00
Paul Howarth
d8046b42af Update to 0.098
- New upstream release 0.098
  - Added 'realpath' option for 'tempfile' and 'tempdir' for situations where
    an absolute temporary path just isn't enough
2016-10-10 13:36:24 +01:00
Paul Howarth
8bb25b7dce Update to 0.096
- New upstream release 0.096
  - Improved method for hiding some modules during tests
- BR: perl-generators unconditionally
2016-07-03 12:13:54 +01:00
Paul Howarth
4cdc86024f Update to 0.094
- New upstream release 0.094
  - Path::Tiny will prefer PerlIO::utf8_strict over encoding(UTF-8) if
    available and Unicode::UTF8 is not installed
  - The 'touch' method can now set the current time on files that aren't owned,
    as long as they are writeable
  - Improved consistency of symlink support inspection; now always looks at
    $Config{d_symlink}
  - Skips impossible test on 'msys' platform.
- BR: perl-generators where possible
- Drop redundant Group: tag
2016-05-23 20:57:05 +01:00
Paul Howarth
4a9c2c9608 Update to 0.090
- New upstream release 0.090
  - Fix spew_utf8 to allow array references as input
2016-05-03 16:01:50 +01:00
Paul Howarth
0c96b35e29 Update to 0.088
- New upstream release 0.088
  - Fixed bugs in relative symlink resolution for realpath, spew and edit_lines
  - Symlink resolution will detect circular loops and throw an error
2016-04-18 12:07:20 +01:00
Paul Howarth
5e259b1a4f Update to 0.086
- New upstream release 0.086
  - Improved documentation of copy and move
- Simplify find command using -delete
2016-04-04 10:52:26 +01:00
Paul Howarth
4536339a68 Update to 0.084
- New upstream release 0.084
  - Fixed relative() for the case with regex metacharacters in the path
2016-03-04 16:01:45 +00:00
Paul Howarth
c6da6dc260 Update to 0.082
- New upstream release 0.082
  - The relative() method no longer uses File::Spec's buggy rel2abs method;
    the new Path::Tiny algorithm should be comparable and passes File::Spec
    rel2abs test cases, except that it correctly accounts for symlinks
  - Added 'edit' and 'edit_lines' plus _utf8 and _raw variants; this is
    similar to perl's -i flag (though without backups)
  - Fixed lines_utf8() with chomping for repeated empty lines
  - Fixed lines_utf8+chomp and relative() bugs on Windows
  - Documented that subclassing is not supported
2016-03-02 10:37:06 +00:00
Paul Howarth
bebab80e22 Update to 0.075
- New upstream release 0.075
  - Tilde expansion on Windows was resulting in backslashes; now they are
    correctly normalized to forward slashes
  - Typos fixed
  - Fixed spewing to a symlink that crosses a filesystem boundary
  - Add Test::MockRandom to META as a recommended test prerequisite
2015-11-16 16:39:32 +00:00
Paul Howarth
1a4fa64436 Update to 0.072
- New upstream release 0.072
  - Fixed incorrect error argument for File::Path functions (mkpath and
    remove_tree)
2015-07-21 11:32:32 +01:00
Paul Howarth
8ae8b81207 Update to 0.070
- New upstream release 0.070
  - The 'copy' method now returns the object for the copied file
  - The 'visit' method only dereferences the callback return value for scalar
    refs, avoiding some common bugs
2015-06-29 11:15:40 +01:00
Paul Howarth
2d698d81bb Update to 0.068
- New upstream release 0.068
  - Added exclusive locking option to filehandle opens; spew now exclusively
    locks tempfile used for atomic writes
2015-03-24 09:44:36 +00:00
Paul Howarth
dee36f85d1 Update to 0.065
- New upstream release 0.065
  - Added 'assert' method
  - Added 'visit' method
  - Added support for a negative count for 'lines' to get the last lines of a
    file
  - Fixed tilde expansion if path has spaces
  - Make realpath non-fatal if the parent path exists and only the final path
    component does not (was fatal on Windows and some Unixes)
  - Removed rendundant locking on tempfile use for spewing
  - Work around File::Temp bugs on older ActiveState Windows Perls
    https://bugs.activestate.com/show_bug.cgi?id=104767
  - Fixed SYNOPSIS example
2015-03-06 12:31:03 +00:00
Paul Howarth
c3ea76f4a6 Update to 0.061
- New upstream release 0.061
  - Fixed append_utf8 and append_raw with 'truncate' option
2014-11-14 12:09:41 +00:00
Paul Howarth
481f725d8c Update to 0.060
- New upstream release 0.060
  - Added 'truncate' option to append for in-place replacement of file contents
2014-11-06 10:41:12 +00:00
Paul Howarth
1c318234a3 Update to 0.059
- New upstream release 0.059
  - Fixed precedence bug in the check for Unicode::UTF8
2014-10-15 09:19:39 +01:00
Paul Howarth
1d73af95df Update to 0.058
- New upstream release 0.058
  - Added a 'sibling' method as a more efficient form of calling
    $path->parent->child(...).
  - Documentation for every method annotated with the version number of the
    last API change
2014-09-25 13:49:41 +01:00
Paul Howarth
360140b9fa Update to 0.057
- New upstream release 0.057
  - On AIX, reads that default to locking would fail without write permissions,
    because locking needs write permissions; the fix is only to lock reads if
    write permissions exist, otherwise locking is skipped
2014-09-23 16:03:51 +01:00
Paul Howarth
a0f20952e5 Update to 0.056
- New upstream release 0.056
  - Fixed problem throwing errors from 'remove'
  - The 'digest' method now takes a 'chunk_size' option to avoid slurping files
    entirely into memory
  - The 'dirname' method is deprecated due to exposing File::Spec
    inconsistencies
- Use %license
2014-08-14 16:54:03 +01:00
Paul Howarth
5e481b526a Update to 0.055
- New upstream release 0.055
  - tempfile/tempdir won't warn if used as functions without arguments
2014-07-01 15:27:52 +01:00
Paul Howarth
4bce65e833 Update to 0.054
- New upstream release 0.054
  - The 'is_file' method now does -e && ! -d and not -f because -f is often
    more restrictive than people intend or expect
  - Added 'chmod' method with symbolic chmod support ("a=r,u+rx")
  - The 'basename' method now takes a list of suffixes to remove before
    returning the name
  - Added FREEZE/THAW/TO_JSON serialization helpers
  - When constructing a Path::Tiny object from another, the original is
    returned unless it's a temp dir/file, which significantly speeds up calling
    path($path) if $path is already a Path::Tiny object
  - Constructing any path - e.g. with child() - with undef or zero-length
    parts throws an error instead of constructing an invalid path
2014-05-06 14:23:18 +01:00
Paul Howarth
3487eeae74 Update to 0.052
- New upstream release 0.052
  - Backslash-to-slash conversion now only happens on Windows (since backslash
    is legal on Unix, we must allow it)
2014-01-15 12:56:07 +00:00
Paul Howarth
9ac1162e1a Update to 0.051
- New upstream release 0.051
  - Recursive iteration won't throw an exception if a directory is removed or
    unreadable during iteration
2013-12-21 16:48:55 +00:00
Paul Howarth
b00bff754c Update to 0.049
- New upstream release 0.049
  - Added 'subsumes' method
  - The 'chomp' option for 'lines' will remove any end-of-line sequences fully
    instead of just chomping the last character
  - Fixed locking test on AIX
  - Revised locking tests for portability again: locks are now tested from a
    separate process
  - The 'flock' package will no longer indexed by PAUSE
  - Hides warnings and fixes possible fatal errors from pure-perl Cwd,
    particularly on MSWin32
  - Generates filename for atomic writes independent of thread-ID, which fixes
    crashing bug on Win32 when fork() is called
2013-12-12 12:11:17 +00:00
Paul Howarth
88fced6cbb Update to 0.044
- New upstream release 0.044
  - Fixed child path construction against the root path
  - Fixed path construction when a relative volume is provided as the first
    argument on Windows; e.g. path("C:", "lib") must be like path("C:lib"),
    not path("C:/lib")
  - On AIX, shared locking is replaced by exclusive locking on a R/W
    filehandle, as locking read handles is not supported
2013-10-18 15:51:55 +01:00
Paul Howarth
83565982ec Update to 0.043
- New upstream release 0.043
  - Calling 'absolute' on Windows will add the volume if it is missing (e.g.
    "/foo" will become "C:/foo"); this matches the behavior of
    File::Spec->rel2abs
  - Fixed t/00-report-prereqs.t for use with older versions of
    CPAN::Meta::Requirements
2013-10-14 12:39:52 +01:00
Paul Howarth
b895f8d3f1 Update to 0.042
- New upstream release 0.042
  - When 'realpath' can't be resolved (because intermediate directories don't
    exist), the exception now explains the error clearly instead of complaining
    about path() needing a defined, positive-length argument
  - On Windows, fixed resolution of relative paths with a volume, e.g. "C:foo"
    is now correctly translated into getdcwd on "C:" plus "foo"
2013-10-13 17:09:53 +01:00
Paul Howarth
6f37b270fb Update to 0.041
- New upstream release 0.041
  - Remove duplicate test dependency on File::Spec that triggers a CPAN.pm bug
2013-10-11 15:00:37 +01:00
Paul Howarth
201e3e3bcb Update to 0.040
- New upstream release 0.040
  - The 'filehandle' method now offers an option to return locked handles
    based on the file mode
  - The 'filehandle' method now respects default encoding set by the caller's
    open pragma
2013-10-09 15:54:53 +01:00
Paul Howarth
803eaaa5d8 Update to 0.038
- New upstream release 0.038
  - Added 'is_rootdir' method to simplify testing if a path is the root
    directory
2013-10-02 11:41:18 +01:00
Paul Howarth
d7330cfc71 Update to 0.037
- New upstream release 0.037
  - No longer lists 'threads' as a prerequisite; if you have a threaded perl,
    you have it and if you've not, Path::Tiny doesn't care
  - Fixed for v5.8
2013-09-26 20:16:38 +01:00
Paul Howarth
f7b7c3d0d4 Update to 0.035
- New upstream release 0.035
  - Fixed flock warning on BSD that was broken with the autodie removal; now
    also applies to all BSD flavors
2013-09-24 14:25:24 +01:00
Paul Howarth
98b5658b09 Update to 0.034
- New upstream release 0.034
  - Exceptions are now Path::Tiny::Error objects, not autodie exceptions; this
    removes the last dependency on autodie, which allows us to support Perls as
    far back as v5.8.1
  - BSD/NFS flock fix was not backwards compatible before v5.14; this fixes it
    harder
  - Lowered ExtUtils::MakeMaker configure_requires version to 6.17
2013-09-24 12:26:06 +01:00
Paul Howarth
377cfde8de Update to 0.033
- New upstream release 0.033
  - Perl on BSD may not support locking on an NFS filesystem: if this is
    detected, Path::Tiny warns and continues in an unsafe mode (the 'flock'
    warning category may be fatalized to die instead)
  - Added 'iterator' example showing defaults
2013-09-12 16:18:49 +01:00