From 85ef37a93213be1957efff9066d96a727a2c41db Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sat, 3 May 2014 13:52:11 -0500 Subject: Fix some ruby warnings --- Library/Formula/fsh.rb | 2 +- Library/Formula/minidlna.rb | 3 +-- Library/Formula/yaz.rb | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) (limited to 'Library/Formula') 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 -- cgit v1.2.3