From 8758edcd09aba3ac49f12b38a2420ac5532280f4 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Mon, 6 Jun 2011 10:01:46 -0400 Subject: [PATCH] ensure exact extension matches on some regexps --- lib/guard/jasmine-headless-webkit/templates/Guardfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/guard/jasmine-headless-webkit/templates/Guardfile b/lib/guard/jasmine-headless-webkit/templates/Guardfile index 6001f3e..56db978 100644 --- a/lib/guard/jasmine-headless-webkit/templates/Guardfile +++ b/lib/guard/jasmine-headless-webkit/templates/Guardfile @@ -7,9 +7,9 @@ spec_location = "spec/javascripts/%s_spec" # spec_location = "spec/javascripts/%sSpec" guard 'jasmine-headless-webkit' do - watch(%r{^app/views/.*\.jst}) - watch(%r{^public/javascripts/(.*)\.js}) { |m| newest_js_file(spec_location % m[1]) } - watch(%r{^app/assets/javascripts/(.*)\.(js|coffee)}) { |m| newest_js_file(spec_location % m[1]) } + watch(%r{^app/views/.*\.jst$}) + watch(%r{^public/javascripts/(.*)\.js$}) { |m| newest_js_file(spec_location % m[1]) } + watch(%r{^app/assets/javascripts/(.*)\.(js|coffee)$}) { |m| newest_js_file(spec_location % m[1]) } watch(%r{^spec/javascripts/(.*)_spec\..*}) { |m| newest_js_file(spec_location % m[1]) } end