RubyMine 2016.2 Help

Ruby SDK and Gems

File | Settings | Ruby SDK and Gems

Use this page to configure Ruby interpreter and gems for a currently selected project.

In this section:

Projects pane

ProjectsThis pane displays the list of projects, opened in the same window. The first project in the list is the primary project.

Ruby SDKs pane

Ruby interpreterUse this drop-down list to select Ruby executable file to be used with the current project, from the list of Ruby SDKs, which have already been added to the project.

Please note the following:

  • RubyMine looks for the scripting gem (gem, or, in case of Ruby 1.9, gem19) in the same directory where the Ruby interpreter is located. If this gem is located in a different directory, an error message is displayed, suggesting to download and install gems for the specified SDK.
  • For *nix platforms, the list shows Ruby SDKs together with their gem sets. The name of a gem set is specified in square brackets next to the SDK name. Refer to RVM Support for details.
  • For non-*nix platforms, click the browse button to reveal the list of Ruby interpreters that are included in the PATH variable, but has not yet been added to your project.
Language levelUse this field to view the language level of the selected Ruby interpreter, or change it for JRuby.

For each new Ruby SDK, the language level is set to 2.1.

RVM Gemset

View the name of the selected gem set. Refer to RVM Support.

Ignore global gempath

Select this check box to use personal gem path only. If this check box is not selected, RubyMine will use both global and local gem paths. Refer to RVM Support.

addAlt+InsertClick this button to select the desired Ruby interpreter (ruby.exe in Windows environment, or ruby in Linux or OS X ) in the dialog that opens. The selected SDK will be added to the list of available Ruby SDKs.
deleteAlt+DeleteDelete the currently selected Ruby SDK with gemsets from the Settings. For the gemsets this button is disabled.
checkSpaceClick this button to switch the selected SDK or gemset off or on for the current project.

Ruby Gems pane

GemsThis section contains the list of gems used in the current project, and access to the Gem Manager. For each gem, the following information is displayed: version, authors, local gem root, email, homepage, and documentation.
Note RDoc syntax highlighting.
add Alt+Insert Click this button to open the gem manager for the gems in remote repositories, and install selected gems locally. Refer to the section Installing and Uninstalling Gems.
refresh Ctrl+F5 Click this button to open the gem manager for the locally installed or attached gems, and update selected gems to the desired version.

See Also

Last modified: 30 November 2016