I have Rails application that I've cloned from github:
https://github.com/RailsApps/rails3-devise-rspec-cucumber
When I run bundle, a new gemset rails3-devise-rspec-cucumber is created.
Could you please explain, why that particular application forces
rvmto create a gemset, while any other application won't do it?How can I prevent application from creating a gemset and force it to use the
global gemset?
Thank you!
Take a look at the list of files in the repo you linked. You should see two files named
.ruby-versionand.ruby-gemset. The latter is what RVM is using to determine the gemset to be used.Personally, I wouldn't recommend changing the gemset simply because any gems that this application installs will essentially be contained to that one gemset, and will not affect any others (keeps things nice a tidy too).
However if you do wish to change this behaviour, you can either edit the
.ruby-gemsetfile and change therails3-devise-rspec-cucumberline toglobalinstead, or in your command line, simply dorvm gemset use global.Note that the latter solution is only temporary, and the moment you reload that directory, rvm will point right back to whatever gemset is indicated in the
.ruby-gemsetfile.