forked from showbox-oss/ffmprb
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGuardfile
More file actions
24 lines (20 loc) · 658 Bytes
/
Guardfile
File metadata and controls
24 lines (20 loc) · 658 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
guard :rspec,
:cmd => 'bin/rspec',
:run_all => {:cmd => 'bin/rspec --profile'},
:all_after_pass => true,
:all_on_start => true,
:failed_mode => :focus do
watch(%r{^spec/.+_spec\.rb$})
watch(%r{^lib/([^/]+).+\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
watch('spec/spec_helper.rb') { 'spec' }
watch('.rspec') { 'spec' }
end
guard :bundler do
require 'guard/bundler'
require 'guard/bundler/verify'
helper = Guard::Bundler::Verify.new
files = ['Gemfile']
files += Dir['*.gemspec'] if files.any? { |f| helper.uses_gemspec?(f) }
# Assume files are symlinked from somewhere
files.each { |file| watch(helper.real_path(file)) }
end