GithubHelp home page GithubHelp logo

rbenv-gemset's Introduction

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.

rbenv-gemset's People

Contributors

adammck avatar halorgium avatar jamis avatar joefiorini avatar raws avatar sometimesfood avatar sstephenson avatar tmc avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.