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
|
end
|
||||||
|
|
||||||
def os_versions
|
def os_versions
|
||||||
|
# TODO: use #to_hash_with_variations instead once all casks use on_system blocks
|
||||||
@os_versions ||= begin
|
@os_versions ||= begin
|
||||||
version_os_hash = {}
|
version_os_hash = {}
|
||||||
actual_version = MacOS.full_version.to_s
|
actual_version = MacOS.full_version.to_s
|
||||||
|
|
||||||
MacOSVersions::SYMBOLS.each do |os_name, os_version|
|
MacOSVersions::SYMBOLS.each do |os_name, os_version|
|
||||||
MacOS.full_version = 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
|
version_os_hash[os_name] = cask.version if cask.version != version
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user