Rename requirements named *Dependency.

Dependency is another similar, related class and it's super confusing
to have some Requirements that are named *Dependency.

Closes Homebrew/homebrew#38891.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Mike McQuaid 2015-06-15 09:56:04 +01:00
parent ef2689f51e
commit b0aec65942
2 changed files with 2 additions and 2 deletions

View file

@ -16,7 +16,7 @@ class Osxfuse < Formula
# A fairly heinous hack to workaround our dependency resolution getting upset
# See https://github.com/Homebrew/homebrew/issues/35073
depends_on ConflictsWithBinaryOsxfuse => :build
depends_on ::NonBinaryOsxfuseRequirement => :build
depends_on UnsignedKextRequirement => [ :cask => "osxfuse",
:download => "http://sourceforge.net/projects/osxfuse/files/" ]

View file

@ -18,7 +18,7 @@ class Ranger < Formula
def install
inreplace %w[ranger.py ranger/ext/rifle.py] do |s|
s.gsub! "#!/usr/bin/python", "#!#{PythonDependency.new.which_python}"
s.gsub! "#!/usr/bin/python", "#!#{PythonRequirement.new.which_python}"
end if MacOS.version <= :leopard
man1.install "doc/ranger.1"