Permalink
Browse files

Set up guard

  • Loading branch information...
1 parent cb9b838 commit 938c900abc7eb90f51414126889fcd5efe543802 @pengwynn pengwynn committed Apr 4, 2013
Showing with 19 additions and 0 deletions.
  1. +1 −0 Gemfile
  2. +18 −0 Guardfile
View
1 Gemfile
@@ -11,6 +11,7 @@ end
group :test do
gem 'coveralls', :require => false
+ gem 'guard-rspec'
gem 'json', '~> 1.7', :platforms => [:ruby_18, :jruby]
gem 'rspec', '>= 2.11'
gem 'simplecov', :require => false
View
18 Guardfile
@@ -0,0 +1,18 @@
+# A sample Guardfile
+# More info at https://github.com/guard/guard#readme
+guard 'rspec' do
+ watch(%r{^spec/.+_spec\.rb$})
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
+ watch('spec/spec_helper.rb') { "spec" }
+
+ notification :tmux,
+ :display_message => true,
+ :timeout => 5, # in seconds
+ :default_message_format => '%s // %s',
+ # the first %s will show the title, the second the message
+ # Alternately you can also configure *success_message_format*,
+ # *pending_message_format*, *failed_message_format*
+ :line_separator => ' > ', # since we are single line we need a separator
+ :color_location => 'status-left-fg' # to customize which tmux element will change color
+end
+

0 comments on commit 938c900

Please sign in to comment.