By default, bundler installs gems to the system gem store. However, it has an optional configuration setting to install gems into another directory (in your case vendor/bundle
). These gems are then only available in the specific bundler context.
You can force bundler to install the gems into the system gem store by running
bundle install --system
thus making them available to your global ruby installation.
This is necessary as bundler remembers certain options (e.g. the path where to install gems to) in the .bundle
directory besides your Gemfile
.