From ade41a2fa39eea52f082c0f95732e984d1a0d440 Mon Sep 17 00:00:00 2001 From: Nicolas Karolak Date: Sat, 13 Sep 2025 08:41:42 +0200 Subject: [PATCH 1/2] tombi 0.6.5 (new formula) --- Formula/t/tombi.rb | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Formula/t/tombi.rb diff --git a/Formula/t/tombi.rb b/Formula/t/tombi.rb new file mode 100644 index 0000000000000..6cd3caca3d665 --- /dev/null +++ b/Formula/t/tombi.rb @@ -0,0 +1,36 @@ +class Tombi < Formula + desc "TOML formatter, linter and language server" + homepage "https://github.com/tombi-toml/tombi" + url "https://github.com/tombi-toml/tombi/archive/refs/tags/v0.6.5.tar.gz" + sha256 "4d97f5c740e35b99c28f382e29a3f792241bb756371c41a66b2c64f0f7ee4a0c" + license "MIT" + head "https://github.com/tombi-toml/tombi.git", branch: "main" + + depends_on "rust" => :build + + def install + system "cargo", "install", *std_cargo_args(path: "rust/tombi-cli") + end + + test do + require "open3" + + json = <<~JSON + { + "jsonrpc": "2.0", + "id": 1, + "method": "initialize", + "params": { + "rootUri": null, + "capabilities": {} + } + } + JSON + + Open3.popen3(bin/"tombi", "lsp") do |stdin, stdout| + stdin.write "Content-Length: #{json.size}\r\n\r\n#{json}" + sleep 1 + assert_match(/^Content-Length: \d+/i, stdout.readline) + end + end +end From 349a8eb4c38f64bcbf7551bd34dff1a8ed6bc4eb Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Sat, 13 Sep 2025 16:53:07 +0000 Subject: [PATCH 2/2] tombi: add 0.6.5 bottle. --- Formula/t/tombi.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Formula/t/tombi.rb b/Formula/t/tombi.rb index 6cd3caca3d665..ff217c1957aa9 100644 --- a/Formula/t/tombi.rb +++ b/Formula/t/tombi.rb @@ -6,6 +6,13 @@ class Tombi < Formula license "MIT" head "https://github.com/tombi-toml/tombi.git", branch: "main" + bottle do + sha256 cellar: :any_skip_relocation, arm64_sequoia: "032c0e1af9c5387794c2c5ec1bcdc88bf83418508909550c4a1fd25b0e4be8e4" + sha256 cellar: :any_skip_relocation, arm64_sonoma: "a0706b75060023304505cfe457d28fb613c8232fa5af089cb157ac29767dd090" + sha256 cellar: :any_skip_relocation, sonoma: "a88ae2fbcb6fab533282fffcb60506b157406085f1cd6538295f1b00fc9d607c" + sha256 cellar: :any_skip_relocation, x86_64_linux: "34ed9ccea679fd009d4ba0a3ebadd995c9ca85c3555118fa95d9e556ed4d8ba9" + end + depends_on "rust" => :build def install