From 5ee4e609acf1011d82e4ddac3420b2769fb3f4cc Mon Sep 17 00:00:00 2001 From: Patrick Linnane Date: Fri, 23 May 2025 20:58:02 -0700 Subject: [PATCH] formula_creator: Update Ruby template Signed-off-by: Patrick Linnane --- Library/Homebrew/formula_creator.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/formula_creator.rb b/Library/Homebrew/formula_creator.rb index 6bd6b0fdde..2abb3fba64 100644 --- a/Library/Homebrew/formula_creator.rb +++ b/Library/Homebrew/formula_creator.rb @@ -216,11 +216,14 @@ module Homebrew <% elsif @mode == :python %> virtualenv_install_with_resources <% elsif @mode == :ruby %> + ENV["BUNDLE_VERSION"] = "system" # Avoid installing Bundler into the keg ENV["GEM_HOME"] = libexec - system "bundle", "install", "-without", "development", "test" + system "bundle", "config", "set", "without", "development", "test" + system "bundle", "install" system "gem", "build", "\#{name}.gemspec" system "gem", "install", "\#{name}-\#{version}.gem" + bin.install libexec/"bin/\#{name}" bin.env_script_all_files(libexec/"bin", GEM_HOME: ENV["GEM_HOME"]) <% elsif @mode == :rust %>