Bundler inline (Bundler v1.10 and later)
suggest changeSometimes you need a script for someone else, and you are not sure which gems are already installed. Bundler’s inline feature, available in Bundler v1.10 and later, handles that.
It provides a gemfile method. Before the rest of the script runs, that method downloads and requires the gems. A short example (true tells it to install missing gems):
require 'bundler/inline' # require only what you need
# Start Bundler and use the Gemfile syntax you already know
gemfile(true) do
source 'https://rubygems.org'
gem 'nokogiri', '~> 1.6.8.1'
gem 'ruby-graphviz'
end
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents