guard / listen

The Listen gem listens to file modifications and notifies you about the changes.
https://rubygems.org/gems/listen
MIT License
1.91k stars 245 forks source link

Is `unpause` still valid? #550

Closed ls5302 closed 2 years ago

ls5302 commented 2 years ago

I'm using Listen 3.5.0, and calling the documented unpause method throws an exception. I've changed the code to use start and all appears well, but wanted to understand if unpause should work too. Searching for the unpause string in the Gem lib directory does not find anything. Not a big problem but maybe the documentation needs to be updated.

ColinDKelley commented 2 years ago

Hi @ls5302,

Thanks for reporting this. It looks like unpause was removed in favor of simply calling start again when you want to leave the paused state and return to processing_events. I'll make a quick PR to fix the documentation.

ColinDKelley commented 2 years ago

@ls5302 Look good? https://github.com/guard/listen/pull/551

ColinDKelley commented 2 years ago

Fixed in v3.7.1.