Sha256: e8908c004b9b924dd7c354911984e306ae48b339fbf5c5030998db4d36beee6f
Contents?: true
Size: 419 Bytes
Versions: 23
Compression:
Stored size: 419 Bytes
Contents
# -*- ruby -*- # stolen (with permission) from http://www.snailbyte.com/2006/08/24/rails-autotest-growl-notification-using-dcop-and-knotify module Autotest::KDENotify def self.knotify title, msg system "dcop knotify default notify " + "eventname \'#{title}\' \'#{msg}\' '' '' 16 2" end Autotest.add_hook :red do |at| knotify "Tests failed", "#{at.files_to_test.size} tests failed" end end
Version data entries
23 entries across 23 versions & 3 rubygems