There is my question: I wonder why using a RVM .gems (see http://beginrescueend.com/gemsets/initial/ to know what I’m tlaking about) in a Rails app while we use Gemfile to install our gems in our project?
I think that could be useful when deploying a project for the first time and ensure (eg.) bundler is installed before running (automatically?) a command like bundle install through the .rvmrc file.
I am right? Is there any use case I am missing?
In short, I want to know what is the interest of *.gems file?
Thanks in advance for all your help that will make me learn a lot 😉
Using
.gemsandGemfileis rather explicit, You need only one of them,.gemsfile is more useful for small projects or even for your preferred gems, mostly when there is not much dependencies, in contraryGemfilebrings strict dependency management ensuring you will always get proper versions of gems (assumingGemfile.lockis also used)There is good support for generating
.rvmrcin development version of rvm, it will detect if you have*.gemsorGemfileand include proper code likebundle installin.rvmrc:Review the new generated .rvmrc file and remove the parts that are not important for you.