| 1 |
Revision history for Perl extension Path::Class. |
| 2 |
|
| 3 |
0.37 Sat Aug 13 21:33:23 CDT 2016 |
| 4 |
|
| 5 |
- Doc update for contains/subsumes [1916528] |
| 6 |
- Fix "contains" when $self is a relative path - #43 [1c01e86] |
| 7 |
- Handle case where $other evaluates false [70e4b6b] |
| 8 |
- Add additional test cases for contains and subsumes [434f244] |
| 9 |
- Test with Perl 5.24 [a4d2d73] |
| 10 |
|
| 11 |
0.36 Tue Feb 16 22:16:21 CST 2016 |
| 12 |
|
| 13 |
- 117bd64 - Use croak instead of die; use eval syntax instead of universal::isa (as perlcritic wishes) <viviparous> |
| 14 |
- 4b620b6 - Load File::Copy and Perl::OSType only when used (copy_to, move_to) <Olivier Mengué> |
| 15 |
- 55ecb58 - always use canonpath on arguments to splitdir <Andrew Gregory> |
| 16 |
- 25c12f7 - Fix 'Operation "eq": no method found' error (RT #77259), whose underlying cause |
| 17 |
isn't really understood. <mzrinsky> |
| 18 |
- 935eeed - Add some fixes & tests for contains() with updir stuff (github #43) <Ken Williams> |
| 19 |
- 927fa74 - Fix Carp::Croak to Carp::croak <Ken Williams> |
| 20 |
- 2d615ca 34da6d3 5fcad02 1b7be68 a622acf - Fixed and improved Travis testing configuration <Dave Rolsky> |
| 21 |
- 2a74c40 - Fix Pod typos <Сергей Романов> |
| 22 |
- 28ca95a - Check all print calls in spew and explicitly call (and check) close <Dave Rolsky> |
| 23 |
|
| 24 |
0.35 Sun Sep 14 21:29:07 CDT 2014 |
| 25 |
|
| 26 |
- fce4b8e - Fixed a t/03-filesystem.t test error on Windows <Andrew Gregory> |
| 27 |
|
| 28 |
0.34 Thu Aug 28 22:27:03 CDT 2014 |
| 29 |
|
| 30 |
- df23e17 - Add a new spew_lines() method <William Stevenson> |
| 31 |
- 3ffef39 - Don't convert file into directory in subsumes() <Dagfinn Ilmari Mannsåker> |
| 32 |
- 9a01a71 - Updated POD for copy_to and move_to methods <Robert Rothenberg> |
| 33 |
- 210a7ef - Stringify destination for copy_to method <Robert Rothenberg> |
| 34 |
- 9f83723 - Stringify destination for move_to method <Robert Rothenberg> |
| 35 |
- 5e2cb26, d5c7e62 - Add Continuous Integration with Travis CI <Ken Williams> |
| 36 |
- d372be1 - Change bugtracker to github's <Ken Williams> |
| 37 |
|
| 38 |
0.33 Wed Dec 11 21:30:35 CST 2013 |
| 39 |
|
| 40 |
- New copy_to() and move_to() methods. [Robert Rothenberg & Ken Williams] |
| 41 |
- As advised in the utime() docs, pass undef as the time for touch(). |
| 42 |
- Do a better job cleaning up temp files in the tests. |
| 43 |
- Optimization: use parent.pm instead of base.pm. [Olivier Mengué] |
| 44 |
- Changed the docs to show that file() and dir() are exported by |
| 45 |
default. |
| 46 |
- Fixed spelling error in POD. [Salvatore Bonaccorso] |
| 47 |
|
| 48 |
0.32 Mon Mar 18 20:53:00 CDT 2013 |
| 49 |
|
| 50 |
- Updated dependency on File::Spec to 3.26, fixing RT #83143. |
| 51 |
- Fixed bug with leading empty string in dir() - became unintentional |
| 52 |
UNC path on Cygwin. [David Golden and [email protected]] |
| 53 |
- Fixed "Unterminated C<...> sequence" in Pod. [Olaf Alders] |
| 54 |
|
| 55 |
0.31 Tue Feb 5 11:51:59 CST 2013 |
| 56 |
|
| 57 |
- Optimization: stringify variables passed to canonpath [David Golden] |
| 58 |
- Optimization: Use internal guts when constructing Dirs from |
| 59 |
Dirs, instead of concatenating and splitting them again with |
| 60 |
File::Spec. [David Golden] |
| 61 |
- Fix grammar error in docs. [Karen Etheridge] |
| 62 |
- Implement a 'split' parameter for the slurp() method [suggested by Yanick Champoux] |
| 63 |
- In docs, replace unicode MINUS SIGN with ascii HYPHEN-MINUS [Randy Stauner] |
| 64 |
|
| 65 |
0.29 Mon Dec 17 23:55:07 CST 2012 |
| 66 |
|
| 67 |
- Add components() method, which returns directory names (and |
| 68 |
filename, if this is a File object) as a list. |
| 69 |
- Fix a test failure on non-Unix platforms, the 07-recurseprune.t |
| 70 |
test was written in a Unix-specific way. |
| 71 |
|
| 72 |
0.28 Sat Dec 15 21:40:17 CST 2012 |
| 73 |
|
| 74 |
- Fix test failures when run as root - they were relying on |
| 75 |
permissions failures, but permissions never fail as root. [Spotted |
| 76 |
by AAR and Chris Williams] |
| 77 |
|
| 78 |
- Add links in docs to the other modules we rely on & talk about in |
| 79 |
the docs. Makes for easier viewing through search.cpan.org / |
| 80 |
MetaCPAN. [David Precious] |
| 81 |
|
| 82 |
- Fixed some misleading variable names in docs. [RT#81795] [Pau Amma] |
| 83 |
|
| 84 |
0.27 Sat Dec 8 19:24:15 CST 2012 |
| 85 |
|
| 86 |
- Added pruning support in dir->recurse(). If recurse callback |
| 87 |
returns $item->PRUNE, no children of this item will be |
| 88 |
analyzed. [Marcin Kasperski] |
| 89 |
|
| 90 |
- Documented 'basename' method for directories. [Fabrice Gabolde] |
| 91 |
|
| 92 |
- Added traverse_if() function, which allows one to filter children |
| 93 |
before processing them. [Marcin Kasperski] |
| 94 |
|
| 95 |
- Added tempdir() function. [cho45] |
| 96 |
|
| 97 |
0.26 Thu Jun 14 21:52:38 CDT 2012 |
| 98 |
|
| 99 |
- resolve() now includes the name of the non-existent file in the error |
| 100 |
message. [Karen Etheridge] |
| 101 |
|
| 102 |
- new shortcut opena(), to open a file for appending. [Karen Etheridge] |
| 103 |
|
| 104 |
- new spew() method that does the inverse of the slurp() method. [Aran Deltac] |
| 105 |
|
| 106 |
- Fixed a typo in a class name in the docs for Path::Class::Entity. [Toby Inkster] |
| 107 |
|
| 108 |
0.25 Wed Feb 15 20:55:30 CST 2012 |
| 109 |
|
| 110 |
- resolve() now croak()s instead of die()s on non-existent file. [Danijel Tašov] |
| 111 |
|
| 112 |
- Added a traverse() method for directories, based on the fmap_cont() |
| 113 |
method of Forest::Tree::Pure. It's an alternative to ->recurse, |
| 114 |
which allows for more control over how the recursion |
| 115 |
happens. [Jesse Luehrs] |
| 116 |
|
| 117 |
- Fixed a grammar error in the docs. [Shlomi Fish] |
| 118 |
|
| 119 |
- Moved from Google Code (SVN) to GitHub (Git). |
| 120 |
|
| 121 |
0.24 Sat May 28 20:52:39 CDT 2011 |
| 122 |
|
| 123 |
- Added a tempfile() method for Dir objects, which provides an |
| 124 |
interface to File::Temp. [RT#60485] |
| 125 |
|
| 126 |
- Fixed a non-helpful fatal error message when calling resolve() on a |
| 127 |
path that doesn't exist. Now dies with the proper "No such file or |
| 128 |
directory" message & exit status. [GRAF] |
| 129 |
|
| 130 |
0.23 - Sun Dec 26 13:35:53 CST 2010 |
| 131 |
|
| 132 |
- Fixed a bunch of problems with the distribution (e.g. in META.yml) |
| 133 |
that I introduced in the switch to Dist::Zilla. No code changes |
| 134 |
from 0.22. |
| 135 |
|
| 136 |
0.22 - Sat Dec 25 22:59:20 CST 2010 |
| 137 |
|
| 138 |
- Added a basename() method for directory objects. [CLKAO, jloverso, |
| 139 |
THEPLER, ZUMMO] |
| 140 |
|
| 141 |
0.21 - Tue Aug 17 19:13:13 CDT 2010 |
| 142 |
|
| 143 |
- Don't test the 'iomode' option under 5.6, because layers aren't |
| 144 |
supported yet. |
| 145 |
|
| 146 |
- Fixes to spelling errors in the docmuentatino. [Ansgar Burchardt |
| 147 |
and Debian patchers] |
| 148 |
|
| 149 |
0.19 - Sun Jun 6 20:50:27 CDT 2010 |
| 150 |
|
| 151 |
- slurp() now accepts an 'iomode' option to control how the file is |
| 152 |
opened. [Graham Barr] |
| 153 |
|
| 154 |
- In the openr() and openw() file methods, we now croak() instead of |
| 155 |
die() so that the error messages are more useful. [Ian Sillitoe] |
| 156 |
|
| 157 |
- Allow subclassing, by adding dir_class() and file_class() static |
| 158 |
methods, allowing them to be overridden. [Matt Trout & John LoVerso |
| 159 |
& Michael Schwern] |
| 160 |
|
| 161 |
- Fixed a testing failure that could occur whenever testing in a |
| 162 |
directory path that contains symlinks (e.g. /tmp on Mac OS X). |
| 163 |
|
| 164 |
- Added a 'no_hidden' parameter for children() [EDENC <[email protected]>] |
| 165 |
|
| 166 |
- Fixed the heading for the is_relative() POD section. [CUB <[email protected]>] |
| 167 |
|
| 168 |
0.18 - Sun Dec 20 10:11:02 CST 2009 |
| 169 |
|
| 170 |
- Similar to the next() bug for files/directories named "0" or "0.0" |
| 171 |
in the previous release, the children() and recurse() methods have |
| 172 |
now been fixed in the same way. [spotted by ARTHAS, MSISK] |
| 173 |
|
| 174 |
0.17 - Sun Jun 14 21:42:16 2009 |
| 175 |
|
| 176 |
- dir(undef) now returns undef rather than the rootdir, because undef |
| 177 |
was probably a mistake by the caller, and the rootdir is too scary |
| 178 |
a default. [Suggested by John Goulah] |
| 179 |
|
| 180 |
- Temporary files during testing are now created in the system temp |
| 181 |
directory, rather than somewhere in t/ . See RT #31382. [Suggested |
| 182 |
by Alex Page] |
| 183 |
|
| 184 |
- Added is_relative() as the obvious complement to the existing |
| 185 |
is_absolute() method. |
| 186 |
|
| 187 |
- Added a resolve() method to clean up paths much more thoroughly |
| 188 |
than cleanup(), e.g. resolving symlinks, collapsing foo/../bar |
| 189 |
sections, etc. [Suggested by David Garamond] |
| 190 |
|
| 191 |
- Fixed a problem in which a file/directory called "0" or "0.0" would |
| 192 |
end a loop prematurely when using the idiom 'while($x = |
| 193 |
$dir->next) {...}'. See http://rt.cpan.org/Ticket/Display.html?id=29374 |
| 194 |
[Spotted by Daniel Lo] |
| 195 |
|
| 196 |
- Fixed an exists($array[$i]) that prevented compatibility with perl |
| 197 |
5.005. |
| 198 |
|
| 199 |
- Moved the repository from my personal CVS repo to Google Code. |
| 200 |
|
| 201 |
0.16 - Sun Dec 24 20:29:40 2006 |
| 202 |
|
| 203 |
- Added a $dir->contains($thing) method that indicates whether $dir |
| 204 |
actually contains $thing on the filesystem. |
| 205 |
|
| 206 |
- Fixed a typo in the synopsis for Path::Class::Dir - 'MacOS' should |
| 207 |
have been 'Mac' in the example for foreign_dir(). [Chris Dolan] |
| 208 |
|
| 209 |
- subsumes() was not respecting the 'foreign'-ness of its arguments, |
| 210 |
now it does. [Chia-liang Kao] |
| 211 |
|
| 212 |
- Added a couple of TODO tests (currently failing) for translating |
| 213 |
MacOS paths to Unix |
| 214 |
(http://rt.cpan.org/Ticket/Display.html?id=16613) |
| 215 |
|
| 216 |
0.15 Thu Dec 15 20:11:38 CST 2005 |
| 217 |
|
| 218 |
- Fixed an important edge case in subsumes() - subsumes('/', '/foo') |
| 219 |
(and its equivalent on other platforms) was returning false, but |
| 220 |
should have been true. [Reported by Chia-liang Kao] |
| 221 |
|
| 222 |
0.14 Thu Nov 17 22:16:13 CST 2005 |
| 223 |
|
| 224 |
- Silence a warning caused by $dir1->subsumes($dir2) when $dir2 |
| 225 |
subsumes $dir1. [Chia-liang Kao] |
| 226 |
|
| 227 |
- Work around a File::Spec->abs2rel bug when its two arguments are |
| 228 |
the same. It returns an empty string rather than curdir(), so in |
| 229 |
Path::Class, dir()->absolute->relative returned '/' rather than '.' |
| 230 |
(or their equivalent on non-unix platforms. [Spotted by David Golden] |
| 231 |
|
| 232 |
0.13 Mon Aug 22 22:36:15 CDT 2005 |
| 233 |
|
| 234 |
- Added a recurse() method to Path::Class::Dir, which provides a nice |
| 235 |
alternative to using File::Find. |
| 236 |
|
| 237 |
- Added a children() method to Path::Class::Dir, which returns the |
| 238 |
entries of a directory as Path::Class objects. |
| 239 |
|
| 240 |
- Added touch() to Path::Class::File. |
| 241 |
|
| 242 |
0.12 Tue Jun 28 16:27:38 EDT 2005 |
| 243 |
|
| 244 |
- You can now chomp while you slurp. [Suggested by Smylers] |
| 245 |
|
| 246 |
- Added some notes about how to use Path::Class in a cross-platform |
| 247 |
way. |
| 248 |
|
| 249 |
- Added a remove() method for both files and directories. |
| 250 |
|
| 251 |
- Added a subsumes() method to Path::Class::Dir. |
| 252 |
|
| 253 |
- We now require File::Spec version 0.87 (previously we required |
| 254 |
0.86), because it fixes a few important bugs. |
| 255 |
|
| 256 |
- Fixed some VMS testing bugs. [Abe Timmerman] |
| 257 |
|
| 258 |
- Corrected a couple typos in the documentation for Path::Class::File |
| 259 |
where it mistakenly listed the package as Path::Class::Dir. [Ron |
| 260 |
Savage] |
| 261 |
|
| 262 |
0.11 Mon May 16 20:06:38 CDT 2005 |
| 263 |
|
| 264 |
- Fixed a documentation bug in Path::Class::File - open() calls |
| 265 |
IO::File->new(), not IO::File->open(). [Smylers] |
| 266 |
|
| 267 |
- Improved the semantics for dir_list() in a scalar context. It now |
| 268 |
has a much higher DWIM coefficient. [Suggested by Smylers] |
| 269 |
|
| 270 |
- Added the stat() and lstat() methods to the Path::Class::Dir class; |
| 271 |
previously they were only in the Path::Class::File class. |
| 272 |
[Suggested by Smylers] |
| 273 |
|
| 274 |
- We now require at least version 0.87 of File::Spec, rather than |
| 275 |
0.86, because 0.87 fixed some bugs and idiosyncracies in how Windows |
| 276 |
path names are handled. [Chris Dolan] |
| 277 |
|
| 278 |
0.10 Wed Apr 6 17:04:45 CDT 2005 |
| 279 |
|
| 280 |
- Fixed a bug in relative() that would ignore the optional argument |
| 281 |
if the given file/dir was already specified as relative. |
| 282 |
|
| 283 |
- Fixed a typo in the documentation - I wrote Path::Class::mkdir() |
| 284 |
and Path::Class::rmtree() where I meant File::Path::mkdir() and |
| 285 |
File::Path::rmtree(). |
| 286 |
|
| 287 |
0.09 Tue Apr 5 20:42:20 CDT 2005 |
| 288 |
|
| 289 |
- Added the dir_list() method, which gives the user direct access to |
| 290 |
the list of directories that makes up a Path::Class::Dir object |
| 291 |
(NEEDS DOCUMENTATION). [Suggested by Smylers] |
| 292 |
|
| 293 |
- Documented the behavior of $dir->next() when the directory doesn't |
| 294 |
exist or is unreadable (it dies). [Smylers] |
| 295 |
|
| 296 |
- Fixed a bug that could result in extra backslashes between the |
| 297 |
volume and path (such as C:\\Foo\Bar). [Smylers] |
| 298 |
|
| 299 |
- Added the is_dir() method, which is a simple way to tell the |
| 300 |
difference between a file and a directory. [Suggested by Smylers] |
| 301 |
|
| 302 |
0.08 Tue Dec 28 08:26:56 CST 2004 |
| 303 |
|
| 304 |
- Fixed a typo in the module name in the docs. [Chris Dolan] |
| 305 |
|
| 306 |
- Added a copyright statement to the docs, for some reason it was |
| 307 |
missing. [Spotted by Chris Dolan] |
| 308 |
|
| 309 |
0.07 Wed Jun 30 15:31:35 CDT 2004 |
| 310 |
|
| 311 |
- Fixed a bug in dir("foo/")->parent and |
| 312 |
file("foo/bar")->dir. [Spotted by Sterling Hanenkamp] |
| 313 |
|
| 314 |
0.06 Fri Mar 26 22:20:32 CST 2004 |
| 315 |
|
| 316 |
- Added documentation for $dir->next(), which was for some reason |
| 317 |
missing. |
| 318 |
|
| 319 |
- Simplified a little internal code in $dir->next(). |
| 320 |
|
| 321 |
- Added the slurp(), openr(), and openw() methods to |
| 322 |
Path::Class::File. |
| 323 |
|
| 324 |
0.05 Mon Jan 19 22:36:29 CST 2004 |
| 325 |
|
| 326 |
- Added a parent() method to Path::Class::File, which helps in those |
| 327 |
cases where the distinction between a file and a directory isn't |
| 328 |
significant. [Paul Hoffman] |
| 329 |
|
| 330 |
- Added a basename() method to Path::Class::File. [Richard Evans] |
| 331 |
|
| 332 |
0.04 Thu Jan 1 22:47:18 CST 2004 |
| 333 |
|
| 334 |
- Added several useful methods for interacting with the filesystem, |
| 335 |
such as $file->open(), or $dir->mkpath(). |
| 336 |
|
| 337 |
- file() and dir() are now exported by default when loading |
| 338 |
Path::Class. [Michael Schwern] |
| 339 |
|
| 340 |
- Fixed a problem that happened when interacting with the File::Spec |
| 341 |
that comes with perl 5.6.0. Names weren't being stringified |
| 342 |
properly. [Michael Schwern] |
| 343 |
|
| 344 |
- Fixed a test failure on Win32 (from line 71 of t/01-basic.t). |
| 345 |
[reported by Murat Ünalan] |
| 346 |
|
| 347 |
- Rewrote general description of Path::Class in the documentation |
| 348 |
[suggested by Joshua Keroes] |
| 349 |
|
| 350 |
0.03 Wed Jul 9 09:32:52 CDT 2003 |
| 351 |
|
| 352 |
- D'oh! Forgot to add the t/02-foreign.t test to the MANIFEST. |
| 353 |
|
| 354 |
- The way I was faking out File::Spec to pretend it's on a Unix |
| 355 |
system during testing wasn't working. [Reported by DH] |
| 356 |
|
| 357 |
0.02 Tue Jul 8 14:51:24 CDT 2003 |
| 358 |
|
| 359 |
- Added the capability to work with paths from other systems, see |
| 360 |
'foreign' in the docs. |
| 361 |
|
| 362 |
- Now depends on File::Spec::Mac 1.3, since 1.2 was pretty broken. |
| 363 |
|
| 364 |
- relative() and absolute() methods can now take an optional argument |
| 365 |
to use as the base of relativity. |
| 366 |
|
| 367 |
0.01 Wed Mar 12 18:17:04 CST 2003 |
| 368 |
|
| 369 |
- original version; created by h2xs 1.21 with options |
| 370 |
-XA -n Path::Class |