RubyMine 2016.2 Help

Installing and Uninstalling Gems

RubyMine gem manager helps download and install Ruby gems under the local Ruby installation.

In this section:

Installing gems

To install Ruby gems

  1. Open the gem manager dialog box.
  2. In the Install Gems dialog box, select the desired gems in the list. For each gem, you can select its version to be installed. If the version is not defined, RubyMine will automatically take the latest one.
  3. If the desired gems are not found, you can look in a different repository. To do that, click Manage gem repositories button, in the Edit Gem Repositories URLs dialog box specify the desired URL, and click add. Back in the Gem Manager, click refresh to make visible all the gems, located in the specified repositories.
  4. Specify whether you need to install dependent gems automatically. Be default, this option is selected.
  5. Click Install.

Uninstalling gems

To uninstall gems, use command line procedure. So doing, the recommended command format depends on the Ruby gems version you use.

  • If the Ruby gems version is 1.3.2 and higher, it is enough to specify the gem name:

    gem uninstall <gem_name>.

  • If the Ruby gems version is under 1.3.2, use the following command:

    gem uninstall <gem_name> -i ~/.gem.

See Also

Language and Framework-Specific Guidelines:

Last modified: 1 September 2016