Skip to content

Commit

Permalink
Merge pull request #202242 from Homebrew/bump-pug-0.6.0
Browse files Browse the repository at this point in the history
pug 0.6.0
  • Loading branch information
BrewTestBot authored Dec 23, 2024
2 parents bb39240 + 5e923c2 commit 924884a
Showing 1 changed file with 24 additions and 17 deletions.
41 changes: 24 additions & 17 deletions Formula/p/pug.rb
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
class Pug < Formula
desc "Drive terraform at terminal velocity"
homepage "https://github.com/leg100/pug"
url "https://github.com/leg100/pug/archive/refs/tags/v0.5.5.tar.gz"
sha256 "e79af618a610b7225a4a787de5e5615cba19f92d0b9a16f16e322c4a176522b8"
url "https://github.com/leg100/pug/archive/refs/tags/v0.6.0.tar.gz"
sha256 "ddafc44e9a844036dd802edd3bc8b229aee0002a4a0b83768a37f04243c3044a"
license "MPL-2.0"
head "https://github.com/leg100/pug.git", branch: "master"

bottle do
sha256 cellar: :any_skip_relocation, arm64_sequoia: "3f86c6d80ede805265f9dec35b9d602f31f80483400e8b94f12b466866f5bb52"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "3f86c6d80ede805265f9dec35b9d602f31f80483400e8b94f12b466866f5bb52"
sha256 cellar: :any_skip_relocation, arm64_ventura: "3f86c6d80ede805265f9dec35b9d602f31f80483400e8b94f12b466866f5bb52"
sha256 cellar: :any_skip_relocation, sonoma: "9234423a1e24611ea85cb216cd2d3555d98b202d2b977d69be9b0b3c53fb78d0"
sha256 cellar: :any_skip_relocation, ventura: "9234423a1e24611ea85cb216cd2d3555d98b202d2b977d69be9b0b3c53fb78d0"
sha256 cellar: :any_skip_relocation, x86_64_linux: "f2aa800d83a097307bf5ab3b3e5aa90f8d2e8a0815b973474a3f14c9402c392c"
sha256 cellar: :any_skip_relocation, arm64_sequoia: "35c14c575b0546e893a43b89e5b2b0a3fe700b8341b0cb1725514fbb2868bc4d"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "35c14c575b0546e893a43b89e5b2b0a3fe700b8341b0cb1725514fbb2868bc4d"
sha256 cellar: :any_skip_relocation, arm64_ventura: "35c14c575b0546e893a43b89e5b2b0a3fe700b8341b0cb1725514fbb2868bc4d"
sha256 cellar: :any_skip_relocation, sonoma: "957a1abaf2d15ad8d2c688a42b0458b554d4e48870baeb4bc5c9d7425a3e99dc"
sha256 cellar: :any_skip_relocation, ventura: "957a1abaf2d15ad8d2c688a42b0458b554d4e48870baeb4bc5c9d7425a3e99dc"
sha256 cellar: :any_skip_relocation, x86_64_linux: "7be671c9920414fc1a35724a00355561e558d32130ac463aded4d5b9095138ee"
end

depends_on "go" => :build
Expand All @@ -23,15 +23,22 @@ def install
end

test do
r, _w, pid = PTY.spawn("#{bin}/pug --debug")
# check on TUI elements
assert_match "Modules", r.readline
# check on debug logs
assert_match "loaded 0 modules", (testpath/"messages.log").read

assert_match version.to_s, shell_output("#{bin}/pug --version")
ensure
Process.kill("TERM", pid)
Process.wait(pid)

# Fails in Linux CI with `open /dev/tty: no such device or address`
return if OS.linux? && ENV["HOMEBREW_GITHUB_ACTIONS"]

begin
output_log = testpath/"output.log"
pid = spawn bin/"pug", "--debug", [:out, :err] => output_log.to_s

sleep 1

assert_match "loaded 0 modules", output_log.read
assert_path_exists testpath/"messages.log"
ensure
Process.kill("TERM", pid)
Process.wait(pid)
end
end
end

0 comments on commit 924884a

Please sign in to comment.