From cff9a565b68e6e32b3e9f1903b0507193fd5b87d Mon Sep 17 00:00:00 2001 From: BingoKingo <24961267+BingoKingo@users.noreply.github.com> Date: Thu, 30 Jan 2025 18:22:22 +0800 Subject: [PATCH] formula_creator.rb: add `bundle install` and additional dependency comment --- Library/Homebrew/formula_creator.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Library/Homebrew/formula_creator.rb b/Library/Homebrew/formula_creator.rb index a289121b27..3369cb4d7b 100644 --- a/Library/Homebrew/formula_creator.rb +++ b/Library/Homebrew/formula_creator.rb @@ -202,11 +202,14 @@ module Homebrew <% elsif @mode == :ruby %> ENV["GEM_HOME"] = libexec + # Additional dependency from gem # resources.each do |r| # system "gem", "install", r.cached_download, "--ignore-dependencies", # "--no-document", "--install-dir", libexec # end + 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}"