I've just updated RVM, and in place of the old .rvmrc
, it auto-created .ruby-gemset
and .ruby-version
.
I've always had .rvmrc
files with contents like rvm use --create default@project_name
. However, .ruby-version
contains the specific Ruby version I'm running rather than default
. I'm hesitant to check this in.
Also, I heard someone say on a podcast that one shouldn't check in .ruby-gemset
because others may have their own preferences about how to name gemsets.
When should or shouldn't I check in .ruby-gemset
and/or .ruby-version
?
Specifically:
- What are some of the tradeoffs?
- How does the type of project affect the decision (for example, applications vs gems)?
- If they should be checked in, how does the type of project affect what should go in these files?
Citations from from the creators of tools like rvm, rbenv, etc would be appreciated in an answer.
question from:
https://stackoverflow.com/questions/16087120/should-i-check-in-ruby-gemset-and-or-ruby-version 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…