Skip to content

Commit

Permalink
Merge pull request #201179 from Homebrew/bump-boring-0.9.0
Browse files Browse the repository at this point in the history
boring 0.9.0
  • Loading branch information
BrewTestBot authored Dec 15, 2024
2 parents bcef46a + c11ba44 commit 454cb36
Showing 1 changed file with 20 additions and 21 deletions.
41 changes: 20 additions & 21 deletions Formula/b/boring.rb
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
class Boring < Formula
desc "Simple command-line SSH tunnel manager that just works"
homepage "https://github.com/alebeck/boring"
url "https://github.com/alebeck/boring/archive/refs/tags/0.8.0.tar.gz"
sha256 "378f6bb1becb6d5a90a086306ba22a3bafa12f7f796f94e739d873d2cce41601"
url "https://github.com/alebeck/boring/archive/refs/tags/0.9.0.tar.gz"
sha256 "d260f3285d850f41945d6760f0b1147fa1e0dab339a8ff9cbcf693911973d71f"
license "MIT"

bottle do
sha256 cellar: :any_skip_relocation, arm64_sequoia: "4f1535d54c08e5704412485bbe340894b4be38cf42362b3cfee36cd99236227d"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "4f1535d54c08e5704412485bbe340894b4be38cf42362b3cfee36cd99236227d"
sha256 cellar: :any_skip_relocation, arm64_ventura: "4f1535d54c08e5704412485bbe340894b4be38cf42362b3cfee36cd99236227d"
sha256 cellar: :any_skip_relocation, sonoma: "56983107e47e4e9da688c8fc3aa2abdd4fffba4942cbe6990f7993bed243aec0"
sha256 cellar: :any_skip_relocation, ventura: "56983107e47e4e9da688c8fc3aa2abdd4fffba4942cbe6990f7993bed243aec0"
sha256 cellar: :any_skip_relocation, x86_64_linux: "601d2506c354e0ceaa4baba58b9ad03cb6bc3b40616ed5bd3bdc1a97dc655fa8"
sha256 cellar: :any_skip_relocation, arm64_sequoia: "9342d0c3f280ff4d485a0815e639105e80875872d888683a00856611d0edcc14"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "9342d0c3f280ff4d485a0815e639105e80875872d888683a00856611d0edcc14"
sha256 cellar: :any_skip_relocation, arm64_ventura: "9342d0c3f280ff4d485a0815e639105e80875872d888683a00856611d0edcc14"
sha256 cellar: :any_skip_relocation, sonoma: "60a54e8c998cf1526380219839a2de9a3678ffa7af58e46d175a5ba0142bc4e3"
sha256 cellar: :any_skip_relocation, ventura: "60a54e8c998cf1526380219839a2de9a3678ffa7af58e46d175a5ba0142bc4e3"
sha256 cellar: :any_skip_relocation, x86_64_linux: "6b6631fa8b593fe58fbfb539aa248d8d47d8e6acab9f9bf93b5360c33ad74cc7"
end

depends_on "go" => :build
Expand All @@ -26,25 +26,24 @@ def post_install
end

test do
assert_match version.to_s, shell_output(bin/"boring", 1)
return if OS.linux? && ENV["HOMEBREW_GITHUB_ACTIONS"]

# first interaction with boring should create the user config file
# and correctly output that no tunnels are currently configured
test_config = testpath/".boring.toml"
ENV["BORING_CONFIG"] = test_config
output = shell_output("#{bin}/boring list")
assert output.end_with?("No tunnels configured.\n")
assert_predicate test_config, :exist?

# now add an example tunnel and check that it is parsed correctly
test_config.write <<~TOML, mode: "a+"
(testpath/".boring.toml").write <<~TOML
[[tunnels]]
name = "dev"
local = "9000"
remote = "localhost:9000"
host = "dev-server"
TOML
output = shell_output("#{bin}/boring list")
assert_match "dev 9000 -> localhost:9000 dev-server", output

begin
output_log = testpath/"output.log"
pid = spawn bin/"boring", "list", [:out, :err] => output_log.to_s
sleep 2
assert_match "dev 9000 -> localhost:9000 dev-server", output_log.read
ensure
Process.kill("TERM", pid)
Process.wait(pid)
end
end
end

0 comments on commit 454cb36

Please sign in to comment.