guard-coffeescript 0.5.5 → 0.5.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -133,7 +133,7 @@ module Guard
133
133
 
134
134
  watchers.product(files).each do |watcher, file|
135
135
  if matches = file.match(watcher.pattern)
136
- target = matches[1] ? File.join(options[:output], File.dirname(matches[1])).gsub(/\/\.$/, '') : options[:output] || '.'
136
+ target = matches[1] ? File.join(options[:output], File.dirname(matches[1])).gsub(/\/\.$/, '') : options[:output] || File.dirname(file)
137
137
  if directories[target]
138
138
  directories[target] << file
139
139
  else