File tree Expand file tree Collapse file tree 2 files changed +40
-0
lines changed Expand file tree Collapse file tree 2 files changed +40
-0
lines changed Original file line number Diff line number Diff line change @@ -1582,6 +1582,7 @@ ipython
15821582ircd-hybrid
15831583ircii
15841584iredis
1585+ is-fast
15851586isa-l
15861587isl
15871588iso-codes
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+ bottle do
10+ sha256 cellar : :any_skip_relocation , arm64_sequoia : "21b2ab2138232bb5d6100ec9e09179b2a4924bfc76311b0fc405cf81e98cdf24"
11+ sha256 cellar : :any_skip_relocation , arm64_sonoma : "9ec782570b6770cfb22598d937aa0d7d38d279be00052ae55926132bf6e16c5c"
12+ sha256 cellar : :any_skip_relocation , arm64_ventura : "ce4fc48b576a3d248cd1215f3b1e3d36eae212234420d18bf51abb431a28ff03"
13+ sha256 cellar : :any_skip_relocation , sonoma : "fb41975c4adea241c48c4601ab8e75654e6ab35c1ea142ef612f78a06b18b662"
14+ sha256 cellar : :any_skip_relocation , ventura : "c2c3aa63b2fcdb808549fa2bdbcb1d09c7b136bc1f77a361eae30323427b03ed"
15+ sha256 cellar : :any_skip_relocation , x86_64_linux : "292f629419e2a70d50c3f73f639bcfd7a205aae2da49b4abf8097ebb4716a1f1"
16+ end
17+
18+ depends_on "rust" => :build
19+
20+ def install
21+ system "cargo" , "install" , *std_cargo_args
22+ end
23+
24+ test do
25+ assert_match "is-fast #{ version } " , shell_output ( "#{ bin } /is-fast --version" )
26+
27+ ( testpath /"test.html" ) . write <<~HTML
28+ <!DOCTYPE html>
29+ < html >
30+ < head > < title > Test HTML page</ title > </ head >
31+ < body >
32+ < p > Hello Homebrew!</ p >
33+ </ body >
34+ </ html >
35+ HTML
36+
37+ assert_match "Hello Homebrew!" , shell_output ( "#{ bin } /is-fast --piped --file #{ testpath } /test.html" )
38+ end
39+ end
You can’t perform that action at this time.
0 commit comments