From 1e867302891f04ba7857d86ea641315d2e1c8e4d Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 15 Jun 2015 09:56:04 +0100 Subject: 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 --- Library/Homebrew/cmd/audit.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Library/Homebrew/cmd') diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 10f2ab53f..e3e0166a2 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -275,7 +275,7 @@ class FormulaAuditor problem "Use `depends_on :fortran` instead of `depends_on 'gfortran'`" when "open-mpi", "mpich2" problem <<-EOS.undent - There are multiple conflicting ways to install MPI. Use an MPIDependency: + There are multiple conflicting ways to install MPI. Use an MPIRequirement: depends_on :mpi => [] Where is a comma delimited list that can include: :cc, :cxx, :f77, :f90 @@ -698,11 +698,11 @@ class FormulaAuditor problem "Define method #{$1.inspect} in the class body, not at the top-level" end - if line =~ /ENV.fortran/ && !formula.requirements.map(&:class).include?(FortranDependency) + if line =~ /ENV.fortran/ && !formula.requirements.map(&:class).include?(FortranRequirement) problem "Use `depends_on :fortran` instead of `ENV.fortran`" end - if line =~ /JAVA_HOME/i && !formula.requirements.map(&:class).include?(JavaDependency) + if line =~ /JAVA_HOME/i && !formula.requirements.map(&:class).include?(JavaRequirement) problem "Use `depends_on :java` to set JAVA_HOME" end -- cgit v1.2.3