The win32-changenotify library provides an interface for monitoring changes in files or diretories on the MS Windows filesystem. It not only tells you when a change occurs, but the nature of the change as well.
Daniel J. Berger
gem "win32-changenotify", "~> 0.5.1"