Skip to content

Commit

Permalink
bootstrap guard
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabe Kopley committed Feb 4, 2012
1 parent 81518b2 commit 2077a0f
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Gemfile
Expand Up @@ -34,4 +34,12 @@ group :development, :test do
gem 'database_cleaner'
gem 'email_spec'
gem 'capybara-webkit'
gem 'guard'
gem 'guard-spork'
gem 'guard-rspec'
gem 'guard-cucumber'
gem 'guard-bundler'
gem 'guard-migrate'
gem 'guard-rake'
gem 'libnotify'
end
29 changes: 29 additions & 0 deletions Gemfile.lock
Expand Up @@ -81,6 +81,25 @@ GEM
i18n (~> 0.4)
gherkin (2.7.6)
json (>= 1.4.6)
guard (1.0.0)
ffi (>= 0.5.0)
thor (~> 0.14.6)
guard-bundler (0.1.3)
bundler (>= 1.0.0)
guard (>= 0.2.2)
guard-cucumber (0.7.5)
cucumber (>= 0.10)
guard (>= 0.8.3)
guard-migrate (0.0.2)
guard (>= 0.2.2)
guard-rake (0.0.4)
guard
rake
guard-rspec (0.6.0)
guard (>= 0.10.0)
guard-spork (0.5.2)
guard (>= 0.10.0)
spork (>= 0.8.4)
haml (3.1.2)
haml-rails (0.3.4)
actionpack (~> 3.0)
Expand All @@ -99,6 +118,7 @@ GEM
json (1.5.3)
launchy (2.0.5)
addressable (~> 2.2.6)
libnotify (0.7.2)
libv8 (3.3.10.2)
mail (2.3.0)
i18n (>= 0.4.0)
Expand Down Expand Up @@ -184,6 +204,7 @@ GEM
rubyzip
sexp_processor (3.0.10)
slop (2.1.0)
spork (0.9.0)
sprockets (2.0.3)
hike (~> 1.2)
rack (~> 1.0)
Expand Down Expand Up @@ -216,11 +237,19 @@ DEPENDENCIES
email_spec
factory_girl
formtastic
guard
guard-bundler
guard-cucumber
guard-migrate
guard-rake
guard-rspec
guard-spork
haml
haml-rails
heroku
jquery-rails
json
libnotify
mongoid
mongoid-rspec
pry (~> 0.9.7)
Expand Down
21 changes: 21 additions & 0 deletions Guardfile
@@ -0,0 +1,21 @@
# A sample Guardfile
# More info at https://github.com/guard/guard#readme

# Updates bundles whenever the Gemfile or Gemfile.lock changes
guard 'bundler' do
watch('Gemfile')
watch('Gemfile.lock')
end

# Migrate the dev database when migrations exist
guard 'migrate' do
watch(%r{^db/migrate/(\d+).+\.rb})
end

# Runs rspec tests
guard 'rspec', :cli => "--drb --fail-fast", :all_on_start => false, :all_after_pass => false, :version => 2, :keep_failed => false do
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^spec(/.+)*.+_spec\.rb$})
watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
watch(%r{^app(/.+)*\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
end

0 comments on commit 2077a0f

Please sign in to comment.