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.
Asked
Active
Viewed 92 times
2 Answers
0
In this case, you will need to have each file in a separate folder with rvm/rbenv config.

Denis Yagofarov
- 61
- 3
-
Thanks for your answer Denyago. I have considered using rvm and was writing gemfile for each script. but writing it one for each was little cumbersome. Thanks again – Arpit Bansal Aug 02 '13 at 10:46
0
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.

freemanoid
- 14,592
- 6
- 54
- 77
-
Thanks for your answer Freemanoid. I am going ahead with RVM now. – Arpit Bansal Aug 02 '13 at 10:47