Ruby Plugin 2.0 Release Notes

Version 2.0 of the Ruby plugin requires IntelliJ IDEA 8.0, which is currently available as an Early Access Preview version.

Features

Full features list

2.0 Changes

The plugin code has been substantially rewritten compared to the IDEA 7 version, with major performance improvements and considerably better general understanding of Ruby code.

Debugger

Debugging Ruby and Rails applications and Rake tasks is now supported. The debugger supports the following features:

  • Works with Matz Ruby and JRuby interpreters
  • Breakpoints (in Ruby files and in view templates)
  • Step Over, Step Into, Step Out
  • Call stack
  • Local and global variables view
  • Watches
  • Threads
  • Expression evaluation
  • Smart display of arrays and hashes
  • Highlighting of recently modified values

Test Runner

The results of running Test::Unit and RSpec tests are now displayed in a nice visual UI. The test runner UI can also be used for Rake tasks which run these types of tests (for example, "rake test:unit" in a Rails application).

Ruby Language Support

  • Goto Super works in Ruby (Ctrl-U)
  • Goto Type Declaration works in Ruby (Ctrl-Shift-B)
  • Supertypes hierarchy for Ruby classes (Ctrl-H)
  • Previous/Next Method works in Ruby (Alt-Up/Down)
  • Correct filtering of static and instance members in autocompletion
  • Type inference for block variables within block calls
  • Inspection to detect incomplete hashes (with value missing after => )
  • Inspection to detect unreachable code

Rails Development

  • Navigation between model, controller, helper, unit/functional/spec tests (Go To | Navigate to Rails.., Alt-Shift-N)
  • Fields defined in migrations are now understood and shown in completion lists
  • Completion for find_by_* methods is provided
  • Completion and Resolving of methods defined by named routes and resource routes
  • Completion and Resolving of parameters for special Rails calls, such as render_to, url_for, etc (see full list).
  • Context toolbar for opening the corresponding page in a number of browsers in Rails views
  • View navigation actions suggest to create a view if none is found (Ctrl-Alt-W)
  • Lots of improvements for Rails-specific completion and resolve
  • Rails view improvements (for example: "Select In" (Alt-F1) now works correctly, DB fields under corresponding Model node)

RHTML Support

  • Much better support for embedded CSS in RHTML files
  • Surround With (Ctrl-Alt-T) can be used to surround a fragment of RHTML with an XML tag or with a Ruby control statement
  • Smart Enter (Ctrl-Shift-Enter) can be used in RHTML to insert the closing <% end %> tag for a control statement

JRuby Support

  • Auto-import of Java classes
  • Inspection to check for correct top-level packages

Labels