Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent polling just because the adapter gem was already required #118

Merged
merged 1 commit into from
May 28, 2013

Conversation

nilbus
Copy link
Contributor

@nilbus nilbus commented May 27, 2013

Listen::Adapter.load_dependend_adapter returns true even if already loaded. Otherwise, if (for example) gem "rb-fsevent" already appears in a Gemfile or some other gem requires the adapter_gem before we do, Listen will always fall back to polling.

Any thoughts on this approach of fixing the problem?

@coveralls
Copy link

Coverage Status

Coverage decreased (-0%) when pulling 968cbf5 on nilbus:already-required-gem-forces-polling into a6fd03e on guard:master.

Listen::Adapter.load_dependend_adapter returns true even if already
loaded.  Otherwise, if (for example) `gem "rb-fsevent"` already appears
in a Gemfile or some other gem requires the adapter_gem before we do,
Listen will always fall back to polling.
@coveralls
Copy link

Coverage Status

Coverage increased (+0%) when pulling 2402ea9 on nilbus:already-required-gem-forces-polling into a6fd03e on guard:master.

@thibaudgg
Copy link
Member

Nice thanks!

thibaudgg added a commit that referenced this pull request May 28, 2013
Prevent polling just because the adapter gem was already required
@thibaudgg thibaudgg merged commit 721646f into guard:master May 28, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants