Guardfile in rspreadsheet-0.2.3 vs Guardfile in rspreadsheet-0.2.4
- old
+ new
@@ -1,11 +1,27 @@
-guard 'rspec' do
+def watch_all
# watch /lib/rspreadsheet/ files
watch(%r{^lib/rspreadsheet/(.+).rb$}) do |m|
"spec/#{m[1]}_spec.rb"
end
# watch /spec/ files
watch(%r{^spec/(.+).rb$}) do |m|
"spec/#{m[1]}.rb"
end
-end
+end
+
+# classical part
+scope group: :normal
+
+group :normal do
+ guard 'rspec' do watch_all end
+end
+
+# see http://stackoverflow.com/questions/18501471/guard-how-to-run-specific-tags-from-w-in-guards-console
+group :focus do
+ guard 'rspec', cli: '--tag focus' do watch_all end
+end
+
+#group :f do
+# guard 'rspec', cli: '--tag focus' do watch_all end
+#end
\ No newline at end of file