Merge pull request #20004 from Homebrew/formula-creator-ruby-rework

formula_creator: Update Ruby template
This commit is contained in:
Mike McQuaid 2025-05-26 07:41:51 +00:00 committed by GitHub
commit a2894caceb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 %>