Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 13 additions & 11 deletions Formula/l/logdy.rb
Original file line number Diff line number Diff line change
@@ -1,29 +1,31 @@
class Logdy < Formula
desc "Web based real-time log viewer"
homepage "https://logdy.dev"
url "https://github.com/logdyhq/logdy-core/archive/refs/tags/v0.13.tar.gz"
sha256 "e23010f4979f79b6545181d35a27b4e80f08815f7f9bfb089eb3d1bd4879fa0d"
url "https://github.com/logdyhq/logdy-core/archive/refs/tags/v0.13.0.tar.gz"
sha256 "7aec95af51d4d954ad01fcdd7e925269fa4cdbadab5484761c56fc54dc122c38"
license "Apache-2.0"

bottle do
sha256 cellar: :any_skip_relocation, arm64_sonoma: "a9190a20f9e29be0744ac4ecf864d4cfa6db9c04dfc8ee3b934e1f702cebbb61"
sha256 cellar: :any_skip_relocation, arm64_ventura: "ba142b96d4dd276dbfaa45ffc42e41ab2918b41b3312d7d7ed23c215c97ad61c"
sha256 cellar: :any_skip_relocation, arm64_monterey: "bb2e139edd2ebb0d0e0939f3a93b6a19e86e21b84d63d2d9db05fc88c10c549f"
sha256 cellar: :any_skip_relocation, sonoma: "3cfecfbe4f13c85bc25453e83bac7ccb079d42bb9b87a5dedb7e518432ed56b3"
sha256 cellar: :any_skip_relocation, ventura: "bed24d829f1f6110106d3626f4f11d5ed7afd9b0c12a7c4bdd3a53e4d297fd05"
sha256 cellar: :any_skip_relocation, monterey: "0790f3c87c788b3c50b9aceb2590b4bb56d1d4cf3d6a0afb83dc12546e9bcb40"
sha256 cellar: :any_skip_relocation, x86_64_linux: "f239bd7a6a7ad620f541c1b06250e3cce3929746be8d76ec3e2c268b6eba8326"
rebuild 1
sha256 cellar: :any_skip_relocation, arm64_sonoma: "903dda9a2dc16f7195b4bb3dfe94bcb7b91b1ec62b6cc1e89c7f9c3125b644d2"
sha256 cellar: :any_skip_relocation, arm64_ventura: "903dda9a2dc16f7195b4bb3dfe94bcb7b91b1ec62b6cc1e89c7f9c3125b644d2"
sha256 cellar: :any_skip_relocation, arm64_monterey: "903dda9a2dc16f7195b4bb3dfe94bcb7b91b1ec62b6cc1e89c7f9c3125b644d2"
sha256 cellar: :any_skip_relocation, sonoma: "60c0887e8ddacd4b9cd8ba871acac5634b44ff46b7d1ce3e3e46ff1abca7a0d2"
sha256 cellar: :any_skip_relocation, ventura: "60c0887e8ddacd4b9cd8ba871acac5634b44ff46b7d1ce3e3e46ff1abca7a0d2"
sha256 cellar: :any_skip_relocation, monterey: "60c0887e8ddacd4b9cd8ba871acac5634b44ff46b7d1ce3e3e46ff1abca7a0d2"
sha256 cellar: :any_skip_relocation, x86_64_linux: "632e162a3f8827b9ef6518a554653588474fadfedd0dfb92cf3a5523ad1b3170"
end

depends_on "go" => :build

def install
ldflags = "-s -w -X 'main.Version=#{version}'"
ldflags = "-s -w -X main.Version=#{version}"
system "go", "build", *std_go_args(ldflags:)
end

test do
r, _, pid = PTY.spawn("#{bin}/logdy --port=#{free_port}")
port = free_port
r, _, pid = PTY.spawn("#{bin}/logdy --port=#{port}")
assert_match "Listen to stdin (from pipe)", r.readline
ensure
Process.kill("TERM", pid)
Expand Down