{ "name": "ripgrep", "version": "15.2.0", "summary": "ripgrep (rg): searches folders for a regular expression, respecting .gitignore; PCRE2 with -P (Rust)", "category": "tool", "license": "Unlicense OR MIT", "homepage": "https://github.com/BurntSushi/ripgrep", "source": { "url": "https://github.com/BurntSushi/ripgrep/archive/refs/tags/15.2.0.tar.gz", "sha256": "7605249d3eb0d5f170e3414498e3344e26b1e7a147aec518b57090b80036a562" }, "watch": {"kind": "github-release", "repo": "BurntSushi/ripgrep", "tag_regex": "^([0-9]+\\.[0-9]+\\.[0-9]+)$", "revendor": {"tool": "cargo", "lockfile": "Cargo.lock"}}, "vendor": "vendor.txt", "deps": [], "env_packages": [], "static": true, "nss": true, "check": "bin/rg --version | has '^ripgrep 15.2.0' && bin/rg --version | has '^features:.*+pcre2' && t=$(mktemp -d) && mkdir -p \"$t/d/sub\" && printf 'alpha\\nneedle one\\n' > \"$t/d/a.txt\" && printf 'fn main() { needle(); }\\n' > \"$t/d/sub/b.rs\" && printf 'needle hidden\\n' > \"$t/d/skip.log\" && printf '*.log\\n' > \"$t/d/.ignore\" && [ \"$(bin/rg -l needle \"$t/d\" | sort | tr '\\n' ' ')\" = \"$t/d/a.txt $t/d/sub/b.rs \" ] && [ \"$(bin/rg -l -t rust needle \"$t/d\")\" = \"$t/d/sub/b.rs\" ] && [ \"$(printf 'foobar\\nbazbar\\n' | bin/rg -P -o '(?<=foo)bar')\" = bar ] && bin/rg --pcre2-version | has 'JIT is available' && check_static bin/rg && echo 'ripgrep 15.2.0: .ignore keeps a file out, -t rust, a PCRE2 lookbehind (JIT)'" }