cowboy/node-globule — pull request #11 by sterpe (2014-03-18 19:27:45+00:00)
Title: Fix issue with globbing exclusions against relative filepaths

So, was having an issue with grunt-contrib-watch not properly globbing the following exclusion:
````javascript
//Gruntfile.js
watch: {
js: {
files: [
'<%= yeoman.app %>/**/*.js',
'!**/node_modules/**'
],
tasks: ['dev']
}
},

yeoman: {
app: './app',
build: './.build',
dist: './dist'
}
````
Tracing the problem through grunt-contrib-watch -> gaze -> globule@1.0.0 reveals that neither globule@1.0.0 or @2.0.0 properly handles an exclusion glob when some relative filepath is used -- i.e., it is unable to differentiate between the following:
````
app/js/foo.js //returned from minimatch('**/js/**') in globule#processPatterns
./app/js/foo.js //the filepath that should be matched and excluded. (in results [])
````
This patch fixes the issue by using path.resolve to normalize to absolute paths when running a comparison against the exclusion. Next steps would be to file bug with gaze to update it's dependency and then grunt-contrib-watch to update gaze.

Unit tests of issue added as well.

Thanks