guard/guard — Issue #173: Cannot set the watch_all_modifications option
Author: sutherland
Created: 2011-10-28 02:36:19+00:00
State: open

In `Guard::Listener`, the `initialize()` method is attempting to set default options:

@watch_all_modifications = options.fetch(:watch_all_modifications, false)

The options hash is an instance of `Thor::CoreExt::HashWithIndifferentAccess`. This hash extension doesn't seem to support indifferent access for `fetch()`. Because the stored key is actually a string, this will always default to false.

This might be resolved with:

@watch_all_modifications = options[:watch_all_modifications] || false