Mountain Lion Notification after SASS compiling

I was tired of hitting refresh on my browser only to find out Compass/SASS CSS files had not yet been compiled.

To add a notification in Mountain Lion when your files are compiled, do the following:

  1. Install the terminal-notifier ruby gem, as instructed on their Github page.
  2. Git clone Notifompass into your /Library/Ruby/Gems/1.8/gems/ directory.
  3. In Terminal, navigate to /Library/Ruby/Gems/1.8/gems/Notifompass
  4. run sudo gem build notifompass.gemspec , this builds Notifompass into an installable gem file.
  5. Install the gem: sudo gem install --local notifompass-0.0.0.gem
  6. add the following in your Compass config.rb file, as instructed in the Notifompass read me file

EXCEPTIONS = [StandardError, ScriptError]

    require "notifompass"
    puts "You don't have notifompass gem installed."

        require "compass-growl"
    rescue *EXCEPTIONS
        puts "You don't have compass-growl installed either!"

Now, whenever your Compass/SASS files have compiled, you’ll be notified. Exciting stuff!