Ruby 2.2.0-preview1 发布,此版本是 Ruby 2.2.0 的第一个预览版,包括许多新特性和改进,更多多样化改进和 Ruby 要求的提升。比如,Symbol GC 增加 Symbol 垃圾回收,降低 Symbols 的内存使用。Symbol GC 只支持 Ruby 2.2 及以上的版本。Rails 5.0 将要求 Symebol GC(详情请看 Rail 的博客)。
同时,新增量 GC 降低了垃圾回收的暂停时间,对运行 Rails 应用很有帮助。
值得关注的改进:
-
core libraries:
-
Enumerable#slice_after
-
Float#next_float, Float#prev_float
-
File.birthtime, File#birthtime
-
Support Unicode 7.0 #9092
-
New methods:
-
bundled libraries:
-
Update Psych 2.0.6
-
Update Rake 10.3.2+ (e47d0239)
-
Update RDoc 4.2.0.alpha (21b241a)
-
Update RubyGems 2.4.1+ (713ab65)
-
Update test-unit 3.0.1 (removed from repository but bundled in tarball)
-
Update minitest 5.4.1 (removed from repository but bundled in tarball)
-
Deprecate mathn
-
C API
-
Remove deprecated APIs
详细信息请看 NEWS in ruby repository(WIP) 。
此次更新包括 1239 个文件修改,98343 个插入和 61858 个移除。
下载
-
http://cache.ruby-lang.org/pub/ruby/2.2/ruby-2.2.0-preview1.tar.bz2
-
http://cache.ruby-lang.org/pub/ruby/2.2/ruby-2.2.0-preview1.tar.gz
-
http://cache.ruby-lang.org/pub/ruby/2.2/ruby-2.2.0-preview1.tar.xz
-
http://cache.ruby-lang.org/pub/ruby/2.2/ruby-2.2.0-preview1.zip
其他
更多更新内容请看ReleaseEngineering22。
重要文章阅读:Ruby入门--Linux/Windows下的安装、代码开发及Rails实战 http://www.linuxidc.com/Linux/2014-04/100242.htm
Ruby on rails初体验系列文章:
http://www.linuxidc.com/Linux/2014-04/100245.htm
http://www.linuxidc.com/Linux/2014-04/100246.htm
http://www.linuxidc.com/Linux/2014-04/100247.htm
Ubuntu下搭建Ruby On Rails http://www.linuxidc.com/Linux/2012-06/61981.htm
实测 Ubuntu 13.10 上搭建 Ruby on Rails http://www.linuxidc.com/Linux/2014-02/96399.htm
Ruby on Rails 4 Tutorial 中文版 高清完整PDF http://www.linuxidc.com/Linux/2014-04/100253.htm
本文永久更新链接地址:http://www.linuxidc.com/Linux/2014-09/106893.htm
