do not run the guard for run_all command by default
This commit is contained in:
parent
be361b05a5
commit
744ef5ee23
@ -38,7 +38,7 @@ module Guard
|
||||
|
||||
def run_for? command
|
||||
run_on = @options[:run_on]
|
||||
run_on = [:start, :all, :change] if not run_on or run_on.empty?
|
||||
run_on = [:start, :change] if not run_on or run_on.empty?
|
||||
run_on = [run_on] unless run_on.respond_to?(:include?)
|
||||
run_on.include?(command)
|
||||
end
|
||||
|
@ -1,5 +1,5 @@
|
||||
module Guard
|
||||
module RailsAssetsVersion
|
||||
VERSION = "0.0.2"
|
||||
VERSION = "0.0.3"
|
||||
end
|
||||
end
|
||||
|
@ -14,7 +14,7 @@ describe Guard::RailsAssets do
|
||||
end
|
||||
|
||||
describe '#run_all' do
|
||||
it_behaves_like 'guard command', :command => :run_all, :run => true
|
||||
it_behaves_like 'guard command', :command => :run_all, :run => false
|
||||
end
|
||||
|
||||
describe '#run_on_change' do
|
||||
|
Loading…
Reference in New Issue
Block a user