Inline Bundling with Ruby
Ruby provides an option to have a script that executes and requires dependencies inline and bundle it on runtime, This is pretty impressive and allows for very complex scripts to be written and only require dependencies on run time
#! /usr/bin/env ruby
# frozen_string_literal: true
require 'bundler/inline'
gemfile true do
source 'https://rubygems.org'
gem 'debug', '~> 1.4'
end
# rest of code here
Last Updated: 24/06/2023
Published: 24/06/2023