MACOS_*VERSION: move to compat.

This commit is contained in:
Mike McQuaid 2017-11-05 15:40:46 +00:00
parent 603d6fd1f5
commit 195f77abb0
2 changed files with 5 additions and 3 deletions

View File

@ -1,5 +1,10 @@
require "development_tools"
if OS.mac?
MACOS_FULL_VERSION = OS::Mac.full_version.to_s.freeze
MACOS_VERSION = OS::Mac.version.to_s.freeze
end
module OS
module Mac
module_function

View File

@ -20,9 +20,6 @@ module OS
ISSUES_URL = "https://docs.brew.sh/Troubleshooting.html".freeze
end
PATH_OPEN = "/usr/bin/open".freeze
# compatibility
::MACOS_FULL_VERSION = OS::Mac.full_version.to_s.freeze
::MACOS_VERSION = OS::Mac.version.to_s.freeze
elsif OS.linux?
ISSUES_URL = "https://github.com/Linuxbrew/brew/wiki/troubleshooting".freeze
PATH_OPEN = "xdg-open".freeze