First of all, I think it isn't a prohibited question on * since it's a precise question about environment, an objective question. But if it's prohibited, please tell me.
首先,我认为它不是*上的禁止问题,因为它是一个关于环境的精确问题,一个客观问题。但如果禁止,请告诉我。
Currently I'm developing a specific project that is using Ruby 1.9.3
and Rails 3.2.3
, at the moment we can't upgrade to Rails 4
because the project dependencies.
目前我正在开发一个使用Ruby 1.9.3和Rails 3.2.3的特定项目,目前我们无法升级到Rails 4,因为项目依赖性。
My question is:
Using Rails 3.2.3, we can upgrade to a newest Ruby version? If so, what version: Ruby 2.0, Ruby 2.1.2 or another one?
使用Rails 3.2.3,我们可以升级到最新的Ruby版本?如果是这样,什么版本:Ruby 2.0,Ruby 2.1.2还是其他版本?
Also, I searched on Google and * and I don't find a question like that.
此外,我搜索了谷歌和*,我没有找到这样的问题。
Thanks!
谢谢!
2 个解决方案
#1
27
The first release of rails that officially support ruby 2.0 was 3.2.13 (see the announcement on the rails blog.
正式支持ruby 2.0的第一个rails版本是3.2.13(参见rails blog上的公告。
I deployed several applications running 3.2.15-3.2.17 and ruby 2.0 (They've since been upgraded to rails 4) without any problems that I recall.
我部署了几个运行3.2.15-3.2.17和ruby 2.0的应用程序(它们已经升级到rails 4),没有任何我记得的问题。
The recently released 3.2.22 supports ruby 2.2
最近发布的3.2.22支持ruby 2.2
#2
2
According to the Travis configuration, Rails 3.2.3 was only tested with Ruby 1.8.7, 1.9.2 and 1.9.3, so it doesn't seem to be a good idea to use a later version of Ruby (but you can always test it yourself.) However, Rails 3.2.3 has some known security vulnerabilities that have been patched in 3.2.19.
根据Travis配置,Rails 3.2.3仅使用Ruby 1.8.7,1.9.2和1.9.3进行测试,因此使用更高版本的Ruby似乎不是一个好主意(但你总是可以自己测试。)但是,Rails 3.2.3有一些已知的安全漏洞,已在3.2.19中修补过。
On the other hand, the configuration for Rails 3.2.19 does suggest that the developers expect it to work with Ruby 2.0.0. Your project might benefit from investing some effort to see if you can upgrade from Rails 3.2.3 to 3.2.19, and test a combination of that with Ruby 2.0 for your application, if there are new Ruby features that you need and cannot efficiently backport them. Bear in mind that the only recent answer to a similar question warns of 'weird issues' from such a combination. Also consider that the latest Rails 3.2 release notes do not mention Ruby 2.0.
另一方面,Rails 3.2.19的配置确实表明开发人员希望它能与Ruby 2.0.0一起使用。您的项目可能会从投入一些努力中受益,看看您是否可以从Rails 3.2.3升级到3.2.19,并为您的应用程序测试Ruby 2.0的组合,如果您需要新的Ruby功能并且无法有效地向后移植他们。请记住,对类似问题的最近唯一答案是警告这种组合的“奇怪问题”。还要考虑最新的Rails 3.2发行说明中没有提到Ruby 2.0。
#1
27
The first release of rails that officially support ruby 2.0 was 3.2.13 (see the announcement on the rails blog.
正式支持ruby 2.0的第一个rails版本是3.2.13(参见rails blog上的公告。
I deployed several applications running 3.2.15-3.2.17 and ruby 2.0 (They've since been upgraded to rails 4) without any problems that I recall.
我部署了几个运行3.2.15-3.2.17和ruby 2.0的应用程序(它们已经升级到rails 4),没有任何我记得的问题。
The recently released 3.2.22 supports ruby 2.2
最近发布的3.2.22支持ruby 2.2
#2
2
According to the Travis configuration, Rails 3.2.3 was only tested with Ruby 1.8.7, 1.9.2 and 1.9.3, so it doesn't seem to be a good idea to use a later version of Ruby (but you can always test it yourself.) However, Rails 3.2.3 has some known security vulnerabilities that have been patched in 3.2.19.
根据Travis配置,Rails 3.2.3仅使用Ruby 1.8.7,1.9.2和1.9.3进行测试,因此使用更高版本的Ruby似乎不是一个好主意(但你总是可以自己测试。)但是,Rails 3.2.3有一些已知的安全漏洞,已在3.2.19中修补过。
On the other hand, the configuration for Rails 3.2.19 does suggest that the developers expect it to work with Ruby 2.0.0. Your project might benefit from investing some effort to see if you can upgrade from Rails 3.2.3 to 3.2.19, and test a combination of that with Ruby 2.0 for your application, if there are new Ruby features that you need and cannot efficiently backport them. Bear in mind that the only recent answer to a similar question warns of 'weird issues' from such a combination. Also consider that the latest Rails 3.2 release notes do not mention Ruby 2.0.
另一方面,Rails 3.2.19的配置确实表明开发人员希望它能与Ruby 2.0.0一起使用。您的项目可能会从投入一些努力中受益,看看您是否可以从Rails 3.2.3升级到3.2.19,并为您的应用程序测试Ruby 2.0的组合,如果您需要新的Ruby功能并且无法有效地向后移植他们。请记住,对类似问题的最近唯一答案是警告这种组合的“奇怪问题”。还要考虑最新的Rails 3.2发行说明中没有提到Ruby 2.0。