
Not quite a mass replacement as I've used OS X and Mac OS X where describing specific older versions and added compatibility methods for things in the DSL.
17 lines
316 B
Ruby
17 lines
316 B
Ruby
require "requirement"
|
|
|
|
class MinimumMacOSRequirement < Requirement
|
|
fatal true
|
|
|
|
def initialize(tags)
|
|
@version = MacOS::Version.from_symbol(tags.first)
|
|
super
|
|
end
|
|
|
|
satisfy(build_env: false) { MacOS.version >= @version }
|
|
|
|
def message
|
|
"macOS #{@version.pretty_name} or newer is required."
|
|
end
|
|
end
|