Rails 4.2.0 beta1 发布,此版本最值得注意的是添加了全新的 Active Job 框架及其集成。Active Job 是适配层的一些队列系统: Resque, Delayed Job, Sidekiq, 等等。同时还添加了一个改进项目:Adequate Record。Rails 4.2 beta1 还提供了一个 web 工作台,这是一个 IRB 工作台,可以在浏览器使用;在开发模式下,你可以前往 /console 开始工作。
其他更新:
Template digests are now automatically included when calculating
etags for caching. So caches are bust when the template changes. respond_with has moved out and into its own proper home with the responders gem.
Support for real foreign keys! add_foreign_key /remove_foreign_key are now available in migrations. A ton of bug fixes and minor improvements to Active Record. Added config.x.whatever.you_want = true for custom configuration of your app in config/environments/* , config/application.rb , and initializers. Added Rails::Application.config_for(:some_yaml) to load YAML configurations store in config/ easily.
更多内容请看发行说明。
Rails 4.2 正式版将会包括许多 bug 修复,稳定性改进和常规的安全更新。
Rails 5.0 计划支持 Ruby 2.2,当前计划在 2015 年的春天或者夏天发布。 |