From 07eb24d2200335b350e9641f7dfea224c7d9c942 Mon Sep 17 00:00:00 2001 From: Douglas Eichelberger Date: Wed, 31 Jan 2024 19:55:13 -0800 Subject: [PATCH] Add missing SystemCommand::Mixin to update-sponsors --- Library/Homebrew/dev-cmd/update-sponsors.rb | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Library/Homebrew/dev-cmd/update-sponsors.rb b/Library/Homebrew/dev-cmd/update-sponsors.rb index 52d491764d..2c4c20d23c 100644 --- a/Library/Homebrew/dev-cmd/update-sponsors.rb +++ b/Library/Homebrew/dev-cmd/update-sponsors.rb @@ -3,15 +3,16 @@ require "cli/parser" require "utils/github" +require "system_command" module Homebrew - module_function + extend SystemCommand::Mixin NAMED_MONTHLY_AMOUNT = 100 URL_MONTHLY_AMOUNT = 1000 sig { returns(CLI::Parser) } - def update_sponsors_args + def self.update_sponsors_args Homebrew::CLI::Parser.new do description <<~EOS Update the list of GitHub Sponsors in the `Homebrew/brew` README. @@ -21,19 +22,19 @@ module Homebrew end end - def sponsor_name(sponsor) + def self.sponsor_name(sponsor) sponsor[:name] || sponsor[:login] end - def sponsor_logo(sponsor) + def self.sponsor_logo(sponsor) "https://github.com/#{sponsor[:login]}.png?size=64" end - def sponsor_url(sponsor) + def self.sponsor_url(sponsor) "https://github.com/#{sponsor[:login]}" end - def update_sponsors + def self.update_sponsors update_sponsors_args.parse named_sponsors = []