From f6e3b3b386601f916ec983bf8468742ded91cbaa Mon Sep 17 00:00:00 2001 From: Sam Bostock Date: Fri, 20 Jan 2023 21:03:16 -0500 Subject: [PATCH] Document `eval_gemfile` --- source/guides/gemfile.html.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/source/guides/gemfile.html.md b/source/guides/gemfile.html.md index 2ca4087340..6be04decae 100644 --- a/source/guides/gemfile.html.md +++ b/source/guides/gemfile.html.md @@ -165,3 +165,11 @@ ruby '1.9.3', :engine => 'jruby', :engine_version => '1.6.7' ~~~ Learn More: Ruby Directive + +In some cases, you may wish to split your gems across multiple files. To read the contents of one file from another, you can use `eval_gemfile`. + +~~~ruby +eval_gemfile 'another.gemfile' +~~~ + +This can be useful to run tests against multiple combinations of dependencies, or to load per-developer gems from an untracked gemfile.