Commits on Aug 31, 2010
  1. @tkareine
Commits on Aug 29, 2010
  1. @tkareine

    Use do/end block, so code in related methods looks similar

    So that the methods #created, #deleted, and #modified in Directory look
    similar to each other.
    tkareine committed Aug 29, 2010
  2. @tkareine

    1.8.6 fix: avoid external enumerator in #tag_entries

    Ruby 1.8.6 does not support external enumerators. So, change the code in
    Directory#tag_entries to have the result hash in explicit variable and
    let the processing in #each_pair block to modify the hash via the
    variable.
    tkareine committed Aug 29, 2010
  3. @tkareine

    Sort.reverse is clearer than sort with a block

    Thanks to Nathan Weizenbaum (nex3) for the comment.
    tkareine committed Aug 29, 2010
  4. @tkareine

    Avoid line-continuation, put dot in prev line

    Thanks to Nathan Weizenbaum (nex3) for the comment.
    tkareine committed Aug 29, 2010
Commits on Aug 25, 2010
  1. @tkareine

    Pass file type argument to callbacks if :directories

    If :directories option is enabled, callbacks receive a third argument
    specifying the type of the file affected by the operation causing the
    callback. The file types are either :file or :directory.
    
    If :directories option is disabled, no third argument is passed to the
    callbacks; the monitored files are all non-directories anyway.
    
    With file creation and modification events, you can use
    `File.directory?` to determine the file type. However, this is not
    possible with file deletion, since the file does not exist anymore. This
    is the motivation for the change.
    tkareine committed Aug 25, 2010
  2. @tkareine

    Call callbacks in predictable order

    If a directory structure is modified, it is useful for the user of FSSM
    to receive the callbacks in predictable order.
    
    For example, let's consider an application that monitors files in a
    working directory and attempts to keep the directory contents
    synchronized to a remote host with SCP. If a subdirectory with a file
    gets deleted in the working dir, it is useful for the app to know that
    the file gets deleted first and the subdirectory second. This way, in
    the remote host, the app can remove the file first before attempting to
    remove the (non-empty) subdirectory.
    tkareine committed Aug 25, 2010
  3. @tkareine

    Add option to include directories to be monitored

    When monitoring the contents of a directory, if option :directories
    is enabled, FSSM calls callbacks upon directory operations.
    
    The interface of FSSM.monitor changes: if the last argument is a hash,
    it is presumed to be the options hash and is passed to the monitor
    object. This is a minimal API change, which hopefully does not break
    existing code.
    
    The options hash belongs to the monitor object, but the monitor object
    passes options to its components of which behavior depend on options.
    tkareine committed Aug 25, 2010
  4. @tkareine
Commits on Mar 10, 2010
  1. @ttilley
  2. @ttilley

    Version bump to 0.1.4

    ttilley committed Mar 10, 2010
Commits on Feb 7, 2010
  1. @nex3
Commits on Feb 6, 2010
  1. @nex3

    Pass the directory of the modified inotify file.

    This is a temporary workaround for a bug in the directory handler
    that expects all #refresh calls to path in directory paths.
    nex3 committed Feb 6, 2010
  2. @nex3

    Use absolute paths for rb-inotify.

    This bumps the required rb-inotify version up to 0.5.1.
    
    Closes gh-4
    nex3 committed Feb 6, 2010
  3. @nex3

    Only monitor relevant inotify events.

    Closes gh-5
    nex3 committed Feb 6, 2010
  4. @nex3
  5. @nex3
Commits on Jan 31, 2010
  1. @ttilley

    forgotten gemspec -_-

    ttilley committed Jan 30, 2010
  2. @ttilley

    Version bump to 0.1.3

    ttilley committed Jan 30, 2010
  3. @ttilley

    numerous pathname fixes

    ttilley committed Jan 30, 2010
Commits on Jan 19, 2010
  1. @chriseppstein
Commits on Jan 18, 2010
  1. @ttilley

    Merge remote branch 'nex3/master'

    Conflicts:
    	lib/fssm/backends/inotify.rb
    ttilley committed Jan 18, 2010
  2. @madx
Commits on Jan 16, 2010
  1. @nex3 @ttilley

    Support watching of individual files.

    nex3 committed with ttilley Jan 14, 2010
  2. @nex3 @ttilley
  3. @nex3
Commits on Jan 14, 2010
  1. @nex3
Commits on Jan 13, 2010
  1. @nex3
Commits on Dec 26, 2009
  1. @ttilley
  2. @ttilley

    Version bump to 0.1.2

    ttilley committed Dec 26, 2009
  3. @ttilley
Commits on Dec 25, 2009
  1. @ttilley
  2. @ttilley

    Version bump to 0.1.1

    ttilley committed Dec 25, 2009
  3. @ttilley
Commits on Dec 14, 2009
  1. @ttilley

    gemspec

    ttilley committed Dec 13, 2009