質問

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.

役に立ちましたか?

解決

How about using RVM or RbEnv?

In this case, you will need to have each file in a separate folder with rvm/rbenv config.

他のヒント

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top