2022-09-29 12:23:15 +00:00
|
|
|
class Autocorrect < Formula
|
|
|
|
desc "Linter and formatter to improve copywriting, correct spaces, words between CJK"
|
|
|
|
homepage "https://github.com/huacnlee/autocorrect"
|
2022-10-10 12:14:08 +00:00
|
|
|
url "https://github.com/huacnlee/autocorrect/archive/v2.1.0.tar.gz"
|
|
|
|
sha256 "f43f8ae2d914bc18a31a4441dacd9013f8abf8984174a82867c6d629e10c23c0"
|
2022-09-29 12:23:15 +00:00
|
|
|
license "MIT"
|
|
|
|
head "https://github.com/huacnlee/autocorrect.git", branch: "main"
|
|
|
|
|
2022-09-30 20:43:48 +00:00
|
|
|
bottle do
|
2022-10-10 14:18:33 +00:00
|
|
|
sha256 cellar: :any_skip_relocation, arm64_monterey: "c269c95745482eb6a4e3561c268a661244afa6a7bb19688e052d470efa4bdb16"
|
|
|
|
sha256 cellar: :any_skip_relocation, arm64_big_sur: "32e0ee8919f9365b76b83dc02aac5e249dfd1a1d54ccea49be71a1404aa3b835"
|
|
|
|
sha256 cellar: :any_skip_relocation, monterey: "1906e86102ec435a817a14c36acea87b07805b9a1d1e0d1bc9ac84033d14f513"
|
|
|
|
sha256 cellar: :any_skip_relocation, big_sur: "b22b78f344c70f4c34892a493d6e518cd0b8e1bde4c4d7d46c0f2a452edaa4a6"
|
|
|
|
sha256 cellar: :any_skip_relocation, catalina: "fa985e804f51fbd2e41c213ba1608f7b7307f99785a062c96cffd9b58c674944"
|
|
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "ca34b3f7318fff77c53f2cadef567376c6248da19430aa46eedc85fdfa43ef36"
|
2022-09-30 20:43:48 +00:00
|
|
|
end
|
|
|
|
|
2022-09-29 12:23:15 +00:00
|
|
|
depends_on "rust"
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "cargo", "install", *std_cargo_args(path: "autocorrect-cli")
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
(testpath/"autocorrect.md").write "Hello世界"
|
|
|
|
out = shell_output("#{bin}/autocorrect autocorrect.md").chomp
|
|
|
|
assert_equal "Hello 世界", out
|
|
|
|
end
|
|
|
|
end
|