Revision history for File-Edit-Portable
1.08 20151029
- splice() now takes a 'limit => int' param, limiting how many 'find's to
insert after. Default is 1, set to 0 to insert after all
- added tempfile(), returns a writable handle to an empty file
- fixed logic bug in read() when returning a handle
- major performance enhancements all over, particularly in retrieving
a handle from read() when the file already has local receps
1.07 20151022
- we're now perl v5.6 compliant due to replacing \R with full string
regex
- fixed issue when trying to write to a non-existent file
- write() now accepts a file handle as a value to 'contents' param
- recsep() and platform_recsep() now both accept an optional string param
'hex', which will return the hex representation of the recsep. If not
supplied, will return the string representation
1.06 20151019
- removed non-OO interface, it started causing issues
- added extra layer to recsep internally... it fixes a bug where
if two files were read before one was written, the recsep of
the latter file would be incorrectly used. Now, a recsep is saved
for each file read
- read() doesn't need 'file => $file' anymore, just the filename as
a string is required. However, the old API will still work
1.04 2015-10-16
- removed each() on array to prevent us from having to force
perl v5.12
1.03 2015-10-16
- added splice(), allows splicing in new contents while conforming
to the existing functionality of the module
1.02 2015-10-14
- dir() method now uses File::Find::Rule for its ability to
specify maxdepth, which we do too
- dir() takes wildcard globs in 'types' param in accordance with
File::Find::Rule::name
- fixed undef warning bug in recsep() if file is empty. In this case,
we will return the platform's recsep
1.01 2015-10-13
- new dir() method, rewrites files recursively
0.10 2015-10-06
- Travis-CI integration
- now uses File::Temp (core) for anything requiring a temp file
- new functions read(), write() exported on demand. pread/pwrite are still
available
- performance/efficiency enhancements
0.09 2015-10-01
- new non-OO functions, pread() and pwrite()
0.08 2015-09-30
- fixed logic bugs in Makefile.PL, breaking tests on Win32
0.07 2015-09-27
- new interal _open() method for r/w opens
- read() can now return a handle in scalar context, which will have
the native platform's recsep installed
- new internal _handle() method
- new public platform_recsep() method, returns the OSs recsep in string form
0.06 2015-09-26
- fixed a couple of bugs in write() if params aren't sent in
- cleaned up POD, SYNOPSIS was wrong
0.05 2015-09-26
- write() now accepts 'recsep' parameter, uses this instead of the one
found by read()
0.04 2015-09-26
- renamed pread(), pwrite() to read(), write()
- requires perl v5.10 due to \R
0.02 2015-09-26
- POD
- added recsep(), returns string of hex eor
0.01 2015-09-25
- pread(), pwrite() completed
- all tests pass