Ruby Weekly is a weekly newsletter covering the latest Ruby and Rails news.

Ruby 1.9.2 RC1 Released; Final Release Due In August

By Peter Cooper / July 2, 2010

Ruby 1.9.2 RC1 has just been released. This is a release candidate of Ruby 1.9.2. Ruby 1.9.2 will be mostly compatible with 1.9.1, except the following changes:

  • Many new methods
  • New socket API (IPv6 support)
  • New encodings
  • Random class that supports various random number generators
  • Time is reimplemented. There is no longer the year 2038 problem.
  • some regexp enhancements
  • $: no longer includes the current directory.
  • dl is reimplemented on top of libffi.
  • new psych library that wraps libyaml. You can use the library instead of syck.

Yuki (Yugui) Sonoda

Ruby 1.9.2's been slowly progressing through preview releases for a while now, so it's great to see it ramping up for a final production release in August. You can read Yugui's post here or see the NEWS file for RC1 which lists the changes from Ruby 1.9.1.

1.9.2 RC1 can be installed with one of the official archives or, more easily, with Wayne E Seguin's popular RVM tool. If you already have RVM installed, it's as simple as:

rvm update --head
rvm reload
rvm install 1.9.2

Don't go rushing to deploy this on all your production boxes just yet, though, and when you do, test all of your libraries against it. Segfaults have been quite common on the 1.9.2 previews with some libraries. I'm still sitting on Ruby 1.9.1p378 in production because it seems to be the most stable 1.9 release to date.

Comments

  1. Matt Haley says:

    Can't seem to figure out why the Ruby 1.9.2 takes twice as long to run rails tests. Everything else seems much faster than 1.8.7 though.

  2. Andrius Chamentauskas says:

    I was having the same problem with all 1.9 releases. It seems that loading tests/specs takes twice longer (although actual tests/specs run much faster). Never figured out what the problem was, so just used spork. Would be nice if someone knew how to bypass this.

  3. Martijn Storck says:

    I hope 1.9.2 will run Rails 3 properly.. 1.9.1 keeps segfaulting randomly when running my Rails 3 app. I'm not saying this is a Ruby-issue, but at least the segfaults don't seem to happen on 1.9.2 trunk.

  4. J-_-L says:

    I have written something about the new Array and Enumerable methods: http://rbjl.net/27-new-array-and-enumerable-methods-in-ruby-1-9-2-keep_if-chunk

  5. Benedict Eastaugh says:

    Martijn: 1.9.2 has been much more stable for me than 1.9.1 when running Rails, ever since the first preview release.

  6. Aaron Kalin says:

    @Martijn Ruby 1.9.1 is known to not work with Rails 3, you need to use 1.9.2 instead. This is noted in the 3.0 release notes listed here http://guides.rails.info/3_0_release_notes.html scroll down to the notice on which ruby version to run.

  7. bartee says:

    Can anyone tell me how I can get this installed on windows 7 ?

    NOOB :-)

  8. pete says:

    @bartee: The RubyInstaller project has a build of 1.9.2-rc1 for Windows on their rubyforge page: http://rubyforge.org/frs/?group_id=167

Other Posts to Enjoy

Twitter Mentions