jackett 0.22.1382
[Homebrew/homebrew-core.git] / Formula / z / zet.rb
blob5f3c107a81e52cfbd4d6a05de40c7e50fcefb7c4
1 class Zet < Formula
2   desc "CLI utility to find the union, intersection, and set difference of files"
3   homepage "https://github.com/yarrow/zet"
4   url "https://github.com/yarrow/zet/archive/refs/tags/v2.0.1.tar.gz"
5   sha256 "a6f431927c16b22516e78a9ec7864d99e2676abae3acb46101df1c287e16f267"
6   license any_of: ["Apache-2.0", "MIT"]
8   livecheck do
9     url :stable
10     regex(/^v?(\d+(?:\.\d+)+)$/i)
11   end
13   bottle do
14     sha256 cellar: :any_skip_relocation, arm64_sequoia: "43ee895f1a866c5279689ea67039f268f036126cdaa95fce89ef694c67c9d469"
15     sha256 cellar: :any_skip_relocation, arm64_sonoma:  "eaf4041c27353f5278d0b7f232040a91cd8d87e9a6eb0d6dd6417186f3ab121d"
16     sha256 cellar: :any_skip_relocation, arm64_ventura: "1b42203cb1f07a7f436b7c6ba9a98667ca1e55dd65157fe8fb445a3de4b3c9e0"
17     sha256 cellar: :any_skip_relocation, sonoma:        "4f7359f71bb633a4dca674758356c976b74cb8c9b0a78d705c07d33cbd157414"
18     sha256 cellar: :any_skip_relocation, ventura:       "7155960676e9ea9a1e323e80cf7dd1191a63951c097d1339d179873218519677"
19     sha256 cellar: :any_skip_relocation, x86_64_linux:  "85c0892b0c2723950c55e1df613854ef10c21b708392084176ab0917c8a0ba7c"
20   end
22   depends_on "rust" => :build
24   def install
25     system "cargo", "install", *std_cargo_args
26   end
28   test do
29     (testpath/"foo.txt").write("1\n2\n3\n4\n5\n")
30     (testpath/"bar.txt").write("1\n2\n4\n")
31     assert_equal "3\n5\n", shell_output("#{bin}/zet diff foo.txt bar.txt")
32   end
33 end