简体   繁体   English

如何将Ruby应用程序1.8.7转换为1.9.2

[英]how to convert Ruby application 1.8.7 to 1.9.2

嗨,我在ruby中有一个应用程序,但是在使用ruby 1.8.7开发的应用程序中,现在我正在使用ruby 1.9.2,将我的应用程序1.8.2更改为1.9.2或1.9.3的任何可能性

Hope this tutorial is helpful to start working on upgrading your application to Ruby-1.9.3 希望本教程对开始将应用程序升级到Ruby-1.9.3有所帮助

He explained nicely how to upgrade from Ruby-1.8.7 to Ruby-1.9.3 他很好地解释了如何从Ruby-1.8.7升级到Ruby-1.9.3

Given that your rails app is using day-to-day ruby functions, upgrading to ruby 1.9 should not be an issue, however read this major changes note , from ruby 1.8 to 1.9.x and see if you are using any methods that are mentioned there. 鉴于您的Rails应用程序使用的是日常的ruby功能,升级到ruby 1.9应该不是问题,但是请阅读从ruby 1.8到1.9.x的主要更改说明 ,看看是否使用了提到的任何方法那里。 But practically in most cases your rails app should run without any modifications. 但是实际上,在大多数情况下,您的rails应用程序应无需任何修改即可运行。

And when you are installing ruby1.9.x use RVM (Ruby Version Manager) , to have your both ruby 1.8.7 and 1.9 versions side-by-side. 并且,当您安装ruby1.9.x时,请使用RVM(Ruby版本管理器) ,以同时使用ruby 1.8.7和1.9版本。

and if you have a good test suite, this should not be a problem at all :) 如果您有一个好的测试套件,那么这根本不是问题:)

best of luck 祝你好运

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

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