Handle removed author when rendering comments
[gitorious:mainline.git] / Guardfile
1 # A sample Guardfile
2 # More info at https://github.com/guard/guard#readme
3
4 guard :minitest, include: %w(. app app/presenters lib test), test_folders: %w(test/micro) do
5   watch(%r{^test/micro.*\.rb})
6   watch(%r{^test/fast_test_helper\.rb}) { "test/micro" }
7   watch(%r{^app/presenters/(.*)\.rb}) { |m| "test/micro/presenters/#{m[1]}_test.rb" }
8   watch(%r{^app/validators/(.*)\.rb}) { |m| "test/micro/validators/#{m[1]}_test.rb" }
9   watch(%r{^app/commands/(.*)\.rb}) { |m| "test/micro/commands/#{m[1]}_test.rb" }
10   watch(%r{^lib/(.*)\.rb}) { |m| "test/micro/#{m[1]}_test.rb" }
11 end
12
13 guard :minitest, zeus: true, include: %w(. app app/presenters lib test), 
14   test_folders: %w(test/unit test/functional test/integration) do
15   watch(%r{^test/test_helper\.rb}) { ['test/unit', 'test/functional', 'test/integration'] }
16   watch(%r{^test/.+_test\.rb})
17   watch(%r{^app/controllers/(.*)\.rb}) { |m| "test/functional/#{m[1]}_test.rb" }
18   watch(%r{^app/models/(.*)\.rb}) { |m| "test/unit/#{m[1]}_test.rb" }
19   watch(%r{^app/use_cases/(.*)\.rb}) { |m| "test/unit/use_cases/#{m[1]}_test.rb" }
20   watch(%r{^app/validators/(.*)\.rb}) { |m| "test/unit/validators/#{m[1]}_test.rb" }
21   watch(%r{^app/presenters/(.*)\.rb}) { |m| "test/unit/presenters/#{m[1]}_test.rb" }
22   watch(%r{^app/helpers/(.*)\.rb}) { |m| "test/unit/helpers/#{m[1]}_test.rb" }
23   watch(%r{^app/finders/(.*)\.rb}) { |m| "test/unit/finders/#{m[1]}_test.rb" }
24   watch(%r{^lib/(.*)\.rb}) { |m| "test/unit/lib/#{m[1]}_test.rb" }
25   watch(%r{^app/processors/(.*)\.rb}) { |m| "test/unit/processors/#{m[1]}_test.rb" }
26 end
27
28 guard 'ctags-bundler', :src_path => ["app", "lib", "test"] do
29   watch(/^(app|lib|test)\/.*\.rb$/)
30   watch('Gemfile.lock')
31 end