formula_creator: Update Ruby template

Signed-off-by: Patrick Linnane <patrick@linnane.io>
This commit is contained in:
Patrick Linnane 2025-05-23 20:58:02 -07:00
parent f4375b0750
commit 5ee4e609ac
No known key found for this signature in database

View File

@ -216,11 +216,14 @@ module Homebrew
<% elsif @mode == :python %> <% elsif @mode == :python %>
virtualenv_install_with_resources virtualenv_install_with_resources
<% elsif @mode == :ruby %> <% elsif @mode == :ruby %>
ENV["BUNDLE_VERSION"] = "system" # Avoid installing Bundler into the keg
ENV["GEM_HOME"] = libexec 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", "build", "\#{name}.gemspec"
system "gem", "install", "\#{name}-\#{version}.gem" system "gem", "install", "\#{name}-\#{version}.gem"
bin.install libexec/"bin/\#{name}" bin.install libexec/"bin/\#{name}"
bin.env_script_all_files(libexec/"bin", GEM_HOME: ENV["GEM_HOME"]) bin.env_script_all_files(libexec/"bin", GEM_HOME: ENV["GEM_HOME"])
<% elsif @mode == :rust %> <% elsif @mode == :rust %>