[RSS]

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:

http://wiki.netbeans.org/wiki/attach/RubyProjects/localgems.png

(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:

http://wiki.netbeans.org/wiki/attach/RubyProjects/remotegems.png

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.

http://wiki.netbeans.org/wiki/attach/RubyProjects/file-recognition.png

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.

http://wiki.netbeans.org/wiki/attach/RubyProjects/ruby-new-project.png

Here's how it looks in the Projects window:

http://wiki.netbeans.org/wiki/attach/RubyProjects/ruby-projects.png

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.)

http://wiki.netbeans.org/wiki/attach/RubyProjects/ruby-home.png

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.

http://wiki.netbeans.org/wiki/attach/RubyProjects/ruby-unittests.png

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.

http://wiki.netbeans.org/wiki/attach/RubyProjects/irb.png

Attachments

file-recognition.png Info on file-recognition.png 25425 bytes
irb.png Info on irb.png 45210 bytes
localgems.png Info on localgems.png 73019 bytes
remotegems.png Info on remotegems.png 94674 bytes
ruby-home.png Info on ruby-home.png 42081 bytes
ruby-new-project.png Info on ruby-new-project.png 82127 bytes
ruby-projects.png Info on ruby-projects.png 13418 bytes
ruby-unittests.png Info on ruby-unittests.png 27476 bytes