Skip to content

Commit

Permalink
Set up guard
Browse files Browse the repository at this point in the history
  • Loading branch information
pengwynn committed Apr 7, 2013
1 parent cb9b838 commit 938c900
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Expand Up @@ -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
Expand Down
18 changes: 18 additions & 0 deletions 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.