diff --git a/Formula/p/packetbeat.rb b/Formula/p/packetbeat.rb index cc92918be0e7..3323ce238c8b 100644 --- a/Formula/p/packetbeat.rb +++ b/Formula/p/packetbeat.rb @@ -40,7 +40,7 @@ def install prefix.install "_meta/kibana" end - (bin/"packetbeat").write <<~EOS + (bin/"packetbeat").write <<~SH #!/bin/sh exec #{libexec}/bin/packetbeat \ --path.config #{etc}/packetbeat \ @@ -48,7 +48,7 @@ def install --path.home #{prefix} \ --path.logs #{var}/log/packetbeat \ "$@" - EOS + SH chmod 0555, bin/"packetbeat" # generate_completions_from_executable fails otherwise generate_completions_from_executable(bin/"packetbeat", "completion", shells: [:bash, :zsh]) diff --git a/Formula/p/pandoc-plot.rb b/Formula/p/pandoc-plot.rb index f8f6477507d5..4098a331f619 100644 --- a/Formula/p/pandoc-plot.rb +++ b/Formula/p/pandoc-plot.rb @@ -28,7 +28,7 @@ def install end test do - input_markdown_1 = <<~EOS + input_markdown_1 = <<~MARKDOWN # pandoc-plot demo ```{.graphviz} @@ -36,9 +36,9 @@ def install pandoc -> plot } ``` - EOS + MARKDOWN - input_markdown_2 = <<~EOS + input_markdown_2 = <<~MARKDOWN # repeat the same thing ```{.graphviz} @@ -46,18 +46,18 @@ def install pandoc -> plot } ``` - EOS + MARKDOWN output_html_1 = pipe_output("pandoc --filter #{bin}/pandoc-plot -f markdown -t html5", input_markdown_1) output_html_2 = pipe_output("pandoc --filter #{bin}/pandoc-plot -f markdown -t html5", input_markdown_2) filename = output_html_1.match(%r{(plots/[\da-z]+\.png)}i) - expected_html_2 = <<~EOS + expected_html_2 = <<~HTML
A package manager for humans. Cats should take a look at Tigerbrew.
- EOS + HTML assert_equal expected_html, pipe_output("#{bin}/pandoc -f markdown -t html5", input_markdown) end end diff --git a/Formula/p/pandocomatic.rb b/Formula/p/pandocomatic.rb index 1b1fcefd0395..d492664855d1 100644 --- a/Formula/p/pandocomatic.rb +++ b/Formula/p/pandocomatic.rb @@ -50,11 +50,11 @@ def install A package manager for humans. Cats should take a look at Tigerbrew. MARKDOWN - expected_html = <<~EOS + expected_html = <<~HTMLA package manager for humans. Cats should take a look at Tigerbrew.
- EOS + HTML system bin/"pandocomatic", "-i", "test.md", "-o", "test.html" assert_equal expected_html, (testpath/"test.html").read end diff --git a/Formula/p/php-cs-fixer.rb b/Formula/p/php-cs-fixer.rb index 10e0dfdff1fc..804a0c04f059 100644 --- a/Formula/p/php-cs-fixer.rb +++ b/Formula/p/php-cs-fixer.rb @@ -15,10 +15,10 @@ class PhpCsFixer < Formula def install libexec.install "php-cs-fixer.phar" - (bin/"php-cs-fixer").write <<~EOS + (bin/"php-cs-fixer").write <<~PHP #!#{Formula["php@8.3"].opt_bin}/php &1", 1) end diff --git a/Formula/s/solidity.rb b/Formula/s/solidity.rb index 3b31e2d9941b..c200295176f6 100644 --- a/Formula/s/solidity.rb +++ b/Formula/s/solidity.rb @@ -48,7 +48,7 @@ def install end test do - (testpath/"hello.sol").write <<~EOS + (testpath/"hello.sol").write <<~SOLIDITY // SPDX-License-Identifier: GPL-3.0 pragma solidity ^0.8.0; contract HelloWorld { @@ -56,7 +56,7 @@ def install return "Hello, World!"; } } - EOS + SOLIDITY output = shell_output("#{bin}/solc --bin hello.sol") assert_match "hello.sol:HelloWorld", output diff --git a/Formula/s/statix.rb b/Formula/s/statix.rb index 30e692a43704..1918e2715e35 100644 --- a/Formula/s/statix.rb +++ b/Formula/s/statix.rb @@ -26,9 +26,9 @@ def install end test do - (testpath/"test.nix").write <<~EOS + (testpath/"test.nix").write <<~NIX github:oppiliappan/statix - EOS + NIX assert_match "Found unquoted URI expression", shell_output("#{bin}/statix check test.nix", 1) system bin/"statix", "fix", "test.nix" diff --git a/Formula/s/stylelint.rb b/Formula/s/stylelint.rb index a8abdb7bb25e..d2ac94cbd562 100644 --- a/Formula/s/stylelint.rb +++ b/Formula/s/stylelint.rb @@ -22,18 +22,18 @@ def install end test do - (testpath/".stylelintrc").write <<~EOS + (testpath/".stylelintrc").write <<~JSON { "rules": { "block-no-empty": true } } - EOS + JSON - (testpath/"test.css").write <<~EOS + (testpath/"test.css").write <<~CSS a { } - EOS + CSS output = shell_output("#{bin}/stylelint test.css 2>&1", 2) assert_match "Unexpected empty block", output diff --git a/Formula/s/stylish-haskell.rb b/Formula/s/stylish-haskell.rb index 1a7358c626c2..6fda40496179 100644 --- a/Formula/s/stylish-haskell.rb +++ b/Formula/s/stylish-haskell.rb @@ -26,7 +26,7 @@ def install end test do - (testpath/"test.hs").write <<~EOS + (testpath/"test.hs").write <<~HASKELL {-# LANGUAGE ViewPatterns, TemplateHaskell #-} {-# LANGUAGE GeneralizedNewtypeDeriving, ViewPatterns, @@ -39,8 +39,8 @@ module Bad where import qualified Data.Map as M import Data.Map ((!), keys, Map) - EOS - expected = <<~EOS + HASKELL + expected = <<~HASKELL {-# LANGUAGE GeneralizedNewtypeDeriving #-} {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE TemplateHaskell #-} @@ -52,7 +52,7 @@ module Bad where import Data.Map (Map, keys, (!)) import qualified Data.Map as M - EOS + HASKELL assert_equal expected, shell_output("#{bin}/stylish-haskell test.hs") end end