Install a set of ruby gems via homebrew

Hello,

is there a way to install a whole set of ruby gems via one brew formula?

Say we want to install asciidoctor with a few ruby extensions.

Instead of installing asciidoctor via homebrew, and then fetching all extensions with a gem install I would like to create One Formula with asciidoctor as a dependency and then also install all gems at once.

All gems are contained within the install directory so adding it as a dependency won’t work. You could brew extract asciidoctor and maintain a copy in a personal tap that includes these other gems though.

1 Like