Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Gem Processor

Purpose

Installs Ruby dependencies from Gemfile files using Bundler.

How It Works

Discovers Gemfile files in the project, runs bundle install in each directory, and creates a stamp file on success. Sibling .rb and .gemspec files are tracked as inputs.

Source Files

  • Input: **/Gemfile (plus sibling .rb, .gemspec files)
  • Output: out/gem/{flat_name}.stamp

Configuration

[processor.gem]
bundler = "bundle"                     # The bundler command to run
command = "install"                    # The bundle subcommand to execute
args = []                              # Additional arguments to pass to bundler
extra_inputs = []                      # Additional files that trigger rebuilds when changed
cache_output_dir = true                # Cache the vendor/bundle directory for fast restore after clean
KeyTypeDefaultDescription
bundlerstring"bundle"The bundler executable to run
commandstring"install"The bundle subcommand to execute
argsstring[][]Extra arguments passed to bundler
extra_inputsstring[][]Extra files whose changes trigger rebuilds
cache_output_dirbooleantrueCache the vendor/bundle/ directory so rsconstruct clean && rsconstruct build restores from cache