如何“安全地”将我的Ruby Gems升级到最新版本?

时间:2021-08-31 14:22:33

Is there any way that I can upgrade my Ruby Gems, and if it doesn't work (on what I'm upgrading them for), than rollback the changes?

有什么方法可以升级我的Ruby Gems,如果它不起作用(我正在升级它们),还是回滚更改?

2 个解决方案

#1


2  

You need install rubygems in other directory of your previous version. After you can change all link to rubygems to this new version.

您需要在以前版本的其他目录中安装rubygems。之后您可以将所有指向rubygems的链接更改为此新版本。

You can use too rvm. It's really simple and it's allways with latest rubygems. If you don't want it. just delete the .rvm directory.

你可以使用太rvm。它非常简单,并且最新的rubygems。如果你不想要它。只需删除.rvm目录。

#2


1  

Just upgrade RubyGems as normal, if it messes up, just download the last version and run sudo ruby setup.rb. http://rubygems.org/pages/download

只需正常升级RubyGems,如果它搞砸了,只需下载最新版本并运行sudo ruby​​ setup.rb即可。 http://rubygems.org/pages/download

If you do run into problems, the RubyGems team would love to hear about it: http://help.rubygems.org

如果您遇到问题,RubyGems团队很乐意听到它:http://help.rubygems.org

#1


2  

You need install rubygems in other directory of your previous version. After you can change all link to rubygems to this new version.

您需要在以前版本的其他目录中安装rubygems。之后您可以将所有指向rubygems的链接更改为此新版本。

You can use too rvm. It's really simple and it's allways with latest rubygems. If you don't want it. just delete the .rvm directory.

你可以使用太rvm。它非常简单,并且最新的rubygems。如果你不想要它。只需删除.rvm目录。

#2


1  

Just upgrade RubyGems as normal, if it messes up, just download the last version and run sudo ruby setup.rb. http://rubygems.org/pages/download

只需正常升级RubyGems,如果它搞砸了,只需下载最新版本并运行sudo ruby​​ setup.rb即可。 http://rubygems.org/pages/download

If you do run into problems, the RubyGems team would love to hear about it: http://help.rubygems.org

如果您遇到问题,RubyGems团队很乐意听到它:http://help.rubygems.org