Skip to content

Commit

Permalink
do not run the guard for run_all command by default
Browse files Browse the repository at this point in the history
  • Loading branch information
dnagir committed Jul 8, 2011
1 parent be361b0 commit 744ef5e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/guard/rails-assets.rb
Expand Up @@ -38,7 +38,7 @@ def compile_assets

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
Expand Down
2 changes: 1 addition & 1 deletion lib/guard/version.rb
@@ -1,5 +1,5 @@
module Guard
module RailsAssetsVersion
VERSION = "0.0.2"
VERSION = "0.0.3"
end
end
2 changes: 1 addition & 1 deletion spec/guard/rails-assets_spec.rb
Expand Up @@ -14,7 +14,7 @@
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
Expand Down

0 comments on commit 744ef5e

Please sign in to comment.