Search code examples
rubybundlerrbenv

rbenv or bundler gemset sandboxing?


The rbenv documentation states that you can use the gemsets plugin to sandbox your gems if you aren't using bundler:

Manage gemsets. Bundler is a better way to manage application dependencies. If you have projects that are not yet using  Bundler you can install the rbenv-gemset plugin.

However, I am using bundler and when I switch between projects that have different gemsets I need to re-bundle. When I was using rvm, this was simple due to the .gemsets file.

Is there a sandboxing functionality in bundler that I am not aware of or have I misunderstood the documentation?


Solution

  • bundler uses the Gemfile and Gemfile.lock files in, in essense, to make a "gemset" for that particular project that you access via commands prefixed with bundle exec