Bundler inline (Bundler v1.10 and later)

suggest change

Sometimes 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

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents