File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments