In this case, you will need to have each file in a separate folder with rvm/rbenv config.
Maintaining multiple standalone ruby scripts on same machine
質問
I have one machine which runs multiple standalone ruby scripts. Every time I have to upgrade some gem for one of the scripts, I have to look for its impact on other scripts as well. Do you think it will be a good practice to create one gemfile each for a ruby script or can someone recommend me a better way to maintain such system? I also sometimes want to use different versions of the same gem in different scripts.
解決
他のヒント
I create independent gemset for each project to be sure that all be ok with gems and it's versions. RVM gives all the tools to manage gemsets.
So you will need to create a separate folder for each script with its own .ruby-gemset
in it.
所属していません StackOverflow