aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-05-03 13:52:11 -0500
committerJack Nagel2014-05-03 13:52:11 -0500
commit85ef37a93213be1957efff9066d96a727a2c41db (patch)
tree09b0bad0aa81076bca9abae349ef67d920cd6f48 /Library
parent8f5ac2b7c2493f8b1238a80be71614dbd7c2ede8 (diff)
downloadhomebrew-85ef37a93213be1957efff9066d96a727a2c41db.tar.bz2
Fix some ruby warnings
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/fsh.rb2
-rw-r--r--Library/Formula/minidlna.rb3
-rw-r--r--Library/Formula/yaz.rb2
3 files changed, 3 insertions, 4 deletions
diff --git a/Library/Formula/fsh.rb b/Library/Formula/fsh.rb
index 7900f0bea..3c4d46bd7 100644
--- a/Library/Formula/fsh.rb
+++ b/Library/Formula/fsh.rb
@@ -19,7 +19,7 @@ class Fsh < Formula
if Formula['python'].installed?
inreplace ["fsh", "fshd", "in.fshd"],
"#! /usr/local/bin/python", "#!/usr/bin/env python"
- end
+ end
end
end
end
diff --git a/Library/Formula/minidlna.rb b/Library/Formula/minidlna.rb
index de0842b1c..250914235 100644
--- a/Library/Formula/minidlna.rb
+++ b/Library/Formula/minidlna.rb
@@ -27,8 +27,7 @@ class Minidlna < Formula
sample_config_path.write sample_config
end
- def caveats
- s = <<-EOS.undent
+ def caveats; <<-EOS.undent
Simple single-user configuration:
mkdir -p ~/.config/minidlna
diff --git a/Library/Formula/yaz.rb b/Library/Formula/yaz.rb
index ef4d28100..68ec225c3 100644
--- a/Library/Formula/yaz.rb
+++ b/Library/Formula/yaz.rb
@@ -26,7 +26,7 @@ class Yaz < Formula
# This test converts between MARC8, an obscure mostly-obsolete library
# text encoding supported by yaz-iconv, and UTF8.
test do
- marc8 = File.open("marc8.txt", "w") do |f|
+ File.open("marc8.txt", "w") do |f|
f.write "$1!0-!L,i$3i$si$Ki$Ai$O!+=(B"
end