Skip to content

Commit

Permalink
lychee 0.7.0 (new formula)
Browse files Browse the repository at this point in the history
Closes #70216.

Signed-off-by: Carlo Cabrera <[email protected]>
Signed-off-by: BrewTestBot <[email protected]>
  • Loading branch information
alebcay authored and BrewTestBot committed Apr 23, 2021
1 parent 7d6eea2 commit e0b23a5
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Formula/lychee.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
class Lychee < Formula
desc "Fast, async, resource-friendly link checker"
homepage "https://github.com/lycheeverse/lychee"
url "https://github.com/lycheeverse/lychee/archive/0.7.0.tar.gz"
sha256 "bd0873e088701eecdcf6eeb254eed7a4dbe3dd71728e272505c1b8f92c3eebe9"
license any_of: ["Apache-2.0", "MIT"]
head "https://github.com/lycheeverse/lychee.git"

depends_on "rust" => :build
depends_on "[email protected]"

def install
cd "lychee-bin" do
system "cargo", "install", *std_cargo_args
end
end

test do
(testpath/"test.md").write "[This](https://example.com) is an example.\n"
output = shell_output("#{bin}/lychee #{testpath}/test.md")
assert_match(/Total\.*1\n.*Successful\.*1\n/, output)
end
end

0 comments on commit e0b23a5

Please sign in to comment.