Reputation: 267160
I used to use rvm and I want to start trying out rbenv.
From what I understand, rbenv does not have the same isolation built in when it comes to gems, it is only managing your ruby versions.
I know there is a rbenv addon that handles gems, but I dont' NEED to get it correct?
I can still download gems locally to my project and use bundle exec for each command?
Is there a short cut that I don't have to be so verbose when typing my commands?
Please explain the workflow as I dont' want to assume anything.
Update
I'm confused how to get the gems loaded into a separate folder.
Upvotes: 1
Views: 354
Reputation: 16727
Here's what I recommend:
rbenv
for multiple Ruby version management, no customizations needed
rbenv rehash
anymorervm
has a noticable load time on shell startup)Options to invoke bundler dynamically (I recommend the last one):
bundle exec
in front of every ruby executable
alias be='bundle exec'
bundle binstubs <LIST GEM EXECUTABLES YOU WANT>
for each project
bin/
in front of every ruby executable to call the binstubs.git/safe
bin/
folder while in that project rootbin/
anymoreNow multiple gem versions will all be installed into the same Ruby version bucket, and you let bundler dynamically add the right versions to the load path before every startup.
Upvotes: 2