How to upgrade only one projects ruby interpreter with RVM? -


i want upgrade ruby i'm using on 1 project 1.8.7 1.9.3. however, still need 1.8.7 project not being upgraded. how can upgrade ruby using rvm , keep gemset in tact?

would rvm upgrade 1.9.3 1.8.7 way this? won't migrate every project using 1.8.7 1.9.3?


update:

it seems way rvm install 1.9.3 , migrating gems project so:

rvm gemset copy 1.8.7-p352@journal 1.9.3@journal 

i'm going try now

rvm supports multiple rubies @ once in sandbox, reason existence. result, it's not necessary upgrade 1.8.7 1.9.3. can use separate ruby version, and/or gemsets projects, or different paths, depending on how want set things up.

while can upgrade across 1.8.7 1.9.3, i'd recommend keeping 1.8.7 @ final release, , install separate version of 1.9.3 @ final release (currently p392), allowing easy testing between 2 compatibility. install ruby v2.0.0 also, and, updates come out, use rvm upgrade recent, deleting older versions see fit.

i think your:

rvm gemset copy 1.8.7-p352@journal 1.9.3@journal 

will work tell rvm install same gems in 1.9.3, or can install them scratch using process like:

  1. rvm use 1.8.7
  2. gem list | awk '{print $1}' > ./gem_list
  3. rvm install 1.9.3
  4. rvm use 1.9.3
  5. xargs gem install < ./gem_list

it's been while since i've done i'm going memory.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -