jordansissel / eventmachine-tail

Ruby EventMachine file tailing and friends. 'gem install eventmachine-tail' to install.
127 stars 16 forks source link

Add ability to notify also when a file is changed. #20

Open stefanozanella opened 11 years ago

stefanozanella commented 11 years ago

When a file is already in the tracked list, it is ignored. It is just two LOC away to be notified also when the file content changes.

Add separate mock class to test for notification of files' modifications. Update FileGlobWatch to check if the mtime of the current file changed since the last time it was checked. Update samples to reflect new use case.