From f760ee27514d52438f0b97957e128c2857b7eb28 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 21 Mar 2014 20:07:56 -0500 Subject: [PATCH] audit: #{prefix}/Frameworks -> #{frameworks} --- Library/Homebrew/cmd/audit.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index 9d8286b8b0..3fafa7f114 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -378,8 +378,8 @@ class FormulaAuditor end # Prefer formula path shortcuts in Pathname+ - if line =~ %r{\(\s*(prefix\s*\+\s*(['"])(bin|include|libexec|lib|sbin|share)[/'"])} - problem "\"(#{$1}...#{$2})\" should be \"(#{$3}+...)\"" + if line =~ %r{\(\s*(prefix\s*\+\s*(['"])(bin|include|libexec|lib|sbin|share|Frameworks)[/'"])} + problem "\"(#{$1}...#{$2})\" should be \"(#{$3.downcase}+...)\"" end if line =~ %r[((man)\s*\+\s*(['"])(man[1-8])(['"]))] @@ -387,8 +387,8 @@ class FormulaAuditor end # Prefer formula path shortcuts in strings - if line =~ %r[(\#\{prefix\}/(bin|include|libexec|lib|sbin|share))] - problem "\"#{$1}\" should be \"\#{#{$2}}\"" + if line =~ %r[(\#\{prefix\}/(bin|include|libexec|lib|sbin|share|Frameworks))] + problem "\"#{$1}\" should be \"\#{#{$2.downcase}}\"" end if line =~ %r[((\#\{prefix\}/share/man/|\#\{man\}/)(man[1-8]))]