aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorAdam Vandenberg2011-06-16 20:35:09 -0700
committerAdam Vandenberg2011-06-16 20:35:09 -0700
commitea35d749af5563ecc1c3941e5d75ea7afe5ebbd0 (patch)
tree218e2ad9b01969772c3c7ea4770e18015d6e037e /Library/Homebrew/cmd
parent00b7e07f45009ecb44f0323aa6f6d3d8732b8407 (diff)
downloadbrew-ea35d749af5563ecc1c3941e5d75ea7afe5ebbd0.tar.bz2
be more ruby-like
Diffstat (limited to 'Library/Homebrew/cmd')
-rwxr-xr-xLibrary/Homebrew/cmd/audit.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index d267c2ba3..9f4caa9a3 100755
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -158,11 +158,12 @@ end
def audit_formula_version f, text
# Version as defined in the DSL (or nil)
version_text = f.class.send('version').to_s
+
# Version as determined from the URL
version_url = Pathname.new(f.url).version
if version_url == version_text
- return [" * version "+version_text+" is redundant with version scanned from url"]
+ return [" * version #{version_text} is redundant with version scanned from url"]
end
return []