InfoQ

News

New snapshot of Ruby 1.9, plans for 1.8.7 posted

Posted by Werner Schuster on Mar 03, 2008 09:00 AM

Community
Ruby
Topics
Scripting,
Dynamic Languages
Tags
Open Source Project Releases,
RubyGems
Two months after the 25th December 2007 release of Ruby 1.9, a new snapshot has just been released: Ruby 1.9.0-1, available at ftp://ftp.ruby-lang.org/pub/ruby/1.9/.

The release mostly contains bugfixes, but there are also a few changes any 1.9 adopter need to be aware of, as they change behavior:
* Enumerable#zip behavior reverted to 1.8 one. string
* Hash#flatten no longer work recursively.

Ruby creator Yukihiro Matsumoto ("Matz") clarifies the new behavior of Hash#flatten:
I mean
  {a: [:a,1], b: 2}.flatten
to give
  [:a, [:a, 1], :b, 2]
not
  [:a, :a, 1, :b, 2]
as it used to.
There are also a few notable additions, such as Proc#curry, recently discussed here at InfoQ. Other additions:
* Math.cbrt added.
* Math.{gamma,lgamma} added.
* import RubyGems r1601.
* Proc#curry added.
* Oniguruma 5.9.1
* added UTF-16,CP949,EUC-KR,GB12345,UCS-{2,4}{BE,LE},GBK,CP936,CP949, GB2312,UTF-7,BIG5,EUC-TW,GB18030,KOI8,KOI8-R,KOI8-U,Windows-1251 support.
Adopters of Ruby 1.9 can use  Multiruby to run tests on multiple Ruby versions to quickly determine changes in behavior.

While Ruby 1.9 development is moving ahead, the stable 1.8.x branch will still be maintained. Akinori Musha posted a schedule for the work on Ruby 1.8.7, the next stable release of the 1.8 branch. While the specific changes are still to be determined, the release date is aimed at late April 2008.

2 comments

Reply

Release date? by Anand Sharma Posted Mar 4, 2008 10:45 AM
Re: Release date? by Werner Schuster Posted Mar 4, 2008 11:59 AM
  1. Back to top

    Release date?

    Mar 4, 2008 10:45 AM by Anand Sharma

    You mean, April 2008? Anand

  2. Back to top

    Re: Release date?

    Mar 4, 2008 11:59 AM by Werner Schuster

    Thanks - it's updated to "April 2008" now

Exclusive Content

Tapestry for Nonbelievers

A new article by I. Drobiazko and R. Zubairov introduces v. 5 of the Apache Tapestry component-oriented web framework. The tutorial shows how to create a component and covers IoC in Tapestry and Ajax.

Pete Lacey on REST and Web Services

In this interview, Burton Group consultant Pete Lacey talks to Stefan Tilkov about his disillusionment with SOAP, his opinion on REST, and addresses some of the perceived shortcomings REST vs. WS-*.

Business Natural Languages Development in Ruby

Jay Fields presents his concept of Business Natural Languages - a type of Domain Specific Languages geared towards being readable by domain experts.

Distributed Version Control Systems: A Not-So-Quick Guide Through

Adoption and interest for Distributed Version Control Systems is constantly rising. We will introduce the concept of DVCS and have a look at 3 actors in the area: git, Mercurial and Bazaar.

Segundo Velasquez and Agile as Seen Through the Customer's Eyes

Deborah Hartmann interviewed Segundo Velasquez about his experience as customer with an Agile team during the initial phase of software design of a product.

Fine Grained Versioning with ClickOnce

David Cooksey shows how to fine grained versioning to a ClickOnce deployment using an HttpHandler written with ASP.NET, making partial rollouts to a test audience much easier.

Implementing Manual Activities in Windows Workflow

Windows workflow (WF) is an excellent framework for implementing business processes, but lacks support for human activities. This article describes a completely generic approach for changing this.

Markus Voelter about Software Architecture Documentation

In this interview taken during OOPSLA 2007, Markus Voelter talks about the importance of documenting the software architecture, and gives some good and also bad examples on how it could be done.