Skip to content

Commit 74db37d

Browse files
committed
is-fast 0.15.1 (new formula)
Signed-off-by: botantony <[email protected]>
1 parent 5bf2bd5 commit 74db37d

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

Formula/i/is-fast.rb

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
class IsFast < Formula
2+
desc "Check the internet as fast as possible"
3+
homepage "https://github.com/Magic-JD/is-fast"
4+
url "https://github.com/Magic-JD/is-fast/archive/refs/tags/v0.15.1.tar.gz"
5+
sha256 "58d8a6cca7d5c0355c13206d6028aad06dc3e6885f895edcaaa663726e7f51ba"
6+
license "MIT"
7+
head "https://github.com/Magic-JD/is-fast.git", branch: "main"
8+
9+
depends_on "rust" => :build
10+
11+
def install
12+
system "cargo", "install", *std_cargo_args
13+
end
14+
15+
test do
16+
assert_match "is-fast #{version}", shell_output("#{bin}/is-fast --version")
17+
18+
(testpath/"test.html").write <<~HTML
19+
<!DOCTYPE html>
20+
<html>
21+
<head><title>Test HTML page</title></head>
22+
<body>
23+
<p>Hello Homebrew!</p>
24+
</body>
25+
</html>
26+
HTML
27+
28+
assert_match "Hello Homebrew!", shell_output("#{bin}/is-fast --piped --file #{testpath}/test.html")
29+
end
30+
end

0 commit comments

Comments
 (0)