[英]Upgrading form Ruby 1.9.2 to 1.9.3, Should I re-install all gems?
I would like to avoid re-installing the gems if possible while doing the upgrade from 1.9.2 to 1.9.3. 我希望避免在从1.9.2升级到1.9.3时尽可能重新安装gem。 Is there an option as such while using RVM to manage ruby versions?
使用RVM管理ruby版本时是否有这样的选项?
you can run 你可以跑
rvm upgrade 1.9.2 1.9.3
this will: 这将:
the step with gem pristine
is required as there might be changes between rubies that would break stuff - especially that gem creators use internal ruby stuff. gem pristine
的步骤是必需的,因为可能会破坏东西的红宝石之间的变化 - 特别是宝石创作者使用内部红宝石的东西。
I don't think so. 我不这么认为。 The gems are installed on top of the specific version so I think you will need to reinstall.
宝石安装在特定版本的顶部,所以我认为你需要重新安装。 However with rails you should be able to just
bundle install
但是使用rails,你应该能够
bundle install
Best Practice will also to be to create a gemset at the root of your project. 最佳实践还将是在项目的根目录下创建gemset。
Here's mine: 这是我的:
$ cat .rvmrc
rvm use ruby-1.9.3-p125@my_local_app_name --create
Then when you cd into it it will set the ruby and rails versions for you. 然后当你进入它时,它会为你设置ruby和rails版本。 You will see a nice green status line showing you that, eg
你会看到一个很好的绿色状态行显示你,例如
Using /Users/durrantm/.rvm/gems/ruby-1.9.3-p125 with gemset dmworkflow
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.