Alternative Bundle install path
To install gems to somewhere other than your system repository (also, to stop bundler from attempting to
sudoanything), set an alternative install location using BUNDLE_PATH. This will install all required gems to that location. Additionally, set GEM_HOME in the environment. The difference is that GEM_HOME is where the gems are stored while BUNDLE_PATH is the location of the specific project data is stored.
References
- http://gembundler.com/v1.3/man/bundle-config.1.html