From 744ef5ee231bfd54c5c7d898b7384ff3d8b89eba Mon Sep 17 00:00:00 2001 From: Dmytrii Nagirniak Date: Fri, 8 Jul 2011 13:31:20 +1000 Subject: [PATCH] do not run the guard for run_all command by default --- lib/guard/rails-assets.rb | 2 +- lib/guard/version.rb | 2 +- spec/guard/rails-assets_spec.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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