Debian Codegraph @

Changes

raw
1 Revision history File::Slurp
2
3 9999.32 2020-06-30
4 - Re-release after fixing MANIFEST
5
6 9999.31 2020-06-28
7 - Remove TravisCI and AppVeyor
8 - Test using GitHub Actions/workflows on Windows, Mac, and Linux
9 - Add See Also section to the docs. (PR#24 Thanks, Dan Book)
10 - Add file existence and size checks (RT 132900 - Thanks, Bao Haojun)
11
12 9999.30 2020-03-09
13 - Altered the atomic version of write_file to use temporary files that
14 are also hidden files. (RT #132064)
15
16 9999.29 2019-11-27
17 - Correct some documentation errors where copy-paste had us saying
18 File::Spec rather than File::Slurp. (RT 131097 - Thanks, Mike)
19 - Reduce the size of the tests in t/handle.t to be nicer to CPAN
20 Testers.
21
22 9999.28 2019-04-05
23 - Stop testing with Taint mode. Taint was a terrible practice that should
24 have never ever ever been a thing.
25
26 9999.27 2019-04-05
27 - Update the documentation on the atomic write. We no longer use the pid
28 and I neglected to update the documentation as such. (RT #129029)
29 - Localize $^W to stop File::Temp from warning the user when the -w flag
30 is on while we're grabbing a temporary file name. (RT #129029)
31
32 9999.26 2019-02-13
33 - Reduce the size of handle.t to prevent failures on systems with limits set
34 - Skip all tests in the suite that relied on overriding syswrite to test
35 failure mechanisms as CORE::print cannot be overridden.
36 - Refactor write_file to use print rather than syswrite.
37 - When performing an atomic write, make sure we find a good temporary file
38 so that we don't accidentally overwrite a file that may already exist in
39 the working directory.
40 - Stop re-working the line endings on write_file when on Windows as the use
41 of print now allows layers to provide that functionality.
42 - Add File::Basename, File::Spec, File::Temp, and IO::Handle to the runtime
43 prereqs. These were already testing prereqs and are core.
44 - Perl 5.30 compliance is complete at this point.
45
46 9999.25 2018-11-16
47 - The previous release contained nothing but a documentation update. That
48 updated documentation errantly mentioned pseudo-files. Pseudo-files
49 are perfectly fine to use with File::Slurp.
50 - Add regression test for GLOB refs being slurped in. Thank you, James Keenan!
51 https://github.com/perhunter/slurp/pull/17#issuecomment-437174592
52 - Refactor read_file to use open and read rather than sysopen and sysread.
53 - Add a bugwards compatible feature to keep track of the cursor when
54 dealing with the DATA handle (https://github.com/perhunter/slurp/pull/17)
55 - Fix a typo in the docs.
56
57 9999.24 2018-10-29
58 - Document the clear downfalls of using file handles of any kind rather
59 than just the file's path string.
60
61 9999.23 2018-10-20
62 - Fix an error on the test rewrites with a bad value for binmode
63 - Create a 00-report-prereqs.dd to ease testing on 5.6
64 - Bump requirement for File::Spec to 3.01 as Cwd was shipped separately
65 before and the one that came with 5.6 had Taint issues.
66 - Cleaned up the Change log to make all dates uniform
67
68 9999.22 2018-10-15
69 - Update the SYNOPSIS documentation. (Graham Knop)
70 - Fix some EUMM metadata depending on version. (Dan Book)
71 - Fix Windows path concatenation on read_dir. (James Keenan)
72 - Document each function with proper POD heads and re-order in alphabetical
73 - Dump the POD to GH markdown for a README.md
74 - Remove the README file
75 - Remove some work-arounds for older Perls < 5.6
76 - Do not inherit from Exporter (requires Exporter 5.57)
77 - Fix perms.t to run on all platforms (Aristotle Pagaltzis, Linda Walsh
78 via RT #92401)
79 - Clean up handle.t (we no longer use the -w flag anywhere)
80
81 9999.21 2018-10-08
82 - Unset $^W in a few strategic places to silence warnings when Test::Harness
83 or ExtUtils::MakeMaker turn them on. (Thanks, Graham Knop).
84 - Got rid of a few MYMETA leftovers in the MANIFEST
85 - Add Git repository info to the Makefile
86 - Add a contributor's list for display on metacpan
87
88 9999.20_02 2018-10-04 (TRIAL)
89 - Update TravisCI tests to show coverage.
90 - Update all remaining test files
91 - Get rid of assumption of . in @INC in tests
92 - Remove t/TestDriver.pm
93 - Add t/lib/FileSlurpTest.pm
94 - Make sure all tests use a properly acquired temp file
95 - Clean up prereqs a bit further
96 - Document all failure cases in the 01-error* tests.
97 - Moved the CORE:: function overrides to their own test class to only be
98 included when overriding is necessary
99
100 9999.20_01 2018-09-27 (TRIAL)
101 - Fixed spelling mistakes in POD (RT #85251)
102 - Fixed a typo in an example (RTs #72116, #80279)
103 - Remove doc mentions of Perl < 5.006 as that's required.
104 - Fix POD coverage tests by adding a few more ignored functions
105 - Added t/edit_file.t (James Keenan)
106 - Move the POD tests to xt/author
107 - Update t/append_null.t
108 - Update t/binmode.t
109 - Update t/data_list.t
110 - Update t/data_scalar.t
111 - Update t/error_mode.t
112 - Update t/large.t
113 - Update t/original.t
114 - Update t/stringify.t
115 - Added t/00-report-prereqs.t
116 - Added more xt/author tests
117 - Fix all trailing whitespace in accordance with xt/author/eol.t
118 - Updated the Makefile.PL to get all of the prereqs in there.
119 - Add CI testing via TravisCI and AppVeyor
120
121 9999.19 2011-Jun-7
122 - Fixed use line in t/edit_file.t to import :edit first (paul)
123 - read_file and write_file work even when interrupted by signals
124 this includes a test for read_file interrupt (Andrew Danforth)
125 - Fixed bugs in the config synopsis example
126
127 9999.18 2011-May-13
128 - Added :std and :edit export tags
129 - Cleaned up EXPORT vars
130 - Documented importing edit_file and edit_file_lines
131 - Fixed some pod spelling
132
133 9999.17 2011-04-27
134 - Requiring Perl 5.6.2 (first time older Perls were dropped)
135 This is because of use of the re 'taint' pragma
136 - Added major new features: edit_file and edit_file_lines
137 - Speed up of tainted slurp with return of lines
138 - Added chomp option to read_file
139 - Added prefix option to read_dir
140 - Fixed optimization of reading small files.
141
142 9999.16 2011-04-13
143 - Added support for read_file options to be a hash reference.
144 - Added support for read_dir options to be a hash reference.
145 - Added new feature prepend_file
146 - Fixed bug with array_ref in list context. was introduced by .15/.14
147 Thanks to Norbert Gruener
148 - Cleaned up some pod
149
150 9999.15 2011-03-24
151 - Fixed error.t test so it works when run as root
152 - Removed skip lines from error.t
153 - Fixed pod about binmode option to reflect changes in .14
154
155 9999.14 2011-03-20
156 - Added LICENCE (same as perl) to POD
157 - Added special faster code to slurp in small text files which
158 is a common case
159 - Rewrote the extras/slurp_bench.pl script. It has a full
160 legend, better CLI options, size is selectable, benchmark
161 entries have more consistant names and it compares the new
162 fast slurp for small files to the general slurp code.
163 Thanks to Mark Friendlich
164 - Cleaned up pod
165 - Added more Synopsis examples
166 - Added t/error.t to actually test error conditions. Previous
167 error.t was renamed to error_mode.t which better reflects its
168 tests.
169 - t/error.t uses a new test driver module. this may get used by
170 other tests in the future.
171 - Fixed check for SEEK_SET and other constant subs being defined
172 - Added support for binmode other than :raw and binmode.t test
173 Thanks to Martin J. Evans, Peter Edwards, Bryce Nesbitt
174 - Added support for perms option in write_file and perms.t test
175 Thanks to Peter Corlett and Paul Miller
176 - Added check to the rename call in atomic mode. Tested in error.t.
177 Thanks to Daniel Scott Sterling
178 - Added POD to state that using scalar_ref or buf_ref will be faster
179 and save memory due to not making a copy (Peter Edwards)
180 - read_file in list mode keeps data tainted (Sébastien Aperghis-Tramoni)
181 - read_file checks for an overloaded object to get the file
182 name. (Sébastien Aperghis-Tramoni)
183
184 9999.13 2006-10-10
185 - Refactored the extras/slurp_bench.pl script. It has options,
186 a key the benchmarks, help and more benchmarks.
187 - Reordered changes so recent entries are first
188 - Added error check on atomic rename and test for it. Thanks to Daniel
189 Scott Sterling
190
191 9999.12 2006-02-2
192 - Fixed bug on windows with classic slurping and File::Slurp not
193 agreeing on newline conversion.
194 - Added t/newline.t test to check for that fix.
195 - When passing text data by scalar reference to write_file under
196 windows, the buffer is copied so the newline conversion won't
197 modify the caller's data.
198 - Thanks to Johan Lodin <[email protected]> for a test script which
199 I modified into t/newline.t
200
201 9999.11 2005-01-20
202 - Quick release to remove code that forced the faked SEEK_*
203 values to be used. Showed up when tested on OSX which doesn't
204 need that backport.
205
206 9999.10 2005-01-19
207 - t/*.t modules don't use Fcntl.pm
208 - using POSIX qw( :fcntl_h ) instead of Fcntl qw( :seek ) for
209 backwards compatiblity to 5.00503
210 - added conditional definitions of SEEK_* and O_* subs as they are not
211 defined in perl 5.004
212 - File::Slurp now runs on perl 5.004 and newer (see BUGS section)
213 All of the above thanks to Smylers <[email protected]>,
214 Piers Kent <[email protected]> and
215 John Alden <[email protected]>
216 - Added pod.t and pod_coverage.t tests. This is to pass all
217 the CPANTS tests.
218
219 9999.09 2005-04-19
220 - t/original.t and read_dir.t no longer search for tempdirs. they just
221 use the current dir which should be in the build directory
222 - t/readdir.t renamed to read_dir.t for consistancy
223 - write_file return values are docuemented
224 Thanks to Adam Kennedy <[email protected]>
225 - added no_clobber option to write_file and t/no_clobber.t test for it
226 Thanks to <[email protected]>
227 - fixed bug when appending a null string to a file which then
228 truncates it. seems to be an odd way for linux and OS X to
229 handle O_APPEND mode on sysopen. they don't seek to the end of
230 the file so it gets truncated. fixed by adding a seek to the
231 end if in append mode.n
232 Thanks to Chris Dolan <[email protected]>
233
234 9999.08 2005-04-16
235 - read_dir returns an array ref in scalar context
236 - read_dir keeps . and .. if keep_dot_dot option is set.
237 Thanks to John Alden <[email protected]>
238 - slurp() is an optional exported alias to read_file
239 Thanks to Damian Conway <[email protected]>
240
241 9999.07 2005-01-25
242 - Slurping in pseudo files (as in /proc) which show a size of 0
243 but actually have data works. This seems to be the case on
244 linux but on Solaris those files show their proper size.
245 Thanks to Juerd Waalboer <[email protected]>
246
247 9999.06 2004-09-20
248 - Slurping the DATA handle now works without the workaround.
249 tests are in t/data_scalar.t and t/data_list.t
250 - Paragraph mode in read_file is supported. As with <> when $/
251 (input record separator) is set to '', then the input file is
252 split on multiple newlines (/\n\n+/).
253 Thanks to Geoffrey Leach <[email protected]>
254
255 9999.05 2004-02-24
256 - skip handle tests where socketpair is not supported (pre 5.8
257 on windows) Thanks to Mike Arms <[email protected]>
258
259 9999.04 2004-02-23
260 - fixed DATA handle bug in t/handle.t (not seen on most OS's) Thanks to
261 James Willmore <[email protected]>
262
263 9999.03 2003-12-22
264 - fixed DATA handle bugs in t/handle.t on osx (should be fixed
265 on BSD as well)
266 - added more comments to code
267
268 9999.02 2003-12-17
269 - skip DATA test in handle.t on OSX (bug in perl with sysread on DATA)
270 - changed checking if file handle from fileno to ref
271 from Randal Schwartz <[email protected]>
272 - added support for atomic spewing
273 - added new test stdin.t for the fileno/ref change
274 - added new test inode.t to test atomic spewing
275
276 9999.01 2003-09-01
277 - original version; created by h2xs 1.21 with options -AX -n File::FastSlurp