Debian Codegraph @

Changes

raw
1 Revision history for File-Find-Object
2
3 0.3.9 2024-12-11
4 - Avoid implicit symbol imports.
5 - https://perl-begin.org/tutorials/bad-elements/#non_explicitly_imported_symbols
6
7 0.3.8 2023-07-22
8 - Fix use_ok() call.
9 - https://github.com/shlomif/perl-file-find-object/pull/3
10 - Thanks to @haarg .
11
12 0.3.7 2023-01-01
13 - Fix test failures on mswin
14 - https://github.com/shlomif/perl-file-find-object/issues/2
15 - thanks to @jddurand
16
17 0.3.6 2021-08-26
18 - Extract https://metacpan.org/pod/File::TreeCreate .
19
20 0.3.5 2020-01-28
21 - Rebuild for order of 'NAME' and 'VERSION' sections in the generated
22 POD documentation (see:
23 https://metacpan.org/changes/distribution/Pod-Weaver-PluginBundle-SHLOMIF#L3
24 ).
25 - VERSION used to appear before NAME.
26
27 0.3.4 2019-08-25
28 - Add *~ files to MANIFEST.SKIP.
29 - https://github.com/shlomif/perl-file-find-object/issues/1
30 - Thanks to @perlpunk and SUSE.
31
32 0.3.3 2019-08-23
33 - Now at https://github.com/shlomif/perl-file-find-object
34 - tidyall .
35
36 0.3.2 2017-01-13
37 - Made the version number consistent across the .pm files.
38 - https://bitbucket.org/shlomif/perl-file-find-object/issues/1/wrong-version-number
39 - Thanks to aer0 for the report.
40
41 0.3.1 2017-01-09
42 - Fixed an issue with tracking the depth of the inodes when detecting
43 a symlink loop.
44 - Detected by several cygwin reports.
45
46 0.3.0 2016-09-11
47 - Converted the build system to Dist-Zilla.
48 - Part of the impetus was removing the warning about
49 Test::TrailingSpace needed for the trailing whitespace tests
50 (which in turn requires this modules) which was reported to us as a
51 problem by someone (despite not being a real issue).
52
53 0.2.13 2015-04-07
54 - Clarified the documentation regarding the use/return of array
55 references.
56
57 0.2.12 2014-11-28
58 - Made sure no two t/*.t test scripts share temp paths.
59 - This caused failure with HARNESS_OPTIONS="j9".
60 - Thanks to ETHER for the report:
61 - http://www.cpantesters.org/cpan/report/2711a2ec-7401-11e4-8c78-d7697441a48b
62
63 0.2.11 2014-03-26
64 - Add $VERSION globally to all packages in lib/.
65 - This was done to silence some warnings from PAUSE.
66 - Add scripts/bump-version-number.pl to update it.
67
68 0.2.10 2014-03-26
69 - Correct a misspelling reported by dsteinbrunner.
70 - https://rt.cpan.org/Ticket/Display.html?id=94206
71 - Fix Build.PL by excluding the 'license' URL from the resources.
72 - New versions of Module::Build add it automatically.
73
74 0.2.9 2014-01-29
75 - Convert from "use base" to the more modern "use parent".
76 - Minimal version on perl-5.008 (CPANTS Kwalitee).
77 - Add the LICENSE file - CPANTS Kwalitee.
78
79 0.2.8 2013-08-17
80 - Fix https://rt.cpan.org/Ticket/Display.html?id=87901
81 - repository metadata duplication.
82
83 0.2.7 2013-05-21
84 - Convert this file to t/cpan-changes.t .
85
86 0.2.6 2012-11-25
87 - Correct a typo:
88 - see https://rt.cpan.org/Ticket/Display.html?id=81428
89 - Thanks to Xavier Guimard for the report.
90 - Remove trailing space.
91
92 0.2.5 2012-07-12
93 - Add the scripts/tag-release.pl script to tag a release in the
94 Mercurial repository.
95 - The problem is that I'm using different conventions for the
96 names of the tags in different repositories and wish to introduce
97 some consistency.
98
99 0.2.4 2012-07-12
100 - Update the link to the new repository at bitbucket.org.
101 - Add cleanup for a temporary directory in the tests.
102
103 0.2.3 2009-07-30
104 - 0.2.2 seems to have been deleted. Re-uploading.
105 - thanks to lwpetre
106
107 0.2.2 2009-06-25
108 - added some META.yml resources.
109 - added META.yml keywords.
110
111 0.2.1 2009-06-18
112 - Optimization: removed the _dir field of File::Find::Object::PathComp
113 and its _dir_copy copy-accessor, and replaced them all with passing
114 the $dir_str explicitly. This reduced the code considerably, and
115 eliminated a similar symptom to this one:
116 - http://en.wikipedia.org/wiki/Schlemiel_the_painter%27s_Algorithm
117 - Added the ->is_file() method to ::Result.
118 - Converted ::Result->is_dir() to use -d _
119 - Added ::Result->is_link().
120
121 0.2.0 2009-02-22
122 - Optimization: now not checking for the existence of the callback() after
123 every iteration, in case it doesn't exist. Instead, the default_actions
124 is calculated according to its existence when the tree traverser
125 is initialized.
126 - Refactoring/Optimization: avoided having two _set_obj() methds by
127 calling _set_obj() from _run_cb().
128
129 0.1.9 2009-02-10
130 - Added use integer to the modules, because they don't make use
131 of floating-point calculation. It may be a minor optimization, but then
132 again it may be not.
133 - Optimization: optimized the loop detection by having a hash lookup
134 of inodes in each path component, that are built incrementally and checked
135 for every subsequent node.
136 - Optimization: replaced the _top_it() of _me_die() with a normal method
137 with a conditional, as it was the only place where _top_it() was still
138 used.
139 - Optimization/Cleanup: _set_inodes() in ::DeepPath.
140 - Clarified the licensing blurbs of the .pm files.
141
142 0.1.8 2009-01-19
143 - Optimization/Refactoring: replaced the last call to ->_father with a
144 call to _current_father(). Removed ->_father and optimized
145 _current_father() .
146 - Optimization/Refactoring: refactored _become_default() to remove
147 the execessive use of $father and $father->idx(). Now ->idx() is
148 no longer needed and will be removed next.
149 - Optimization/Refactoring: removed the ->idx() method as it
150 was no longer used and needed.
151 - Optimization: instead of calling File::Find::Object::Result->new()
152 just bless to it.
153 - Optimization: now caching the filesystem device at
154 the top for nocrossfs().
155 - Plus: rearranged the order of the checks in
156 _non_top__check_subdir_helper
157 - Optimization/Refactoring: made the _top_it method names saner,
158 and removed an unused one.
159 - Refactoring: refactored _check_subdir_helper_d() to make
160 the conditions clearer.
161 - Optimization: now compiling the _check_subdir_helper function
162 by eval ""'ing it because it contains many conditions that depend
163 on instance-wide and constant parameters.
164 - Cleanup: moved some POD'ed out functions to under rejects/ .
165 - Optimization: renamed _calc_next_obj() to next_obj(), as next_obj()
166 just called it directly. Cleaned up the rest of the logic in next_obj().
167 - Bug fix: the nocrossfs option was fixed. Previously it used an undefined
168 method.
169
170 0.1.7 2009-01-15
171 - Fixed the check-for-link and for directory semantics on Windows
172 and other systems. Converted to "perldoc -f lstat" instead of
173 "perldoc -f stat", and using stat only for symbolic links to check
174 if they are directories. Now added a test for that.
175 - Fixed t/01ffo.t to check for the warning.
176 - Also see: http://www.nntp.perl.org/group/perl.perl5.porters/2009/01/msg143399.html
177 - Small optimization: converted a loop with:
178 while($ptr) { ... } continue { $ptr = $self->_father($ptr); }
179 to List::Util::first.
180 - Added more dependencies to Build.PL / Makefile.PL including
181 List::Util.
182
183 0.1.6 2009-01-09
184 - Converted the accessor generator to Class::XSAccessor instead
185 of Class::Accessor. After consulting Devel::NYTProf, it seemed that
186 the majority of the time of a simple File-Find-Object scan was spent
187 in Class::Accessor. Hopefully, this will make F-F-O run faster.
188 - A small optimization - added a flag to $self with whether the stack
189 is full or not. This is used inside _top_it() and _is_top().
190 - A small optimization - implemented _current directly instead of
191 a _top / _non_top version - saved 2.5 seconds of runtime.
192 - A small optimization - got rid of _current_components_copy() (which
193 was useless because _current_components already returns a dynamic
194 reference) and replaced all calls with calls to _current_components().
195 - A small optimization - ->dir() instead of ->_dir_copy() for
196 a function whose return value is dereferenced and flatted.
197 - A small optimization - now caching the results of _current_components
198 inside an accessor and updating it upon every change.
199 - A small optimization - now caching the results of _current_path()
200 upon every modification of _current_components, so File::Spec->catfile()
201 won't be called excessively.
202 - Optimization/Refactoring - changed the actions() handling so instead
203 of having the indices, we calculate an array of master actions at
204 start that correspond with the depth() parameter, and then assign it for
205 each PathComponent object in turn based on $top. This is instead of
206 the indexes and explicit calculations etc., which was both messier
207 and slower.
208 - Optimization/Refactoring - renamed _current_components() to
209 _curr_comps() and _current_path to _curr_path() to make them
210 shorter and faster. Added a comment explaining what they are.
211 - Optimization/Refactoring - optimized _calc_current_item_obj.
212 - Optimization - removed an _is_top() conditional in _recurse() that
213 was likely not to be evaluated, by re-arranging the order of _mystat
214 call. Now _mystat is not an action, but rather called explicitly.
215 _is_top() is now PODded-out because it's not used.
216 - Refactoring - made the top path component-handling object a separate
217 object (::PathTop) instead of $top/$tree . Hopefully, this will later
218 allow caching _current(), and having a unified directory stack.
219 - Refactoring - created a base class for Path-Components (i.e: ::PathTop
220 and ::PathComponent). Most of the methods out of ::Base belong there
221 so they were moved. This class inherits from ::Base, but there's not
222 a lot there anymore.
223 - Refactoring - renamed ::PathComponent as ::DeepPath and ::PathTop
224 as ::TopPath. Otherwise they could be confused with ::PathComp.
225 - Refactoring - made the first ::PathTop component the first element
226 in _dir_stack() so we won't need to keep in a distinct reference. All
227 the other elements moved 1 level down the stack.
228 - Optimization - now caching $top->_dir_stack()->[-1] into
229 $top->_current() as an accessor.
230
231 0.1.5 2009-01-03
232 - Unified the two calls to stat() (and several calls to other file
233 operators) in order to reduce the number of system calls/disk accesses
234 issued by File::Find::Object.
235 - Refactored the code from the last change and added
236 File::Find::Object::Result->stat_ret() for the return value of stat().
237
238 0.1.4 2008-12-25
239 - Bug fix: made sure ->item_obj() is available on the first call
240 to the callback() and is properly synchronized with it.
241
242 0.1.3 2008-11-12
243 - Refactoring: converted _movenext() from pseudo-conditionals
244 to polymorphism by making it a method of ->_current().
245 - Refactoring: extracted the _next_traverse_to() method.
246 - Bug fix (with possible correctness/SECURITY implications):
247 - now correctly handling files and directories whose filenames
248 are false in Perl - most notable "0".
249
250 0.1.2 2008-10-26
251 - Corrected the README.
252 - Now checking for inodes that are 0, when checking for cyclical trees,
253 as a fix for stat() calls on systems that do not support them. This should
254 fix Win32 test failures (and bad behaviour in general) like the following: - http://nntp.x.perl.org/group/perl.cpan.testers/2479582
255
256 0.1.1 2008-10-22
257 - Potential Security Fix!!! No longer passing a filename directly to
258 the format in <<printf (STDERR)>> when warning on a loop.
259 - Bug fix - the check for a loop was broken.
260 - New Feature - Added the ->next_obj() and ->item_obj() methods
261 to return a File::Find::Object::Result object instead of a plain
262 path.
263 - Refactoring:
264 - No longer passing $current explicitly from one method to another
265 (hello EEK!). Instead, we reference $self->_current()
266 - Remmed out the DESTROY method as it was empty.
267 - Revamped the _action handling - an array instead of a hash.
268 - Created _top and _non_top methods delegated by _is_top using
269 _top_it()
270 - _current_idx() was eliminated - now it's just $#dir_stack.
271 - Created a _copy methods to create flat copies of array references.
272 - Extracted many methods.
273 - Switched Build.PL to inc/Test/Run/Builder.pm - that gives us:
274 - ./Build runtest
275 - ./Build distruntest
276 - ./Build tags
277
278 0.1.0 2008-03-05
279 - Now handling directories that cannot be opendir()'ed in a graceful
280 manner - just not traversing them further.
281
282 0.0.9 2008-02-22
283 - Now running canonpath() on the targets in the call to
284 File::Find::Object->new. That way, trailing slashes are omitted in
285 the results.
286 - Allow File::Find::Object to properly accept paths to regular
287 files as input paths. Fixes:
288 http://rt.cpan.org/Public/Bug/Display.html?id=33453
289 Thanks to Sergey V Panteleev for reporting the bug.
290 - TODO : check behavior on traversing non-existant paths.
291 - Done.
292 - Now skipping non-existant files.
293 - Added a test for it in t/03traverse.t
294
295 0.0.8 2007-07-31
296 - added the empty PL_FILES key to the Makefile.PL to avoid running
297 Build.PL on older versions of EU::MM.
298
299 0.0.7 2007-02-02
300 - moved the tree script under the examples directory.
301 - added the LICENSE section to the POD.
302 - added t/pod.t and t/pod-coverage.t and made sure the module
303 has full POD coverage.
304 - added a Build.PL build script to generate a better META.yml file.
305 - all of these are Kwalitee improvements.
306 ( http://cpants.perl.org/dist/File-Find-Object )
307 - Added some links to the main POD documentation for similar modules
308 and for the Perl Advent article.
309
310 0.0.6 2006-11-28
311 - Added the following new interface methods:
312 - set_traverse_to
313 - get_traverse_to
314 - get_current_node_files_list
315 - prune
316 - Some changes to the internals to accomodate for them.
317
318 0.0.5 2006-09-03
319 - Eliminated the F-F-O-internal isa F-F-O relationship.
320 - Created accessors for everything - now based on Class::Accessor
321 - F-F-O-internal is now named File::Find::Object::PathComponent
322 - Some smaller refactorings.
323
324 0.0.4 2006-08-23
325 - Eliminated circular references. (Hopefully)
326 - Still have an isa relationship between File::Find::Object and
327 File::Find::Object::internal, which is what handles each recursed to
328 directory.
329 - Created some accessor functions instead of direct hash accesses.
330
331 0.0.3 2006-07-14
332 - Fixed some language problems in the POD.
333 - Added the Changes file.
334 - Changed the license to GPL/Artistic/Artistic-2.0
335 - Placed the .pm files inside lib.
336 - Added the TreeCreate module under t/lib (with appropriate tests) to test
337 the main module.
338 - Made the default test order lexicographical, and predictable. In the
339 process, eliminated keeping the directory handles, and possibly the fact
340 that they are kept open.
341 - Fixed a bug where circular references prevented the module from being
342 destroyed.
343