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
|
def run_for? command
|
||||||
run_on = @options[:run_on]
|
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 = [run_on] unless run_on.respond_to?(:include?)
|
||||||
run_on.include?(command)
|
run_on.include?(command)
|
||||||
end
|
end
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
module Guard
|
module Guard
|
||||||
module RailsAssetsVersion
|
module RailsAssetsVersion
|
||||||
VERSION = "0.0.2"
|
VERSION = "0.0.3"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -14,7 +14,7 @@ describe Guard::RailsAssets do
|
|||||||
end
|
end
|
||||||
|
|
||||||
describe '#run_all' do
|
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
|
end
|
||||||
|
|
||||||
describe '#run_on_change' do
|
describe '#run_on_change' do
|
||||||
|
Loading…
Reference in New Issue
Block a user