os/mac: fix version error for prerelease macOS

This commit is contained in:
Bo Anderson 2021-02-26 19:41:04 +00:00
parent 68ae267fba
commit 7a40f1bf0a
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65

View File

@ -25,7 +25,7 @@ module OS
# This can be compared to numerics, strings, or symbols
# using the standard Ruby Comparable methods.
def version
@version ||= Version.from_symbol(full_version.to_sym)
@version ||= full_version.strip_patch
end
# This can be compared to numerics, strings, or symbols