Permalink
Browse files

Guardfile

  • Loading branch information...
1 parent 2357c0f commit de8fe047701a87f9bb283ce8c7d3077e6d10002b @antono committed Apr 1, 2012
Showing with 49 additions and 0 deletions.
  1. +5 −0 Gemfile
  2. +20 −0 Gemfile.lock
  3. +24 −0 Guardfile
View
5 Gemfile
@@ -8,3 +8,8 @@ gem "pry-nav"
gem "rspec"
gem "aruba", :git => 'git://github.com/cucumber/aruba.git'
gem "simplecov"
+
+gem "guard"
+gem 'guard-rspec'
+gem 'guard-bundler'
+gem 'guard-ctags-bundler', git: 'git://github.com/antono/guard-ctags-bundler.git'
View
20 Gemfile.lock
@@ -1,4 +1,11 @@
GIT
+ remote: git://github.com/antono/guard-ctags-bundler.git
+ revision: 819284437cd2b98b219675bedf42f9aa36838096
+ specs:
+ guard-ctags-bundler (0.0.5)
+ guard (>= 0.4.0)
+
+GIT
remote: git://github.com/cucumber/aruba.git
revision: fabc92edc45bf42b5747a0937dd31511d4ab774a
specs:
@@ -25,6 +32,14 @@ GEM
ffi (1.0.11)
gherkin (2.9.0)
json (>= 1.4.6)
+ guard (1.0.1)
+ ffi (>= 0.5.0)
+ thor (~> 0.14.6)
+ guard-bundler (0.1.3)
+ bundler (>= 1.0.0)
+ guard (>= 0.2.2)
+ guard-rspec (0.7.0)
+ guard (>= 0.10.0)
json (1.6.5)
method_source (0.7.1)
multi_json (1.1.0)
@@ -49,12 +64,17 @@ GEM
simplecov-html (0.5.3)
slop (2.4.4)
term-ansicolor (1.0.7)
+ thor (0.14.6)
PLATFORMS
ruby
DEPENDENCIES
aruba!
+ guard
+ guard-bundler
+ guard-ctags-bundler!
+ guard-rspec
pry
pry-nav
rake
View
24 Guardfile
@@ -0,0 +1,24 @@
+# A sample Guardfile
+# More info at https://github.com/guard/guard#readme
+
+guard 'bundler' do
+ watch('Gemfile')
+ # Uncomment next line if Gemfile contain `gemspec' command
+ # watch(/^.+\.gemspec/)
+end
+
+guard 'ctags-bundler' do
+ watch(%r{^(app|lib|spec/support)/.*\.rb$}) { ["app", "lib", "spec/support"] }
+ watch('Gemfile.lock')
+end
+
+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{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
+ watch(%r{^lib/(.*)(\.erb|\.haml)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
+ watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
+end

0 comments on commit de8fe04

Please sign in to comment.