简体   繁体   English

从红宝石1.8.7升级到1.9.2

[英]upgrade from ruby 1.8.7 to 1.9.2

I'm looking to upgrade my rails project from 1.8.7 to 1.9.2, but, when I swapped ruby versions in RVM, I had same issues getting the app started. 我希望将Rails项目从1.8.7升级到1.9.2,但是,当我在RVM中交换ruby版本时,在启动应用程序时遇到了同样的问题。 (mostly with mysql (which... 64bit mysql on mac (any version) is a pain to set up, and almost impossible))... (主要是mysql(在Mac上的64位mysql(任何版本)设置起来很麻烦,几乎是不可能的))...

But anyway, aside from mysql problems, is there anything I would need to change in my code that is no longer supported in 1.9.2? 但是无论如何,除了mysql问题外,我还需要更改1.9.2不再支持的代码吗?

There is way too many subtle changes to cover in something like SO, but this covers it quite well (I'm not involved in any way): 有太多微妙的更改无法涵盖在SO之类的东西中,但这覆盖得很好(我不参与任何工作):

http://www.rubyinside.com/19walkthrough/ http://www.rubyinside.com/19walkthrough/

Assuming you're using fairly standard Ruby there shouldn't be anything which will cause problems, but I'm sure your tests will point out anything that needs fixing. 假设您使用的是相当标准的Ruby,那么应该不会有任何会导致问题的东西,但是我敢肯定您的测试会指出任何需要修复的东西。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM