Ruby Plugin 1.5 Release Notes

Features

Full features list

1.5 Changes

Version 1.5 of the Ruby plugin for IntelliJ IDEA includes the following new features and improvements.

Redesigned Project Configuration

Instead of separate module types for Ruby and Rails applications, the plugin now has a single Ruby module type, and Rails support is configured as a facet. This allows to support JRuby on Rails application, which are configured as Java modules with JRuby and Rails facets.

Projects created with previous versions of the plugin will be converted to the new configuration automatically.

For Rails projects, the plugin also allows to configure RSpec support automatically, by installing the RSpec on Rails plugin.

Configuring Ruby on Rails applications
Configuring JRuby and JRuby on Rails applications

Local Variable Type Inference

The plugin now performs type inference for local variables, and also allows to verify whether objects passed as method parameters support the set of messages expected by called methods.

[Configuring Ruby Code Analysis]

JRuby Support Improvements

The following new features for Java/Ruby integration have been implemented:

  • Support for alternative method naming (booleanValue -> boolean_value)
  • Support for Ruby-style getters and setters (setSize -> size=)
  • Support for import instead of include_class
  • For Ruby classes implementing Java interfaces, unimplemented methods are highlighted and a quickfix is available to add stubs for the missing methods

    to

  • The classes and dependencies of a Java module with a JRuby facet are now included in the classpath when running JRuby scripts in that module (Don't forget that in JRuby if top package is 'java', 'javax', 'org', 'com' you can use the direct way of referring to Java classes. For other top packages use 'Java::<package name>').

YAML Support

The plugin now supports syntax highlighting and error highlighting for YAML files, based on the JvYAML library by Ola Bini.

Smart Resolve and Completion for Rails Symbols

The plugin now understands the meaning of parameters of certain Rails methods (like link_to and render), and provides completion and navigation inside method parameters. The support is configured through Ruby code and can be extended by users of the plugin to support new versions of Rails, plugins for Rails or other frameworks.

Autocompletion for rails controllers, helpers and views was improved.

Load Path Configuration

The plugin now allows to specify additional directories, files from which will be parsed and included in resolve and completion suggestions.

Run Configuration Improvements

Environment variables can now be specified for Ruby processes started from IDEA. Also, for Rails run configurations, the desired environment (development/test/production) can be selected.

An action to run an arbitrary Rails script is now provided (Tools | ROR Plugin | Run Rails script...)

Ruby console filters were optimized and now they shouldn't slow down program output.

Labels

 
(None)