Upgrade to Pro — share decks privately, control downloads, hide ads and more …

December 2011 - Guarding Your Projects - Using ...

dallasruby
January 03, 2012

December 2011 - Guarding Your Projects - Using Guard

Guard is a command line tool that easily handles events on file modifications. The primary use for guard is to automatically run tests based on changes to source files, but because of its modular nature, it can do much more. We’ll quickly cover typical setup and use, as well as alternative uses, and maybe even write our own guard gem for fun.

About Morgan

Morgan Nelson is a software developer at getaroom.com. getaroom.com connects people to affordable hotel stays worldwide. Morgan has been working with Ruby since 2007, and loves automating everything he can.

Twitter: http://twitter.com/korishev

dallasruby

January 03, 2012
Tweet

More Decks by dallasruby

Other Decks in Programming

Transcript

  1. How a little paranoia makes everything better Morgan Nelson @korishev

    http://www.korishev.com December 6th, 2011 Dallas Ruby Brigade Guarding Your Projects Tuesday, December 6, 11
  2. Guard What is it? A software application that watches your

    filesystem for changes, and tells something else when it happens. Tuesday, December 6, 11
  3. Write programs that do one thing and do it well.

    Write programs to work together. Write programs to handle text streams, because that is a universal interface. -- Doug McIlroy Unix Philosophy Tuesday, December 6, 11
  4. Guard Installing Guard 1) gem install guard 2) gem install

    growl 3) gem install rb-fsevent Tuesday, December 6, 11
  5. 82 plugins at last count bundler rspec rails passenger pow

    Guard Plugins Tuesday, December 6, 11
  6. Live Code Demo In which nothing works In which the

    Internet dies In which the speaker can’t write simple ruby code Tuesday, December 6, 11
  7. Credits / References baby orangutan photo: http://www.zooborns.com/zooborns/2008/12/baby-orangutan-plays-hide-and- seek-at-the-phoenix-zoo.html <<== credits

    the Phoenix zoo, but I couldn’t find that image there. Windows 3.1 UI Photo: http://www.guidebookgallery.org/screenshots/win31 Unix Philosophy: http://en.wikipedia.org/w/index.php?title=Unix_philosophy&oldid=455977855 Morgan’s guard-template repo: git://github.com/korishev/guard-template.git Watchr can be found at: https://github.com/mynyml/watchr Guard can be found at: https://github.com/guard/guard Tuesday, December 6, 11