From 6d86a59aedb08a0d24723984946d8ea76a3ccd3e Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Fri, 5 Aug 2022 02:21:21 +0200 Subject: 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 # 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 `
' 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`. --- HomebrewFormula/qcd.rb | 13 +++++++------ 1 file 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 -- cgit v1.2.3