compat/fails_with_llvm: cleanup style.

This commit is contained in:
Mike McQuaid 2016-07-16 22:15:04 +01:00
parent 369fc93479
commit bf13eb9b59

View File

@ -1,11 +1,9 @@
class Formula class Formula
def fails_with_llvm(_msg = nil, _data = nil) def fails_with_llvm(_msg = nil, _data = nil)
opoo "Calling fails_with_llvm in the install method is deprecated" odeprecated "Formula#fails_with_llvm in install"
puts "Use the fails_with DSL instead"
end end
def self.fails_with_llvm(msg = nil, data = {}) def self.fails_with_llvm(_msg = nil, _data = {})
data = msg if Hash === msg odeprecated "Formula.fails_with_llvm"
fails_with(:llvm) { build(data.delete(:build).to_i) }
end end
end end