From 6714acc09809b3548960ee1d29d180e036348391 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sun, 15 Apr 2018 15:45:47 +0200 Subject: [PATCH] Add missing `MacOS.release` deprecation. --- Library/Homebrew/compat.rb | 1 + Library/Homebrew/compat/os/mac.rb | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 Library/Homebrew/compat/os/mac.rb diff --git a/Library/Homebrew/compat.rb b/Library/Homebrew/compat.rb index 8183861564..1f8d3871b9 100644 --- a/Library/Homebrew/compat.rb +++ b/Library/Homebrew/compat.rb @@ -8,3 +8,4 @@ require "compat/ENV/shared" require "compat/extend/string" require "compat/gpg" require "compat/dependable" +require "compat/os/mac" diff --git a/Library/Homebrew/compat/os/mac.rb b/Library/Homebrew/compat/os/mac.rb new file mode 100644 index 0000000000..6806fe900a --- /dev/null +++ b/Library/Homebrew/compat/os/mac.rb @@ -0,0 +1,10 @@ +module OS + module Mac + class << self + def release + odeprecated "MacOS.release", "MacOS.version" + version + end + end + end +end