RubyGems Runtime
An alternative RubyGems loader that pulls in only the minimal components required at runtime, instead of the full RubyGems stack used during gem installation. Ideal for use with standalone bundles, allowing RubyGems to be disabled via --disable-gems while still providing essential runtime functionality.
Usage
-
Add
rubygems/runtimetoGemfile -
Use
bundle install --standalone, which generates a freestandingbundler/setup.rbthat doesn't depend on RubyGems or Bundler -
Disable RubyGems by either running the Ruby program via
ruby --disable-gemsor by adding--disable-gemstoRUBYOPT:ruby --disable-gems script/rails server
-or-
export RUBYOPT="--disable-gems" script/rails server
Alternate Usage (Simpler)
Add install-gems.sh from Bundler Standalone Improvements and use it to install gems, rather than invoking bundle directly.
License
The rubygems-runtime library is released under the MIT License