哪个 Ruby on Rails 与哪个 Ruby 版本兼容? [英] Which Ruby on Rails is compatible with which Ruby version?

查看:46
本文介绍了哪个 Ruby on Rails 与哪个 Ruby 版本兼容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个旧的 2.1.1 Ruby on Rails 应用程序,系统已升级为使用 Ruby 1.8.7.原来用的是1.8.5左右.

I have an old 2.1.1 Ruby on Rails application, with the system upgraded to use Ruby 1.8.7. It originally used 1.8.5 or so.

出于性能原因,我想将其升级到 Ruby 1.9.x,也可能升级到更新的 Ruby on Rails.

I want to upgrade it to Ruby 1.9.x for performance reasons, and possibly to a newer Ruby on Rails as well.

我找不到任何简单的 Ruby 版本和 Ruby on Rails 版本之间的兼容性图表.

I cannot find any easy chart of compatibility between different Ruby versions and Ruby on Rails versions.

2.1.1 可以与 Ruby 1.9.x 一起使用吗?如果没有,我需要先升级到什么程度,我可能会遇到什么样的问题?我的应用程序对数据库层做了复杂的事情,但其余的相当简单.

Will 2.1.1 work with Ruby 1.9.x? If not, how far do I need to upgrade it first, and what kind of issues am I likely to encounter? My application does complicated things to database layer, but the rest is fairly straightforward.

推荐答案

这是一个老问题,但 Rails 针对某个 ruby​​ 版本进行测试这一事实很好地表明它应该适用于该版本的 ruby​​.

This is an old question, but the fact that rails is tested against a version of ruby is a good indication that it should work on that version of ruby.

自 2019 年 4 月 9 日起,Rails 的稳定分支使用 Buildkite 进行自动化测试,经过测试的 ruby​​ 版本列表,按 rails 分支,是:

Since 9th April 2019, stable branches of Rails use Buildkite for automated testing, and the list of tested ruby versions, by rails branch, is:

Rails 6.1

  • >= 2.5.0

Rails 6.0

  • >= 2.5.0

Rails 5.2

Rails 5.1

  • >= 2.2.2

Rails 5.0

  • >= 2.2.2

Rails 4.2

  • >= 1.9.3

Rails 4.1

  • >= 1.9.3

在 2019 年 4 月 9 日之前,Rails 3.0 之后的稳定分支使用 travis-ci 进行自动化测试,经过测试的 ruby​​ 版本列表,按 rails 分支,是:

Prior to 9th April 2019, stable branches of Rails since 3.0 use travis-ci for automated testing, and the list of tested ruby versions, by rails branch, is:

Rails 3.0

  • 1.8.7
  • 1.9.2
  • 1.9.3

Rails 3.1

  • 1.8.7
  • 1.9.2
  • 1.9.3

Rails 3.2

  • 1.8.7
  • 1.9.2
  • 1.9.3
  • 2.0.0
  • 2.1.8
  • 2.2.6
  • 2.3.3

Rails 4.0

  • 1.9.3
  • 2.0.0
  • 2.1
  • 2.2

Rails 4.1

  • 1.9.3
  • 2.0.0
  • 2.1
  • 2.2.4
  • 2.3.0

Rails 4.2

  • 1.9.3
  • 2.0.0-p648
  • 2.1.10
  • 2.2.10
  • 2.3.8
  • 2.4.5

Rails 5.0

  • 2.2.10
  • 2.3.8
  • 2.4.5

Rails 5.1

  • 2.2.10
  • 2.3.7
  • 2.4.4
  • 2.5.1

Rails 5.2

  • 2.2.10
  • 2.3.7
  • 2.4.4
  • 2.5.1

Rails 6.0

  • 2.5.3
  • 2.6.0

(来自 https://www.hmallett.co.uk/2018/08/ruby-and-ruby-on-rails-version-compatibility/)

这篇关于哪个 Ruby on Rails 与哪个 Ruby 版本兼容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆