Gem Support

There is a Gem Manager which lets you see which gems you have installed, and install new gems or update your existing gems.

When you open the Gem Manager from the Tools menu, you see your installed gems:

(These screenshots are old; I recently modified the UI to be similar to the IDE Plugin Manager. Note also that there is a Rails Plugin manager now, available from the Rails project context menu.)

If you click on install new, you see the gems available from the remote repository:

You can filter the list by typing in the filter box - any regular expression will do.

File Type Recognition

Ruby files are recognized in the file system, assigned some default actions, etc.

Project Support

A Ruby project type provides basic projects support: a logical project representation, built in execution using Ruby or Rake, run profiles, etc. Build errors are hyperlinked to editor source. Basic file skeletons for simple scripts, classes and modules are provided.

Here's how it looks in the Projects window:

You can configure the projects to execute with either JRuby (the builtin default), or any other Ruby installation on your system. Go to the Miscellaneous tab of the Options Panel and point to your Ruby and Rake binaries. (NOTE - there is a bug which currently blocks native Ruby output from working correctly in the Output window.)

Unit Tests

Ruby Unit tests are supported; there's is a new unit test template, and when executing unit tests failures are linked to the editor source.

IRB - Interactive Ruby Shell

You can open up an interactive IRB shell session from the Windows menu. The IRB window has lets you interact with JRuby directly. Use arrow keys for command history etc.

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo