guard-rake icon indicating copy to clipboard operation
guard-rake copied to clipboard

Fix multiple runs after multiple watcher invokations

Open leoc opened this issue 8 years ago • 0 comments

See #43

Given a guard config like this:

guard 'rake', task: 'load', run_on_start: false do
  watch(%r{.+})
end

Before the behavior was:

  • First change of watched file, task is executed once
  • Second change of watched file, task is executed twice simultaneously
  • Third change of watched file, task is executed thrice simultaneously

The expected new behavior is:

Task is executed once, at every change.

leoc avatar Dec 17 '17 11:12 leoc