A class for watching files within a directory and generating events
when those files change.
The directory watcher operates by scanning a directory at some interval
and
generating a list of files based on a user supplied glob pattern. As the
file
list changes from one interval to the next, events are generated and
dispatched to registered observers. Three types of events are supported
On Nov 13, 2006, at 12:39 PM, Joel VanderWerf wrote:
Eric H. wrote:
On Nov 13, 2006, at 11:42 AM, Tim P. wrote:
…
I really need to drink more coffee before I send out these
announcements
Or just use Hoe and run rake release. Drops an email.txt ready
for pasting into your email client of choice.
Are you saying rake release has the same effect as drinking coffee?
Hoe is like coffee in that it prevents you from making the mistakes
that may result from insufficient caffeine levels.
More of a coffee substitute when releasing packages.
The feature I’m waiting for is “rake coffee”: brews a cup of coffee
while hoe runs your entire project for you
dirwatch is very awesome code. It is a great ruby application that
“manages an sqlite database that mirrors the state of a directory and
then triggers user definable event handlers for certain filesystem
activities such file creation, modification, deletion, etc.” It is
meant to be used as its own application.
directory_watcher, on the other hand, is a single ruby class that
sends event objects to other ruby classes when the contents of a
directory change. It is meant to be used within ruby scripts that need
to know about file events.
In summary
dirwatch → awesome ruby application
directory_watcher → awesome ruby class
Or just use Hoe and run rake release. Drops an email.txt ready for
pasting into your email client of choice.
You’re assuming that the developer who wrote the hoe-ified rakefile
remembered to include information about where to find the new release.
That was my error.
I have now modified my rakefile to include the following lines …
task :checklist do
print "Did you double check the description? [y|N] "
response = gets
unless %r/y(es)?/i =~ response.strip
raise RuntimeError, “check the description”
end
print "Did you double check the version number? [y|N] "
unless %r/y(es)?/i =~ response.strip
raise RuntimeError, “check the version number”
end
print "Do people know where to download this file? [y|N] "
unless %r/y(es)?/i =~ response.strip
raise RuntimeError, “help out the end user”
end
print "Have you had enough coffe? [y|N] "
unless %r/y(es)?/i =~ response.strip
raise RuntimeError, “go to Peet’s”
end
end