]> arthur.barton.de Git - homebrew-alex.git/commitdiff
identd: Fix "brew audit" offenses
authorAlexander Barton <alex@barton.de>
Fri, 15 Jan 2016 09:47:05 +0000 (10:47 +0100)
committerAlexander Barton <alex@barton.de>
Fri, 15 Jan 2016 09:47:05 +0000 (10:47 +0100)
C:  1:  9: Prefer double-quoted strings unless you need single quotes
           to avoid extra backslashes for escaping.
C:  4:  7: Prefer double-quoted strings unless you need single quotes
           to avoid extra backslashes for escaping.
C:  5: 11: Prefer double-quoted strings unless you need single quotes
           to avoid extra backslashes for escaping.
C:  6: 12: Prefer double-quoted strings unless you need single quotes
           to avoid extra backslashes for escaping.
C: 17:  7: Use %r around regular expression.
C: 19: 18: Prefer double-quoted strings unless you need single quotes
           to avoid extra backslashes for escaping.
C: 20: 18: Prefer double-quoted strings unless you need single quotes
           to avoid extra backslashes for escaping.

Signed-off-by: Alexander Barton <alex@barton.de>
Formula/identd.rb

index e7e4aff942c34c19e4131167c397d6f40eff5576..f9c8c94b561a5c33858092d08cd2e275d2d1b8d0 100644 (file)
@@ -1,9 +1,9 @@
-require 'formula'
+require "formula"
 
 class Identd < Formula
-  url 'http://rc.shaunrowland.com/git/identd.git', :using => :git
-  version '0.20120228'
-  homepage 'http://www.shaunrowland.com/fsync/2011/05/15/identd-for-mac-os-x/'
+  url "http://rc.shaunrowland.com/git/identd.git", :using => :git
+  version "0.20120228"
+  homepage "http://www.shaunrowland.com/fsync/2011/05/15/identd-for-mac-os-x/"
 
   def patches
     # manual page: remove "manual uninstall" description
@@ -14,10 +14,10 @@ class Identd < Formula
     inreplace "identd.xcodeproj/project.pbxproj",
       /CODE_SIGN_IDENTITY = \".*\"/, 'CODE_SIGN_IDENTITY=""'
     inreplace "identd/identd.8",
-      /\/usr\/local/, "#{HOMEBREW_PREFIX}"
+      %r{/usr/local}, "#{HOMEBREW_PREFIX}"
     system "xcodebuild -target identd -configuration Release"
-    sbin.install('build/Release/identd')
-    man8.install('identd/identd.8')
+    sbin.install("build/Release/identd")
+    man8.install("identd/identd.8")
   end
 end