Logo
Explore Help
Sign In
admin/brew
1
0
Fork 0
You've already forked brew
Code Issues Packages Projects Releases 6 Wiki Activity
brew/Library/Homebrew/compat/formula.rb

23 lines
456 B
Ruby
Raw Normal View History

Rename Formula#installed? to Formula#latest_version_installed? This naming has always been a bit weird and confusing so let's change it and provide a `compat` fallback for later deprecation.
2019-12-03 11:42:09 +00:00
# frozen_string_literal: true
class Formula
module Compat
def installed?
Update deprecations Add more deprecations, disable deprecations and remove disabled code.
2020-05-18 13:50:43 +01:00
odeprecated "Formula#installed?",
"Formula#latest_version_installed? (or Formula#any_version_installed? )"
Rename Formula#installed? to Formula#latest_version_installed? This naming has always been a bit weird and confusing so let's change it and provide a `compat` fallback for later deprecation.
2019-12-03 11:42:09 +00:00
latest_version_installed?
end
Update deprecations Add more deprecations, disable deprecations and remove disabled code.
2020-05-18 13:50:43 +01:00
def prepare_patches
if respond_to?(:patches)
active_spec.add_legacy_patches(patches)
odeprecated "patches", "patch do"
end
super
end
Rename Formula#installed? to Formula#latest_version_installed? This naming has always been a bit weird and confusing so let's change it and provide a `compat` fallback for later deprecation.
2019-12-03 11:42:09 +00:00
end
prepend Compat
end
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 533ms Template: 4ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API