Ruby 1.9.2 RC1 Released; Final Release Due In August
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.
July 3, 2010 at 12:37 am
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.
July 3, 2010 at 6:53 am
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.
July 4, 2010 at 4:12 pm
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.
July 5, 2010 at 1:09 pm
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
July 5, 2010 at 1:36 pm
Martijn: 1.9.2 has been much more stable for me than 1.9.1 when running Rails, ever since the first preview release.
July 8, 2010 at 5:36 pm
@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.
July 12, 2010 at 1:53 pm
Can anyone tell me how I can get this installed on windows 7 ?
NOOB :-)
July 20, 2010 at 2:10 am
@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