Archive for June, 2009

RubyMine 1.1.1 with Subversion 1.6 support

Tuesday, June 30th, 2009

If you’ve been reading this blog, you surely know that we are actively working on many new features. We write about them in our ‘What’s mining’ posts. It is much more fun to develop new features, but we also care about fixing our old ones. So, here is RubyMine 1.1.1 which is a maintenance release with some fixes and minor additions.

Read the list of selected changes in RubyMine 1.1.1 below and download the update.

IDE General

All RubyMine’s version control integration features now work with Subversion 1.6.

Fixes and Improvements

  • Improved ‘Unresolved Ruby reference’, ‘Unreachable code’ and other Ruby/Rails inspections
  • Fixed some problems in ‘Extract Method’ and ‘Rename’ refactorings
  • Resolved some code completion issues and general code editor issues
  • Fixed exceptions in Gem manager
  • Fixed ‘Go To Test/Subject’ navigation for HAML views
  • Pressing # key converts selected ruby expression to “#{SELECTED_EXPRESSION}”
  • Fixed JRuby debug problem with ‘Step over’
  • ‘Tools | Rake Tasks’ no longer shows undocumented tasks. For undocumented tasks use ‘Tools | Run Rake Task’

Minor Additions

  • Added “Symbol to String” intention action
  • Eigenclasses are shown in Structure view
  • Argument completion and validation for helper_method
  • Added RSpec and Cucumber live templates/snippets ported from TextMate bundles

See the complete list of 70+ changes in our issue tracker.

Download RubyMine 1.1.1

Additionally, we have added patching ability to RubyMine. You’ll be able to install next update much easier.

-JetBrains RubyMine Team

What’s mining: unused local variable or parameter inspection

Wednesday, June 24th, 2009

Hello everyone,

RubyMine already has a bunch of inspections that help you on the fly to write correct and clean ruby code. They are Ruby code style, Unreachable code, Unresolved Ruby reference etc. Recently we’ve added one more useful inspection: Unused local variable.

Here is a screenshot:

This inspection will warn you about local variables or parameters which values are not used in the scope. Local variable on lines 2 and 5 are highlighted with warning because values assigned aren’t used anywhere, but local variable on line 7 isn’t because you can see read access to it’s value on line 8.

If you find some errors in its behavior or have suggestions you are welcome to file a bug or post your code on the forum. Thanks for all your reports so far! Your help is invaluable in making RubyMine the smartest Ruby IDE.

Note: You can also disable this inspection from right-click context menu or in File | Settings | Inspections | Ruby.

-JetBrains RubyMine Team

What’s mining: Polishing gems

Tuesday, June 23rd, 2009

I remember in some CRPGs I had used gems to improve a weapon or an armor. Ruby gems are somewhat similar — we pick good ones and use them in our projects to make them ‘killing’ :)

RubyMine needs to know of gems used in the code in order to provide you with the intelligent code analysis and coding assistance in general. So, we are constantly working on improving our gem manager, and a couple of new things has just been added.

1. Gem manager now lets you quickly see which of your gems are not up-to-date.

Just click ‘Update Gems’ button in gem manager

You will get the list of your project gems that you may want to update.

Turn off the ‘Show only attached gems’ option and you will see all gems that may need to be updated in your SDK. You can choose to update one, some or all gems.

2. Sometimes when opening a file you may notice a yellow notification about missing gems.

RubyMine detects some gems are not attached from lines of code such as gem 'foo'.

You can click the ‘Install…’ link and get the gems installed and attached to the project automatically.

These features will be available in RubyMine 1.2 and in RubyMine 1.5 EAP. Both should be released in the nearest future. Stay tuned!

Posted by Eugene Toporov, Marketing Manager

What’s mining: Ruby 1.9 support

Tuesday, June 16th, 2009

Hello folks, we are glad to announce that current development builds of RubyMine 1.5 support Ruby 1.9!

Of course you can use Ruby 1.9 as interpreter in RubyMine 1.1 and earlier versions but now RubyMine offers you brand new quality of understanding Ruby 1.9 code: new convenient lambda syntax, improved local variables semantics, new method parameters declarations and much more.

Here we have some screenshots for you:

  • You can choose Ruby language level for your project

  • RubyMine supports new lambda syntax, local variables semantics and much more.

As we have already mentioned this functionality will be available in RubyMine 1.5 Early Access Preview coming soon.

Stay in touch!

- Jetbrains RubyMine Team

Did you know? Searching for help…

Tuesday, June 2nd, 2009

Hello everyone,

If you are a newbie to RubyMine it is quite essential that you can feel a little bit lost in tons of its features. RubyMine ships built-in help to help you. Just go to Help | Help topic

It is the main screen:

Here you can take a short trip in all the features of RubyMine.
One can ask: and what about feature X? Of course it has search capabilities - just select the tab with magnifier on it and here it is.

In the following screenshot I’ve decided to look for Rails console functionality:

Also we provide RubyMine’s help on web, just visit http://www.jetbrains.com/ruby/webhelp

To boost your productivity with RubyMine we recommend you to take a look at Help | Tip of the Day and Help | Productivity Guide sections.

-JetBrains RubyMine team