macos_requirement: fix display of versions as array
This commit is contained in:
parent
9f458142b7
commit
4f330c5e19
@ -75,9 +75,15 @@ class MacOSRequirement < Requirement
|
|||||||
|
|
||||||
sig { returns(String) }
|
sig { returns(String) }
|
||||||
def display_s
|
def display_s
|
||||||
return "macOS" unless version_specified?
|
if version_specified?
|
||||||
|
if @version.respond_to?(:to_ary)
|
||||||
"macOS #{@comparator} #{@version}"
|
"macOS #{@comparator} #{version.join(" / ")}"
|
||||||
|
else
|
||||||
|
"macOS #{@comparator} #{@version}"
|
||||||
|
end
|
||||||
|
else
|
||||||
|
"macOS"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def to_json(*args)
|
def to_json(*args)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user