“rvm ruby​​gems current”vs“rvm update --system”vs“gem update ruby​​gems-update”

时间:2022-03-21 20:25:15

A bit confused about how to go about updating rubygems. Process keeps changing (or at least I get conflicting information from the interwebs).

关于如何更新rubygems有点困惑。流程不断变化(或者至少我从互联网上获得冲突的信息)。

$ gem outdated
rubygems-update (1.8.10 < 1.8.11)
sass (3.1.8 < 3.1.10)

$ rvm gemset use global
$ gem outdated 
rubygems-update (1.8.10 < 1.8.11)

Now, in the past I'd use rvm update --system to install the rubygems-update then switch back to my working gemset (from global) and upgrade the rest of the gems.

现在,在过去我会使用rvm update --system来安装rubygems-update,然后切换回我的工作gemset(来自全局)并升级其余的gem。

But, recently, I switched to using rvm rubygems current as per the RVM site but, as of this writing, rvm doesn't know about rubygems-update 1.8.11. So, what to do? Site says I could use rvm rubygems head but I'm a bit afraid (irrationally?) of grabbing the development branch.

但是,最近,我根据RVM站点切换到使用rvm ruby​​gems current,但在撰写本文时,rvm并不知道rubygems-update 1.8.11。那么该怎么办?网站说我可以使用rvm ruby​​gems头,但我有点害怕(非理性?)抓住开发分支。

Can someone who knows more about this than I chime in and either alleviate my fears or tell me how you approach rvm & rubygems when they fall out of sync...as it seems to be happening more an more...

有人能比我更了解这个并且要么减轻我的恐惧,要么告诉我当他们失去同步时你如何接近rvm&rubygems ...因为它似乎正在发生更多......

1 个解决方案

#1


14  

Update RVM to latest development version:

将RVM更新到最新的开发版本:

rvm get head

or to stable version:

或稳定版本:

rvm get stable

update rubygems to latest available:

将rubygems更新为最新版本:

rvm rubygems latest

or just a version:

或只是一个版本:

rvm rubygems 1.8.16

rubygems is installed per ruby not per gemset, so it is not possible to have different rubygems in different gemsets

rubygems是按照ruby安装的,而不是每个gemset,因此在不同的gemsets中不可能有不同的rubygems

#1


14  

Update RVM to latest development version:

将RVM更新到最新的开发版本:

rvm get head

or to stable version:

或稳定版本:

rvm get stable

update rubygems to latest available:

将rubygems更新为最新版本:

rvm rubygems latest

or just a version:

或只是一个版本:

rvm rubygems 1.8.16

rubygems is installed per ruby not per gemset, so it is not possible to have different rubygems in different gemsets

rubygems是按照ruby安装的,而不是每个gemset,因此在不同的gemsets中不可能有不同的rubygems