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:
commit
aee92fb143
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user