guard/listen — pull request #160 by rymai (2013-11-01 23:36:31+00:00)
Title: Fixes the #silenced? method when "only" patterns are present

As soon as a path is matched against an "only" regexp, it's
not silenced, so it's silenced if it doesn't match any "only"
regexps.

If fixes the previous logic that was requiring a path to match
all "only" patterns in order to not be silenced, meaning that
it was silenced as soon as it didn't match an "only" regexp
(even if it matched another "only" regexp).

I think with this logic, the `only` option works well, no need for
`only_dirs` / `only_exts`, you can do it with regexps, .e.g.:

```ruby
only: [%r{^foo/}, /\.rb$/]
```

will match (with `Dir.pwd` being `/Users/remy/project`:

* `/Users/remy/project/foo/bar.txt` (`foo/` folder)
* `/Users/remy/project/bar.rb` (`.rb` extension)
* `/Users/remy/project/bar/foo.rb` (`.rb` extension)

will not match:

* `/Users/remy/project/bar/foo.txt` (no `foo/` folder, no `.rb` extension)
* `/Users/remy/project/bar.txt` (no `foo/` folder, no `.rb` extension)