Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master

Jul 02, 2008

  1. Yossef Mendelssohn

    Setting version (0.1.1), updating History.

    authored July 02, 2008
  2. Yossef Mendelssohn

    Adding #deleted_files to the events array.

    authored July 01, 2008
  3. Yossef Mendelssohn

    FSEvents::Event#deleted_files -- returns files deleted for this event.

    This only works if the stream is in cache mode. Trying this with mtime mode raises an exception because there isn't enough information to get a list of deleted files.
    authored July 01, 2008

Jun 30, 2008

  1. Yossef Mendelssohn

    Setting version (0.1.0), updating History.

    authored June 30, 2008
  2. Yossef Mendelssohn

    Stripping trailing slash from paths.

    This was originally just a minor visual annoyance, but it became something that messed up the caching.
    authored June 30, 2008
  3. Yossef Mendelssohn

    Modifying stream caching strategy to store subdirs.

    Any directory found during caching should be stored in its own cache. Otherwise, the cache is permanently empty for any sub-directory under a watched path.
    authored June 30, 2008
  4. Yossef Mendelssohn

    Better empty-cache behavior in Event#modified_files.

    It won't do for the event to raise an exception simply because nothing's been cached yet.
    authored June 29, 2008
  5. Yossef Mendelssohn

    Modifying Stream#update_last_event to consider mode.

    The mtime mode is the default, and the only thing to do is the same old behavior of storing the last event time.
    The cache mode involves more work, going through each path and storing a File::Stat object for each file.
    authored June 29, 2008
  6. Yossef Mendelssohn

    Checking stream mode in Event#modified_files.

    The mtime mode is the default and is the same as before, checking if any file's mtime is greater than or equal to the last event time.
    The cache mode will check the stream's cache to see if any file's mtime or size has changed. (The checks happen explicitly because File::Stat#<=> only compares mtime).
    authored June 29, 2008
  7. Yossef Mendelssohn

    Adding stream mode.

    The mode is the first option for the FSEvents::Stream object itself (and not the OSX FSEvent stream). It will primarily affect the strategy for getting an event's modified files.
    authored June 29, 2008

Jun 28, 2008

  1. Yossef Mendelssohn

    Modified spec to use kind_of matcher instead of block passed to with().

    authored June 28, 2008

Jun 17, 2008

  1. Yossef Mendelssohn

    Setting version (0.0.2), updating History, README, and Manifest for c…

    …hanges.
    authored June 17, 2008
  2. Yossef Mendelssohn

    Extending the events array with #files and #modified_files.

    authored June 17, 2008

Jun 15, 2008

  1. Yossef Mendelssohn

    Housecleaning.

    History, License, config, Manifest, blah blah. README is the important bit.
    authored June 15, 2008
  2. Yossef Mendelssohn

    Added FSEvents::Stream#run as a way to easily run the stream.

    This merely calls OSX.CFRunLoopRun, which passes control to the Carbon framework.
    authored June 15, 2008
  3. Yossef Mendelssohn

    FSEvents::Event#modified_files -- uses the stream last event time to …

    …get modified files in the event path.
    authored June 15, 2008
  4. Yossef Mendelssohn

    FSEvents::Stream now stores the time of its last event.

    authored June 15, 2008
  5. Yossef Mendelssohn

    FSEvents::Stream now creates FSEvents::Event objects to pass to the c…

    …allback (instead of just simple paths).
    authored June 15, 2008
  6. Yossef Mendelssohn

    Creating FSEvents::Event class, mostly to make getting files from the…

    … path easier.
    
    This is heavily inspired by the Rucola fsevents.rb.
    authored June 15, 2008

Jun 14, 2008

  1. Yossef Mendelssohn

    Reorganizing the startup spec code, moving it to a better place in th…

    …e spec.
    authored June 14, 2008
  2. Yossef Mendelssohn

    Adding FSEvents::Stream.watch, which returns a newly created FSEvents…

    …::Stream object and starts it up.
    
    This should be the main popular interface since it goes directly from path, options, and callback directly to an operating stream.
    authored June 14, 2008
  3. Yossef Mendelssohn

    Adding FSEvents::Stream.create, which returns a new FSEvents::Stream …

    …object with the stream created.
    
    I imagine this will be a more popular interface than FSEvents::Stream.new since it removes the step of creating the stream after initialization.
    authored June 14, 2008
  4. Yossef Mendelssohn

    Requiring a callback block for initialization.

    The best part about this is what it does to the specs.  `FSEvents::Stream.new(@path, @options) {}.flags` looks so AWESOMe.
    authored June 14, 2008
  5. Yossef Mendelssohn

    Completing initialization refactoring, simplifying initialization.

    Now initialization does nothing but store some attributes. This is a good thing.
    authored June 14, 2008
  6. Yossef Mendelssohn

    Continuing initialization refactoring, creating fs event stream.

    The actual fs event stream itself (from OSX.FSEventStreamCreate) is now made outside of initialization. This should free initialization to be simple.
    authored June 14, 2008
  7. Yossef Mendelssohn

    Continuing initialization refactoring, stream callback.

    This is the 'same boring thing every time' that will be used as the FSEvent stream callback, mostly taken from Rucola's fsevents.rb (without having a special object for each event, only caring about the path). From what I can tell, this is what people will care about, just getting a list of the paths where an fs event occurred.
    authored June 14, 2008
  8. Yossef Mendelssohn

    Continuing initialization refactoring, storing callback block.

    Note that the callback here is the 'real' callback, the one the user is interested in. The FSEvent stream callback will be the same boring thing every time.
    authored June 13, 2008
  9. Yossef Mendelssohn

    Refactoring FSEvents::Stream initialization to not do too much.

    This is just the first step, setting attributes in initialization for later methods to use.
    authored June 13, 2008

Jun 13, 2008

  1. Yossef Mendelssohn

    Letting paths default to present working directory.

    authored June 13, 2008
  2. Yossef Mendelssohn

    Letting stream initialization accept multiple paths (not as an array).

    authored June 13, 2008
  3. Yossef Mendelssohn

    Letting stream initialization accept a path or multiple paths (as an …

    …array).
    authored June 13, 2008

Jun 12, 2008

  1. Yossef Mendelssohn

    Stream-start will raise an exception on error.

    authored June 12, 2008
  2. Yossef Mendelssohn

    FSEvents::Stream#startup.

    To start up a stream, the stream should be scheduled and started (taken from the example of 'taming the autotest beast with FSEvents').
    authored June 12, 2008
  3. Yossef Mendelssohn

    FSEvents::Stream#shutdown.

    To shut down a stream, the stream should be stopped, invalidated, and released (taken from the example of 'taming the autotest beast with FSEvents').
    authored June 12, 2008
  4. Yossef Mendelssohn

    Got the last pending spec for FSEvents::Stream#schedule.

    "Cannot convert the passed-by-reference argument #0 as '{__FSEventStream=}' to Ruby" can cram it.
    authored June 12, 2008
Something went wrong with that request. Please try again.