mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2024-12-12 19:18:24 +02:00
f51b762c6d
It wasn't updated after the 12.0.1 release, even though the SHA values were. PR #1545
25 lines
851 B
Ruby
25 lines
851 B
Ruby
class RipgrepBin < Formula
|
|
version '12.0.1'
|
|
desc "Recursively search directories for a regex pattern."
|
|
homepage "https://github.com/BurntSushi/ripgrep"
|
|
|
|
if OS.mac?
|
|
url "https://github.com/BurntSushi/ripgrep/releases/download/#{version}/ripgrep-#{version}-x86_64-apple-darwin.tar.gz"
|
|
sha256 "59e78931a7577e76f40c937cae2782f2bbdcb40f056df5dd84247a671373525d"
|
|
elsif OS.linux?
|
|
url "https://github.com/BurntSushi/ripgrep/releases/download/#{version}/ripgrep-#{version}-x86_64-unknown-linux-musl.tar.gz"
|
|
sha256 "2dbd6e0cef8048f26ea9f0d6b5412f117645001c5cec267b3bcd4716a64a7a7a"
|
|
end
|
|
|
|
conflicts_with "ripgrep"
|
|
|
|
def install
|
|
bin.install "rg"
|
|
man1.install "doc/rg.1"
|
|
|
|
bash_completion.install "complete/rg.bash"
|
|
fish_completion.install "complete/rg.fish"
|
|
zsh_completion.install "complete/_rg"
|
|
end
|
|
end
|