More compact way to get livecheckable resources
This commit is contained in:
parent
f8320c89ed
commit
2d231a3478
2
.gitignore
vendored
2
.gitignore
vendored
@ -17,7 +17,7 @@
|
|||||||
/Library/Homebrew/test/junit
|
/Library/Homebrew/test/junit
|
||||||
/Library/Homebrew/test/fs_leak_log
|
/Library/Homebrew/test/fs_leak_log
|
||||||
/Library/Homebrew/vendor/portable-ruby
|
/Library/Homebrew/vendor/portable-ruby
|
||||||
/Library/Taps
|
#/Library/Taps
|
||||||
/Library/PinnedTaps
|
/Library/PinnedTaps
|
||||||
/Library/Homebrew/.byebug_history
|
/Library/Homebrew/.byebug_history
|
||||||
/Library/Homebrew/sorbet/rbi/hidden-definitions/errors.txt
|
/Library/Homebrew/sorbet/rbi/hidden-definitions/errors.txt
|
||||||
|
|||||||
4
.vscode/settings.json
vendored
4
.vscode/settings.json
vendored
@ -23,5 +23,7 @@
|
|||||||
"editor.codeActionsOnSave": {
|
"editor.codeActionsOnSave": {
|
||||||
"source.fixAll.shellcheck": true,
|
"source.fixAll.shellcheck": true,
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"git.mergeEditor": true,
|
||||||
|
"merge-conflict.autoNavigateNextConflict.enabled": true
|
||||||
}
|
}
|
||||||
|
|||||||
@ -70,8 +70,7 @@ module Homebrew
|
|||||||
casks = args.formula? ? [] : Cask::Caskroom.casks
|
casks = args.formula? ? [] : Cask::Caskroom.casks
|
||||||
formulae + casks
|
formulae + casks
|
||||||
elsif args.resources?
|
elsif args.resources?
|
||||||
formula_with_livecheckable_resources = Formula.all.select { |formula| formula.resources.any? { |resource| resource.livecheckable? } }
|
livecheckable_resources = Formula.all.map { |formula| formula.resources }.flatten.filter{ |resource| resource.livecheckable? }
|
||||||
livecheckable_resources = formula_with_livecheckable_resources.map { |formula| formula.resources }.flatten.filter{ |resource| resource.livecheckable? }
|
|
||||||
livecheckable_resources
|
livecheckable_resources
|
||||||
elsif args.all?
|
elsif args.all?
|
||||||
formulae = args.cask? ? [] : Formula.all
|
formulae = args.cask? ? [] : Formula.all
|
||||||
@ -121,6 +120,6 @@ module Homebrew
|
|||||||
verbose: args.verbose?,
|
verbose: args.verbose?,
|
||||||
}.compact
|
}.compact
|
||||||
|
|
||||||
# Livecheck.run_checks(formulae_and_casks_to_check, **options)
|
Livecheck.run_checks(formulae_and_casks_to_check, **options)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
1
Library/Taps/homebrew/homebrew-core
Submodule
1
Library/Taps/homebrew/homebrew-core
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 88b2623dd6ff0dec391029b1f43107438935f4b7
|
||||||
Loading…
x
Reference in New Issue
Block a user