brew style --fix

This commit is contained in:
Nanda H Krishna 2023-02-06 13:48:18 -05:00
parent 82de05fc82
commit d9d6a74257
No known key found for this signature in database
GPG Key ID: 067E5FCD58ADF3AA
3 changed files with 5 additions and 5 deletions

View File

@ -72,8 +72,8 @@ SimpleCov.start do
require "rbconfig" require "rbconfig"
host_os = RbConfig::CONFIG["host_os"] host_os = RbConfig::CONFIG["host_os"]
add_filter %r{/os/mac} unless /darwin/.match?(host_os) add_filter %r{/os/mac} unless host_os.include?("darwin")
add_filter %r{/os/linux} unless /linux/.match?(host_os) add_filter %r{/os/linux} unless host_os.include?("linux")
# Add groups and the proper project name to the output. # Add groups and the proper project name to the output.
project_name "Homebrew" project_name "Homebrew"

View File

@ -44,8 +44,8 @@ module SystemConfig
return unless /-microsoft/i.match?(kernel) return unless /-microsoft/i.match?(kernel)
return "2 (Microsoft Store)" if Version.new(kernel[/Linux ([0-9.]*)-.*/, 1]) > Version.new("5.15") return "2 (Microsoft Store)" if Version.new(kernel[/Linux ([0-9.]*)-.*/, 1]) > Version.new("5.15")
return "2" if /-microsoft/.match?(kernel) return "2" if kernel.include?("-microsoft")
return "1" if /-Microsoft/.match?(kernel) return "1" if kernel.include?("-Microsoft")
end end
def dump_verbose_config(out = $stdout) def dump_verbose_config(out = $stdout)

View File

@ -49,7 +49,7 @@ module FormulaCellarChecks
python_modules = Pathname.glob lib/"python*/site-packages/**/*.so" python_modules = Pathname.glob lib/"python*/site-packages/**/*.so"
framework_links = python_modules.select do |obj| framework_links = python_modules.select do |obj|
dlls = obj.dynamically_linked_libraries dlls = obj.dynamically_linked_libraries
dlls.any? { |dll| /Python\.framework/.match dll } dlls.any? { |dll| dll.include?("Python.framework") }
end end
return if framework_links.empty? return if framework_links.empty?