I've just switched from years of development with RVM to rbenv and there is one aspect of rbenv that I can't seem to wrap my head around:
When I am working on multiple projects (each with their own dependencies) under the same version of Ruby and then stop working on one of the project how can I easily upgrade all of its dependencies from my gempath
(which is apparently /Users/meltemi/.rbenv/versions/2.1.4/lib/ruby/gems/2.1.0
)?
With RVM every project had a gemset
so it was easy to delete it.
With rbenv it would appear that every version of every gem goes into the same directory where bundler
can manage it. Great! But say I go through a bundle outdated
and bundle update
then bundle clean
cycle in ProjectA, won't that delete all the gems it doesn't recognize from ProjectB that I may need to work on later that day?
Or say I no longer want to work on ProjectA and want to delete the project and all gems associated with it?
Perhaps I'm approaching this the wrong way?!? Hoping someone can set me straight because everything else about rbenv seems simple & makes great sense!