Created
July 21, 2010 18:32
-
-
Save dmerrick/484902 to your computer and use it in GitHub Desktop.
Use this to make autotest work with Growl.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # save this file as ~/.autotest | |
| # start autospec with ./script/autospec | |
| # you may need to install the "autotest" and "autotest-rails-pure" gems | |
| # if you have any issues getting this to work (like Growl notifications not appearing), | |
| # take a look at the README found here: http://github.com/svoop/autotest-growl | |
| begin | |
| require 'autotest/growl' | |
| rescue LoadError | |
| warn "Error loading autotest/growl. Run '[sudo] gem install autotest-growl' first." | |
| end | |
| begin | |
| require 'autotest/fsevent' | |
| rescue LoadError | |
| warn "Error loading autotest/fsevent. It switches autotest from constantly polling your hard drive to using OS X's event notification system. Cool!" | |
| warn "Run '[sudo] gem install autotest-fsevent' first." | |
| end | |
| # configuration options | |
| Autotest::Growl::show_modified_files = true | |
| #Autotest::Growl::sticky_failure_notifications = true | |
| #Autotest::Growl::clear_terminal = false | |
| Autotest::Growl::hide_label = true | |
| #Autotest::Growl::one_notification_per_run = true | |
| # this is a workaround for growl notifications not popping up | |
| Autotest::Growl::remote_notification = true | |
| # ignore changes to these files | |
| Autotest.add_hook :initialize do |at| | |
| %w{.git .svn .hg .DS_Store ._* log}.each {|exception|at.add_exception(exception)} | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment