hughsk/vinyl-map — pull request #6 by martinraison (2014-07-24 22:15:00+00:00)
Title: check uses callback provided to flush instead of sending 'end' signal

I had an issue when using vinyl-map with gulp where the stream would end prematurely (i.e. only some of the files where being processed). I think I've found a fix: according to the [node.js stream doc](http://nodejs.org/docs/latest/api/stream.html#stream_transform_flush_callback, the flush), the `flush` function should not be sending the `end` signal directly, instead it should call the provided callback after the flush operation is complete (I guess the callback function eventually triggers the `end` signal, but not necessarily right away).

Thanks for the nice work!