2

I'm not sure if my workflow is off, or if I'm using rvm gemsets entirely wrong, but here's how I upgraded to the latest patch level in Ruby today [327].

Updated ruby via rvm install. Ran rvm upgrade and upgraded everything Selected yes, when asked during rvm upgrade to delete old ruby.

So, then I noticed that my .rvmrc files in my apps were trying to load the old gemset that now doesn't exist. I manually updated each .rvmrc file with the new gemset from the rvm upgrade.

All is well, but my questions:

  1. Should I have kept my prior version of ruby installed just in case?
  2. Is manually updating each .rvmrc the right thing to do?
  3. Should I be creating gemsets for each app, or should I really just use gemsets to manage ruby versions for different required environments?
4

1 回答 1

2

1-补丁并没有真正改变太多可能会意外破坏您的代码的东西。只保留主要版本。(1.8.7、1.9.2、1.9.3 等)

2-这种方式是最快和最简单的方式。它完美无瑕,真的没有任何问题。

3- 宝石有利于组织目的。我真的很喜欢每个项目,但我想我有点控制狂,所以我相信这是个人品味。

于 2012-11-19T16:15:07.050 回答