From 417b1d7a66f87fe3695af5612fbb0e732dc87ff7 Mon Sep 17 00:00:00 2001 From: nandahkrishna Date: Fri, 15 Jan 2021 15:46:24 +0530 Subject: [PATCH] dev-cmd/bump: use Livecheck::SkipConditions --- Library/Homebrew/dev-cmd/bump.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/dev-cmd/bump.rb b/Library/Homebrew/dev-cmd/bump.rb index bcbd3ea2d4..f53879603f 100644 --- a/Library/Homebrew/dev-cmd/bump.rb +++ b/Library/Homebrew/dev-cmd/bump.rb @@ -3,6 +3,7 @@ require "cli/parser" require "livecheck/livecheck" +require "livecheck/skip_conditions" module Homebrew extend T::Sig @@ -18,6 +19,8 @@ module Homebrew EOS flag "--limit=", description: "Limit number of package results returned." + + named_args :formula end end @@ -82,8 +85,8 @@ module Homebrew end def livecheck_result(formula) - skip_result = Livecheck.skip_conditions(formula, json: true, full_name: false, quiet: false).presence - if skip_result + skip_result = Livecheck::SkipConditions.skip_information(formula) + if skip_result.present? return "#{skip_result[:status]}#{" - #{skip_result[:messages].join(", ")}" if skip_result[:messages].present?}" end