Skip to content

Releases: perhunter/slurp

v9999.32

01 Jul 00:31
Compare
Choose a tag to compare

Re-release after fixing MANIFEST

v9999.31

28 Jun 22:32
Compare
Choose a tag to compare
  • Remove TravisCI and AppVeyor
  • Test using GitHub Actions/workflows on Windows, Mac, and Linux
  • Add See Also section to the docs. (PR#24 Thanks, Dan Book)
  • Add file existence and size checks (RT 132900 - Thanks, Bao Haojun)

v9999.30

09 Mar 14:30
Compare
Choose a tag to compare

Altered the atomic version of write_file to use temporary files that are also hidden files. (RT #132064)

v9999.29

27 Nov 20:39
Compare
Choose a tag to compare
  • Correct some documentation errors where copy-paste had us saying
    File::Spec rather than File::Slurp. (RT 131097 - Thanks, Mike)
  • Reduce the size of the tests in t/handle.t to be nicer to CPAN
    Testers.

v9999.28

13 Sep 00:42
Compare
Choose a tag to compare
  • Stop testing with Taint mode. Taint was a terrible practice that should have never ever ever been a thing.

v9999.27

05 Apr 13:23
Compare
Choose a tag to compare
  • Update the documentation on the atomic write. We no longer use the pid and I neglected to update the documentation as such. (RT #129029)
  • Localize $^W to stop File::Temp from warning the user when the -w flag is on while we're grabbing a temporary file name. (RT #129029)

v9999.26

13 Feb 16:34
Compare
Choose a tag to compare
  • Reduce the size of handle.t to prevent failures on systems with limits set
  • Skip all tests in the suite that relied on overriding syswrite to test
    failure mechanisms as CORE::print cannot be overridden.
  • Refactor write_file to use print rather than syswrite.
    • When performing an atomic write, make sure we find a good temporary file
      so that we don't accidentally overwrite a file that may already exist in
      the working directory.
    • Stop re-working the line endings on write_file when on Windows as the use
      of print now allows layers to provide that functionality.
  • Add File::Basename, File::Spec, File::Temp, and IO::Handle to the runtime
    prereqs. These were already testing prereqs and are core.
  • Perl 5.30 compliance is complete at this point.

v9999.25

16 Nov 16:18
Compare
Choose a tag to compare
  • The previous release contained nothing but a documentation update. That updated documentation errantly mentioned pseudo-files. Pseudo-files are perfectly fine to use with File::Slurp.
  • Add regression test for GLOB refs being slurped in. Thank you, James Keenan! #17 (comment)
  • Refactor read_file to use open and read rather than sysopen and sysread.
  • Add a bugwards compatible feature to keep track of the cursor when dealing with the DATA handle (#17)
  • Fix a typo in the docs.

v9999.24

30 Oct 02:43
Compare
Choose a tag to compare
  • Document the clear downfalls of using file handles of any kind rather than just the file's path string.

WARNING - PENDING DOOM

Although you technically can, do NOT use this module to work on file handles,
pipes, sockets, standard IO, pseudo-files, or the DATA handle. These are
features implemented long ago that just really shouldn't be abused here.

Be warned: this activity will lead to inaccurate encoding/decoding of data.

All further mentions of actions on the above have been removed from this
documentation and that feature set will likely be deprecated in the future.

In other words, if you don't have a filename to pass, consider using the
standard do { local $/; <$fh> }, or
Data::Section/Data::Section::Simple for working with __DATA__.

v9999.23

20 Oct 20:07
Compare
Choose a tag to compare
  • Fix an error on the test rewrites with a bad value for binmode
  • Create a 00-report-prereqs.dd to ease testing on 5.6
  • Bump requirement for File::Spec to 3.01 as Cwd was shipped separately
    before and the one that came with 5.6 had Taint issues.
  • Cleaned up the Change log to make all dates uniform