Skip to content

Commit

Permalink
lychee 0.7.0 (new formula)
Browse files Browse the repository at this point in the history
  • Loading branch information
alebcay committed Apr 23, 2021
1 parent 3aa438b commit 4c913b7
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 "openssl@1.1"

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 4c913b7

Please sign in to comment.