aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorDominyk Tiller2016-07-12 02:54:15 +0100
committerDominyk Tiller2016-07-13 04:55:59 +0100
commit706b06942f2ccedc1adfdea98d9306c22525eca3 (patch)
treeb056e3314971d2200cdb96974527abc8b88996bf /Library
parentbd4e24ae8f6db6ad6f0020352b0b8a15cb1c21e2 (diff)
downloadbrew-706b06942f2ccedc1adfdea98d9306c22525eca3.tar.bz2
audit: update ruby dependency advice
Closes #495. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/audit.rb10
1 files changed, 8 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index be4febc70..90c08fc4a 100644
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -363,10 +363,16 @@ class FormulaAuditor
problem "Don't use git as a dependency"
when "mercurial"
problem "Use `depends_on :hg` instead of `depends_on 'mercurial'`"
- when "ruby"
- problem "Don't use ruby as a dependency. We allow non-Homebrew ruby installations."
when "gfortran"
problem "Use `depends_on :fortran` instead of `depends_on 'gfortran'`"
+ when "ruby"
+ problem <<-EOS.undent
+ Don't use "ruby" as a dependency. If this formula requires a
+ minimum Ruby version not provided by the system you should
+ use the RubyRequirement:
+ depends_on :ruby => "1.8"
+ where "1.8" is the minimum version of Ruby required.
+ EOS
when "open-mpi", "mpich"
problem <<-EOS.undent
There are multiple conflicting ways to install MPI. Use an MPIRequirement: