![]() ![]() The 'bundler' block does what you might guess - if your Gemfile is saved (yes touch is enough, a file CRC change is not required) bundle install is executed. Guard 'rspec', :version => 2, :cli => '-color -format doc' do This Guardfile has some examples that may work for you out of the box - here's mine with some modification and support for the other guarded files: # Guardfile which will generate a sample RSpec-themed Guardfile in the current directory. (There are Windows and Linux equivalents that I obviously have not had to install.)Īfter you have ran bundle install you can then run: #console Since Growl is Mac OS X the if test only installs those gems for the development profile on OS X. My Gemfile ended up looking like this: # Gemfile You can verify the installation by running growlnotify from Terminal, entering a message when prompted, then hitting Ctrl+D to post the message to Growl, and verifying that you see the message display on screen. You'll need to download and install the appropriate growlnotify CLI app for your version of Growl from the Growl downloads page - scroll down, its on there. ![]() Installing Growl is one of them, but you will also need a couple more gems in your Gemfile ( rb-fsevent for performance friendly polling of file system updates and growl which is the gem that interfaces with the CLI growlnotify). In order to see the Growl notifications you have to do several things. (You can configure where and how Growl displays its notifications in the Growl system prefs pane located under the "Other" category.) When you combine these two you will receive visual notifications that popup as your specs fail or pass without having to switch to the command line - and yes it only runs those that have changed. Growl is a visual notification tool popular on OS X. js, and of course watch for changes to *_spec.rb and their associated files among other things. You can use it to fire off CSS creation for Sass/Scss, compile. Guard is like autotest (part of ZenTest) except its a bit more of a multipurpose tool. Please note: unless building your own binary from source Growl 2.x is now a paid application.) If you are coming to Growl with a clean slate and have OSX 10.8 Mountain Lion or later have a look at terminal-notifier-guard first. (While this post is out of date in regards to recent versions of OSX which includes Notification Center some people on older versions of OSX or those requiring Growl may find the information useful.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |