forked from skoba/openehr-ruby
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathGuardfile
More file actions
22 lines (18 loc) · 736 Bytes
/
Guardfile
File metadata and controls
22 lines (18 loc) · 736 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
guard 'spork' do
watch('Gemfile')
watch('Gemfile.lock')
watch('spec/spec_helper.rb')
watch('feature/support/env.rb')
end
guard 'rspec', :cli => '--drb --color' do
watch(%r{^spec/.+_spec\.rb})
watch(%r{^lib/(.+)\.rb}) { |m| "spec/lib/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { "spec" }
watch(%r{^lib/open_ehr/parser/.+\.tt}) { "spec/lib/open_ehr/parser" }
end
guard 'cucumber', cli: '--drb --format progress' do
watch(%r{^features/.+\.feature$})
watch(%r{^features/support/.+$}) { 'features' }
watch(%r{^features/step_definitions/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'features' }
end
notification :libnotify, :timeout => 5, :transient => true, :append => false