aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2022-08-05 02:21:21 +0200
committerTeddy Wing2022-08-05 02:21:21 +0200
commit6d86a59aedb08a0d24723984946d8ea76a3ccd3e (patch)
tree9ea18a041327efcd602d6dae407c10dfac0babfb
parent6123cd6bf7ecf1728c88dcce78a31cf6875e78d0 (diff)
downloadhomebrew-formulae-6d86a59aedb08a0d24723984946d8ea76a3ccd3e.tar.bz2
qcd: Correct `undent` and `brew audit` errors
Remove `undent` call, which apparently is no longer implemented according to this error message: Error: undefined method `undent' for #<String:0x000000014fd17590> Did you mean? undef indent indent! /opt/homebrew/Library/Taps/teddywing/homebrew-formulae/HomebrewFormula/qcd.rb:16:in `caveats' /opt/homebrew/Library/Homebrew/caveats.rb:23:in `caveats' /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/2.6.0/forwardable.rb:224:in `empty?' /opt/homebrew/Library/Homebrew/formula_installer.rb:777:in `caveats' /opt/homebrew/Library/Homebrew/formula_installer.rb:836:in `finish' /opt/homebrew/Library/Homebrew/upgrade.rb:209:in `install_formula' /opt/homebrew/Library/Homebrew/install.rb:327:in `install_formula' /opt/homebrew/Library/Homebrew/install.rb:317:in `block in install_formulae' /opt/homebrew/Library/Homebrew/install.rb:316:in `each' /opt/homebrew/Library/Homebrew/install.rb:316:in `install_formulae' /opt/homebrew/Library/Homebrew/cmd/install.rb:222:in `install' /opt/homebrew/Library/Homebrew/brew.rb:93:in `<main>' Also correct the following `brew audit` warnings: 16: col 16: Place the first line of a multi-line method definition's body on its own line. 25: col 1: `EOS` is not aligned with `def caveats; <<-EOS.undent`.
-rw-r--r--HomebrewFormula/qcd.rb13
1 files changed, 7 insertions, 6 deletions
diff --git a/HomebrewFormula/qcd.rb b/HomebrewFormula/qcd.rb
index e2316c6..7d12dac 100644
--- a/HomebrewFormula/qcd.rb
+++ b/HomebrewFormula/qcd.rb
@@ -13,15 +13,16 @@ class Qcd < Formula
bash_completion.install "qcd.bash-completion" => "qcd"
end
- def caveats; <<-EOS.undent
- qcd is a shell function, and must be sourced before it can be used.
- Add the following command to your bash profile:
+ def caveats
+ <<-EOS
+ qcd is a shell function, and must be sourced before it can be used.
+ Add the following command to your bash profile:
- source #{opt_prefix}/qcd
+ source #{opt_prefix}/qcd
- To enable tab completion, add the following to your bash profile:
+ To enable tab completion, add the following to your bash profile:
- source #{etc}/bash_completion.d/qcd
+ source #{etc}/bash_completion.d/qcd
EOS
end