Skip to content

Plugin for rbenv that adds basic gemset support

Notifications You must be signed in to change notification settings

edwinkcw/rbenv-gemset

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 

Repository files navigation

rbenv-gemset

rbenv-gemset is an extension for the rbenv ruby version manager that allows you to use "gemsets", sandboxed collections of gems. This lets you have multiple collections of gems installed in different sandboxes, and specify (on a per-application basis) which sets of gems should be used.

Installation

Homebrew

The easiest way to install (if you are on Mac OSX) is via the Homebrew package manager:

$ brew update
$ brew install rbenv-gemset

GitHub

Otherwise, clone rbenv-gemset to the $HOME/.rbenv/plugins directory:

$ mkdir -p ~/.rbenv/plugins
$ cd ~/.rbenv/plugins
$ git clone git://github.com/jamis/rbenv-gemset.git

Usage

In your application directory, create a file named .rbenv-gemsets and put the names of the gemsets you want to use in it, separated by whitespace. The first gemset in the list will be the primary gemset, where new gems will be installed.

$ echo my-gemset > .rbenv-gemsets

Now, all commands involving gems will use the gemsets you specified.

The gemset plugin will cause rbenv to search for the .rbenv-gemsets file in the current directory, as well as in all ancestor directories, so as long as there is an .rbenv-gemsets file at or above the current directory.

Alternatively, you can set the RBENV_GEMSET_FILE environment variable to the absolute path of the gemset file.

License

This code is placed in the public domain by the author, Jamis Buck. Use it as you wish. Please prefer good over evil.

About

Plugin for rbenv that adds basic gemset support

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%