No release in over 3 years
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.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

 Project Readme

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

  1. Add rubygems/runtime to Gemfile

  2. Use bundle install --standalone, which generates a freestanding bundler/setup.rb that doesn't depend on RubyGems or Bundler

  3. Disable RubyGems by either running the Ruby program via ruby --disable-gems or by adding --disable-gems to RUBYOPT:

    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