Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Mar 24, 2015
  1. Update Makefile.PL

    authored
  2. Updated Changes

    authored
Commits on Mar 21, 2015
  1. update Makefile.PL

    authored
  2. tidy test file

    authored
Commits on Mar 17, 2015
Commits on Mar 6, 2015
Commits on Mar 5, 2015
  1. updated changes

    authored
  2. implement simpler negative count for lines

    authored
    The previous implementation had a couple problems that led me to take an
    alternate approach.
    
    Most importantly: reading bytes from an arbitrary point could easily
    read from the middle of a UTF-8 encoded character, which could cause a
    fatal error with a strict IO layer. Working around that (catching such
    errors or switching to raw mode for the seek and then back after) adds
    more complexity than I want in Path::Tiny.
    
    The new approach does this: when count is negative, it read all lines
    (thus respecting any requested I/O layers), but only returns the
    abs(count) at the end (or all lines if the file is smaller).
    
    Fixes #118.
  3. fix visit doc typo

    authored
Commits on Mar 4, 2015
  1. documented realpath changes

    authored
  2. updated Makefile.PL

    authored
  3. Improve docs example for touch

    authored
    Fixes #126
  4. make realpath on windows less fatal

    authored
    If the parent exists but only the file doesn't, that's OK on Unix and
    fatal on Windows.  On Windows, we compute realpath of the parent and
    just add the basename back on afterwards.
    
    Fixes #89
  5. change visit API for simplicty and state accumulation

    authored
    The visit API now gives the callback a hashref for accumulating state
    and returns it at the end; this will avoid people having to create
    closures for their callbacks.
    
    The file is aliased to $_ for simple callbacks.
    
    The 'stop iterating' feature is changed to require a reference to
    a false scalar (\0), similar to Path::Iterator::Rule. This will
    help people who will forget to always return a true value.  The
    default is now to always keep iterating and a special action is required
    to halt.
  6. update visit documentation

    authored
Something went wrong with that request. Please try again.