From f2709051660a0196ca786928fc1afa6cef492fd4 Mon Sep 17 00:00:00 2001 From: Cheng Xu Date: Thu, 20 Feb 2025 18:56:40 -0800 Subject: [PATCH 1/2] cspell 8.17.4 (new formula) --- Formula/c/cspell.rb | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Formula/c/cspell.rb diff --git a/Formula/c/cspell.rb b/Formula/c/cspell.rb new file mode 100644 index 0000000000000..15d7257acbf16 --- /dev/null +++ b/Formula/c/cspell.rb @@ -0,0 +1,21 @@ +class Cspell < Formula + desc "Spell checker for code" + homepage "https://cspell.org" + url "https://registry.npmjs.org/cspell/-/cspell-8.17.4.tgz" + sha256 "706660433488a9889c2b81e1a10c86a0595b742ccd4815077af749f3aaa70d61" + license "MIT" + + depends_on "node" + + def install + system "npm", "install", *std_npm_args + # Skip linking cspell-esm binary, which is identical to cspell. + bin.install_symlink libexec/"bin/cspell" + end + + test do + (testpath/"test.rb").write("misspell_worrd = 1") + output = shell_output("#{bin}/cspell test.rb", 1) + assert_match "test.rb:1:10 - Unknown word (worrd)", output + end +end From 32d048887723cd692f19ef4130e3884401558d22 Mon Sep 17 00:00:00 2001 From: Daeho Ro Date: Fri, 21 Feb 2025 04:32:59 +0000 Subject: [PATCH 2/2] cspell: add 8.17.4 bottle. --- Formula/c/cspell.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Formula/c/cspell.rb b/Formula/c/cspell.rb index 15d7257acbf16..5703af5450b8f 100644 --- a/Formula/c/cspell.rb +++ b/Formula/c/cspell.rb @@ -5,6 +5,15 @@ class Cspell < Formula sha256 "706660433488a9889c2b81e1a10c86a0595b742ccd4815077af749f3aaa70d61" license "MIT" + bottle do + sha256 cellar: :any_skip_relocation, arm64_sequoia: "8f12d9b9a2a527982dede9b519534c0c6d5ab204882e2ed2d47178e80b6ef58c" + sha256 cellar: :any_skip_relocation, arm64_sonoma: "8f12d9b9a2a527982dede9b519534c0c6d5ab204882e2ed2d47178e80b6ef58c" + sha256 cellar: :any_skip_relocation, arm64_ventura: "8f12d9b9a2a527982dede9b519534c0c6d5ab204882e2ed2d47178e80b6ef58c" + sha256 cellar: :any_skip_relocation, sonoma: "b3e67f015130e4228d41e2e1b800e9f4a5008a76f10a5417072c62f6ed824220" + sha256 cellar: :any_skip_relocation, ventura: "b3e67f015130e4228d41e2e1b800e9f4a5008a76f10a5417072c62f6ed824220" + sha256 cellar: :any_skip_relocation, x86_64_linux: "8f12d9b9a2a527982dede9b519534c0c6d5ab204882e2ed2d47178e80b6ef58c" + end + depends_on "node" def install