compat/requirements: add odeprecated.

These can be enabled now Homebrew/homebrew-core has been fixed
(in https://github.com/Homebrew/homebrew-core/pull/32968).
This commit is contained in:
Mike McQuaid 2018-10-23 11:09:04 +01:00
parent fdd8e9b7cf
commit 5bea36799b
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70
2 changed files with 2 additions and 4 deletions

View File

@ -4,8 +4,7 @@ class X11Requirement < Requirement
module Compat
def initialize(tags = [])
if tags.first.to_s.match?(/(\d\.)+\d/)
# TODO: deprecate when Homebrew/homebrew-core is fixed.
# odeprecated('depends_on :x11 => "X.Y.Z"')
odeprecated('depends_on :x11 => "X.Y.Z"')
tags.shift
end

View File

@ -8,8 +8,7 @@ class XcodeRequirement < Requirement
else
tags.find do |tag|
next unless tag.to_s.match?(/(\d\.)+\d/)
# TODO: deprecate when Homebrew/homebrew-core is fixed.
# odeprecated('depends_on :xcode => [..., "X.Y.Z"]')
odeprecated('depends_on :xcode => [..., "X.Y.Z"]')
tags.delete(tag)
end
end