Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/y-yagi/listen_monkey
https://github.com/y-yagi/listen_monkey
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/y-yagi/listen_monkey
- Owner: y-yagi
- License: mit
- Created: 2019-05-30T11:17:38.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-02T06:51:33.000Z (over 4 years ago)
- Last Synced: 2024-09-11T01:04:12.644Z (2 months ago)
- Language: Ruby
- Size: 12.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# listen\_monkey
This gem provides :monkey: patches for `listen` gem.
[![Gem Version](https://badge.fury.io/rb/listen_monkey.svg)](http://badge.fury.io/rb/listen_monkey)
[![Build Status](https://circleci.com/gh/y-yagi/listen_monkey.svg?style=svg)](https://circleci.com/gh/y-yagi/listen_monkey)### `:recursive` option
**CAUTION: This option works only in Linux.**
Allow to configure watch subdirectories or not. Default is `true`. If specify `false`, `listen` watches only specified a directory.
```ruby
listener = Listen.to("/path/to/dir", recursive: false) { puts "..." }.start
```