Ruby rbenv-gemset

From wikinotes

Plugin for ruby rbenv that downloads/uses ruby gems within your project directory (to keep gem isolated from each other, and avoid version requirement conflicts).

Documentation

github https://github.com/jf/rbenv-gemset

Locations

${project}/.rbenv-gemsets file that informs where to download gems to (ex: .gems)

Install

brew install rbenv-gemset  # unavailable in macports!

Usage

Helper code

rbenv gemset init   # creates .rbenv-gemsets

Alternatively, you may manually

# write '.rbenv-gemset' file, which instructs rbenv
# where to download gems to
echo ".gems" > ~/yourproject/.rbenv-gemsets