guard / guard-bundler

Guard::Bundler automatically install/update your gem bundle when needed
https://rubygems.org/gems/guard-bundler
MIT License
117 stars 22 forks source link

Not working when directories set in Guardfile and Gemfile symlinked #29

Closed deivid-rodriguez closed 9 years ago

deivid-rodriguez commented 9 years ago

As per the title, it doesn't seem to work with the recommended configuration. It only refreshes the bundle if you watch the whole project.

I created an empty project where it can be reproduced. https://github.com/deivid-rodriguez/guard-bundler-bug

Thanks!

e2 commented 9 years ago

Yeah ... I just removed the bad example from the Readme.

You need to remove the whole guard :bundler section from the Guardfile and rerun guard init bundler. You'll see how the default template is a bit more complex (and handles symlinks better).

The new template tries to be smarter, but I can't make the old template "detect" that there's a new version which you should update. I think there's a Guard issue somewhere for detecting plugin version changes - but that will happen no sooner than Guard 3.x.

Thanks for reporting this - I'm looking for issues I can avoid/fix in Guard 3.x!

deivid-rodriguez commented 9 years ago

Thanks to you!