Guardfile in meroku-2.0.0 vs Guardfile in meroku-2.0.1
- old
+ new
@@ -14,15 +14,18 @@
# $ ln -s config/Guardfile .
#
# and, you'll have to watch "config/Guardfile" instead of "Guardfile"
guard :minitest do
+ watch(%r{^lib/*}) { 'test' }
+
# with Minitest::Unit
- watch(%r{^test/(.*)\/?test_(.*)\.rb$})
- watch(%r{^lib/(.*/)?([^/]+)\.rb$}) { |m| "test/#{m[1]}test_#{m[2]}.rb" }
- watch('lib/meroku.rb') { 'test/meroku_test.rb' }
- watch(%r{^test/test_helper\.rb$}) { 'test' }
+ #watch(%r{^test/(.*)\/?test_(.*)\.rb$})
+ #watch(%r{^test/(.*)})
+ #watch(%r{^lib/.*}) { |m| "test/#{m[1]}test_#{m[2]}.rb" }
+ #watch('lib/meroku.rb') { 'test/meroku_test.rb' }
+ #watch(%r{^test/test_helper\.rb$}) { 'test' }
# with Minitest::Spec
# watch(%r{^spec/(.*)_spec\.rb$})
# watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
# watch(%r{^spec/spec_helper\.rb$}) { 'spec' }
@@ -40,19 +43,5 @@
# watch(%r{^app/controllers/(.*)\.rb$}) { |m| "test/functional/#{m[1]}_test.rb" }
# watch(%r{^app/helpers/(.*)\.rb$}) { |m| "test/helpers/#{m[1]}_test.rb" }
# watch(%r{^app/models/(.*)\.rb$}) { |m| "test/unit/#{m[1]}_test.rb" }
end
-# Add files and commands to this file, like the example:
-# watch(%r{file/path}) { `command(s)` }
-#
-guard :shell do
-
- watch /.*/ do |m|
- m[0] + " has changed."
- end
-
- #watch /.*/ do |m|
- # #watch /(.*)/ do |m|
- # `meroku && echo 'guard-shell-SUCCESS'`
- #end
-end