Australian Technology

Ruby 2.0 released

Takeaway: The first major Ruby release in half a decade is now available.

It has been five years since Ruby saw a major stable update, with Ruby 1.9 appearing in December 2007. But today, that streak is over with the release of Ruby 2.0.

As with any major language release, there are a number of new features. The language now supports keyword arguments that replace the argument hashing that used to appear throughout Ruby; an array literal, %i, has been introduced; and by default, Ruby’s encoding is now UTF-8. A more comprehensive list of new features and examples is now also available.

On the debugging side, DTrace is now supported, or if you want to debug the “ruby-way”, then TracePoint is available, too.

Documentation for the new release is improved, with 75 percent of the platform documented in rdoc, up from 60 percent in 1.9.3.

Five incompatibilities exist in Ruby 2.0 for 1.9 code, but it is noted that the switch from 1.9 to 2.0 should be easier than the 1.8 to 1.9 switch.

Tarballs can be downloaded from ruby-lang.org.

Get IT Tips, news, and reviews delivered directly to your inbox by subscribing to TechRepublic’s free newsletters.

Chris Duckett

About Chris Duckett

Programmer and journalist Chris Duckett is the Editor for TechRepublic Australia.

Chris Duckett

Chris Duckett
Chris started his journalistic adventure in 2006 as the Editor of Builder AU after originally joining the company as a programmer. He left CBS Interactive in 2010 to follow his deep desire to study the snowdrifts and culinary delights of Canada and returned to CBS in 2011 as the Editor of TechRepublic Australia, determined to meld together his programming and journalistic tendencies once and for all.
1
Comments

Join the conversation!

Follow via:
RSS
Email Alert