Permalink
Browse files

Added guard.

  • Loading branch information...
1 parent ce34872 commit 0d9ce71808415c1e5969e045db21bdda337e841e @jnunemaker jnunemaker committed Oct 10, 2012
Showing with 21 additions and 0 deletions.
  1. +8 −0 Gemfile
  2. +13 −0 Guardfile
View
@@ -13,3 +13,11 @@ group(:test) do
gem 'rspec'
gem 'log_buddy'
end
+
+group(:guard) do
+ gem 'guard'
+ gem 'guard-rspec'
+ gem 'guard-bundler'
+ gem 'terminal-notifier-guard'
+ gem 'rb-fsevent'
+end
View
@@ -0,0 +1,13 @@
+# A sample Guardfile
+# More info at https://github.com/guard/guard#readme
+
+guard 'bundler' do
+ watch('Gemfile')
+ watch(/^.+\.gemspec/)
+end
+
+guard 'rspec' do
+ watch(%r{^spec/.+_spec\.rb$})
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
+ watch('spec/helper.rb') { "spec" }
+end

0 comments on commit 0d9ce71

Please sign in to comment.