由 XiaoBo Liu 发表于 2010-11-06
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.
下载
-
- <URL:https://cache.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p0.tar.bz2>
- SIZE
- 8495472 bytes
- MD5
- d8a02cadf57d2571cd4250e248ea7e4b
- SHA256
- e9710990ed8c2e794123aba509010471915fb13c27dae0118831d2001a9c8d3b
-
- <URL:https://cache.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p0.tar.gz>
- SIZE
- 10787899 bytes
- MD5
- 755aba44607c580fddc25e7c89260460
- SHA256
- 8c0c4e261a921b5c406bf9e76ac23bf3c915651534e9d1b9e8c5d0bee4a7285c
-
- <URL:https://cache.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p0.zip>
- SIZE
- 12159728 bytes
- MD5
- e57a393ccd62ddece4c63bd549d8cf7f
- SHA256
- e61521af06da71fde9f0c7c08baaf7415614d00c86ec5a7ab08b60a4f3185b2a