Permalink
Browse files

add minitest & puma guard support

  • Loading branch information...
1 parent 0f75ec5 commit 8714f73aba479b14ad81f65732889b29405fafe5 @drnic drnic committed Apr 4, 2012
Showing with 32 additions and 0 deletions.
  1. +2 −0 Gemfile
  2. +17 −0 Gemfile.lock
  3. +13 −0 Guardfile
View
@@ -18,4 +18,6 @@ if ENV['RACK_ENV'] != "production"
gem "foreman"
gem "puma"
gem "minitest"
+ gem "guard-puma"
+ gem "guard-minitest"
end
View
@@ -14,9 +14,22 @@ GEM
multi_json (~> 1.0)
arel (2.2.3)
builder (3.0.0)
+ ffi (1.0.11)
foreman (0.41.0)
thor (>= 0.13.6)
+ guard (1.0.1)
+ ffi (>= 0.5.0)
+ thor (~> 0.14.6)
+ guard-minitest (0.5.0)
+ guard (>= 0.4)
+ guard-puma (0.1.0)
+ guard (>= 1.0.1)
+ libnotify
+ puma
+ rb-inotify
i18n (0.6.0)
+ libnotify (0.7.2)
+ ffi (~> 1.0.0)
minitest (1.6.0)
multi_json (1.2.0)
mysql2 (0.3.11)
@@ -27,6 +40,8 @@ GEM
rack
rack-test (0.6.1)
rack (>= 1.0)
+ rb-inotify (0.8.8)
+ ffi (>= 0.5.0)
sinatra (1.3.2)
rack (~> 1.3, >= 1.3.6)
rack-protection (~> 1.2)
@@ -42,6 +57,8 @@ PLATFORMS
DEPENDENCIES
activerecord (= 3.1.3)
foreman
+ guard-minitest
+ guard-puma
minitest
mysql2 (= 0.3.11)
puma
View
@@ -0,0 +1,13 @@
+# A sample Guardfile
+# More info at https://github.com/guard/guard#readme
+
+guard 'puma' do
+ watch('Gemfile.lock')
+ watch(%r{^config|lib/.*})
+end
+
+guard 'minitest', :test_file_patterns => '*_test.rb' do
+ watch(%r|^test/(.*)_test\.rb|)
+ watch(%r{^api/(.*/)?([^/]+)\.rb$}) { |m| "test/api/#{m[1]}#{m[2]}_test.rb" }
+ watch(%r|^test/test_helper\.rb|) { "test" }
+end

0 comments on commit 8714f73

Please sign in to comment.