Homebrew's actually ended up using a fair few gems. While we want to avoid Bundler at runtime (and this PR still does that, in fact uses Bundler even less at runtime than it did before) writing our own version to use at build-time seems redundant.
Hbc.load
CaskLoader.load
Utils
Hbc.path
CaskLoader.path
brew cask search