Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added support for guard

  • Loading branch information...
commit b96754b46925c4753f5d95142d737b6737c69736 1 parent 5793233
@andypike authored
Showing with 32 additions and 0 deletions.
  1. +3 −0  Gemfile
  2. +10 −0 Gemfile.lock
  3. +19 −0 Guardfile
View
3  Gemfile
@@ -18,6 +18,9 @@ group :test, :development do
gem "rspec-rails", "~> 2.6"
gem 'steak'
gem "shoulda", "~> 3.0.1"
+ gem 'rb-fsevent', :require => false if RUBY_PLATFORM =~ /darwin/i
+ gem 'guard-rspec'
+ gem 'growl' # Requires the growlnotify cli. Is part of the Growl download inside Extras folder. Use 1.2.x for Snow Leapard or 1.3.x for Lion. See http://growl.info/extras.php
end
# To use Jbuilder templates for JSON
View
10 Gemfile.lock
@@ -54,6 +54,12 @@ GEM
execjs (1.3.1)
multi_json (~> 1.0)
ffi (1.0.11)
+ growl (1.0.3)
+ guard (1.0.2)
+ ffi (>= 0.5.0)
+ thor (~> 0.14.6)
+ guard-rspec (0.7.0)
+ guard (>= 0.10.0)
haml (3.1.4)
haml-rails (0.3.4)
actionpack (~> 3.0)
@@ -101,6 +107,7 @@ GEM
rdoc (~> 3.4)
thor (~> 0.14.6)
rake (0.9.2.2)
+ rb-fsevent (0.9.1)
rdoc (3.12)
json (~> 1.4)
rspec (2.9.0)
@@ -162,10 +169,13 @@ DEPENDENCIES
bcrypt-ruby (~> 3.0.0)
cancan
coffee-rails (~> 3.2.1)
+ growl
+ guard-rspec
haml-rails
jquery-rails
pg
rails (= 3.2.3)
+ rb-fsevent
rspec-rails (~> 2.6)
sass-rails (~> 3.2.3)
shoulda (~> 3.0.1)
View
19 Guardfile
@@ -0,0 +1,19 @@
+# A sample Guardfile
+# More info at https://github.com/guard/guard#readme
+
+guard 'rspec', :version => 2 do
+ watch(%r{^spec/.+_spec\.rb$})
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
+ watch('spec/spec_helper.rb') { "spec" }
+
+ # Rails example
+ watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
+ watch(%r{^app/(.*)(\.erb|\.haml)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
+ watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
+ watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
+ watch('config/routes.rb') { "spec/routing" }
+ watch('app/controllers/application_controller.rb') { "spec/controllers" }
+ # Capybara request specs
+ watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/requests/#{m[1]}_spec.rb" }
+end
+
Please sign in to comment.
Something went wrong with that request. Please try again.