diff --git a/lib/guard/rails-assets.rb b/lib/guard/rails-assets.rb index ab044ac..a0b2917 100644 --- a/lib/guard/rails-assets.rb +++ b/lib/guard/rails-assets.rb @@ -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 diff --git a/lib/guard/version.rb b/lib/guard/version.rb index cd374b8..21f158a 100644 --- a/lib/guard/version.rb +++ b/lib/guard/version.rb @@ -1,5 +1,5 @@ module Guard module RailsAssetsVersion - VERSION = "0.0.2" + VERSION = "0.0.3" end end diff --git a/spec/guard/rails-assets_spec.rb b/spec/guard/rails-assets_spec.rb index 67b14f5..de4e871 100644 --- a/spec/guard/rails-assets_spec.rb +++ b/spec/guard/rails-assets_spec.rb @@ -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