Ruby 1.9.2 发布 - Ruby 官方网站

Ruby 1.9.2 已经发布,这是 1.9 系列的最新版本。

关于 Ruby 1.9.2

Ruby 1.9.2 相对于 1.9.1 主要更新了:

  • 更多新的方法
  • 新的 socket API (IPv6的支持)
  • 新的编码
  • Random 类,支持各种随机数的生成
  • 修正时间的问题,不再有 2038 年的问题
  • 加强 regexp
  • $: 不再包含当前的目录
  • 基于 libffi 重新制作 dl
  • 包装 libyaml 的新 psych 函式库. 可以用来取代syck

详细参阅 新闻更新日志

Ruby 1.9.2 已经通过 RubySpec 99% 以上的测试。

支持的平台

Ruby 1.9 has four support levels.

支持
We verified that Ruby 1.9.2 works fine on it. And we can keep the 1.9.2 maintained on it.
  • Debian GNU/Linux 5.0 on IA32.
尽力支持
We verified that Ruby 1.9.2 works mostly fine on them. And I believe we can keep the 1.9.2 maintained on it.
  • mswin32, x64-mswin64, mingw32
  • MacOS X 10.5 (Intel) and 10.6
  • FreeBSD 6 and later (amd64, IA32)
  • Solaris 10
  • Symbian OS
可能支持
I think Ruby 1.9.2 works fine on them with small modification, however, it is not verified. Patch is welcome.
  • Other Linux distributions
  • Other versions of MacOS X.
  • cygwin
  • AIX 5
  • Other POSIX-compatible systems
  • BeOS (Haiku)
不支持
I do not think Ruby 1.9.2 works on them. Porting is welcome.
  • Any other systems

FAQ

The standard library is installed in /usr/local/lib/ruby/1.9.1
This version number is "library compatibility version". Ruby 1.9.2 is mostly compatible with the 1.9.1, so its library is installed in the directory.
It causes a LoadError
$: no longer includes the current directory. So some scripts need modification to work correctly. Anyway, your script should not depend on the current directory as well as possible.

下载