Update formula_creator.rb

This commit is contained in:
BingoKingo 2025-02-01 17:23:02 +08:00 committed by GitHub
parent cff9a565b6
commit e99034d8e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -202,14 +202,7 @@ module Homebrew
<% elsif @mode == :ruby %> <% elsif @mode == :ruby %>
ENV["GEM_HOME"] = libexec ENV["GEM_HOME"] = libexec
# Additional dependency from gem system "bundle", "install", "-without", "development", "test"
# 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", "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}"