-
Notifications
You must be signed in to change notification settings - Fork 7
/
Guardfile
28 lines (25 loc) · 884 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
# A sample Guardfile
# More info at https://github.com/guard/guard#readme
guard 'bundler' do
watch('Gemfile')
watch(%r{^.+\.gemspec$})
end
if RUBY_PLATFORM =~ /w32/i
guard 'rspec', :run_all => {:cli => '-f p'}, :all_after_pass => false do
watch(%r{^(spec/.+_spec\.rb)$}) { |m| "#{m[1]}" }
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { "spec" }
end
else
guard 'yard', :stdout => '/dev/null', :stderr => '/dev/null' do
watch(%r{lib/.+\.rb})
watch('README.md')
watch('LICENSE')
watch('.yardopts')
end
guard 'rspec', :rvm => ['1.9.2@channeladvisor', '1.9.3@channeladvisor'], :run_all => {:cli => '-f p'}, :all_after_pass => false do
watch(%r{^(spec/.+_spec\.rb)$}) { |m| "#{m[1]}" }
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { "spec" }
end
end