Merge pull request #13647 from hyuraku/cmd/info--cask--json=v2-handle-multiple-taps

check whether token is multiple tap's name
This commit is contained in:
Mike McQuaid 2022-08-08 13:52:01 +01:00 committed by GitHub
commit aee92fb143
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -90,13 +90,14 @@ module Cask
end
def os_versions
# TODO: use #to_hash_with_variations instead once all casks use on_system blocks
@os_versions ||= begin
version_os_hash = {}
actual_version = MacOS.full_version.to_s
MacOSVersions::SYMBOLS.each do |os_name, os_version|
MacOS.full_version = os_version
cask = CaskLoader.load(token)
cask = CaskLoader.load(full_name)
version_os_hash[os_name] = cask.version if cask.version != version
end