TIL about Bundler inline

Oliver Peate posted on December 13th, 2018

Bundler inline is really convenient for creating for self-contained Ruby examples & bug reproductions.

require "bundler/inline"

gemfile do
  gem "rspec"

require "rspec/autorun"

RSpec.describe "inline Bundler and autorun RSpec" do
  it "is convenient for self-contained examples & bug repros" do
    expect(true).to be true

# can be run directly: 
# ruby <file.rb>

What did you learn today?

Write a quick TIL post to reflect on what you've learned.

Write a post