-
Notifications
You must be signed in to change notification settings - Fork 0
/
Guardfile
29 lines (27 loc) · 949 Bytes
/
Guardfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
guard :process, name:'WebSockets', command:'ruby ./app/websockets.rb' do
watch('Gemfile.lock')
watch(%r{^app/(.+)\.rb$})
watch(%r{^ruby_js/(.+)\.rb$})
watch(%r{^models/(.+)\.rb$})
watch(%r{^view_models/(.+)\.rb$})
watch('config.ru')
end
guard :process, name:'Rack', command:'rackup' do
watch('Gemfile.lock')
watch(%r{^app/(.+)\.rb$})
watch(%r{^ruby_js/(.+)\.rb$})
watch(%r{^models/(.+)\.rb$})
watch(%r{^view_models/(.+)\.rb$})
watch('config.ru')
end
guard :rspec, cmd: 'rspec spec' do
watch(%r{^app/(.+)\.rb$}) { 'spec' }
watch(%r{^ruby_js/(.+)\.rb$}) { 'spec' }
watch(%r{^models/(.+)\.rb$}) { 'spec' }
watch(%r{^public/templates/(.+)\.html$}) { 'spec' }
watch(%r{^view_models/(.+)\.rb$}) { 'spec' }
watch(%r{^pages/(.+)\.html$}) { 'spec' }
watch(%r{^public/js/(.+)\.js$}) { 'spec' }
watch(%r{^spec/(.+)\.rb$}) { 'spec' }
watch('config.ru') { 'spec' }
end