From 200025a0ee32745fbf0a57b31efd3e629e2323b0 Mon Sep 17 00:00:00 2001 From: Brandon Kaplowitz Date: Wed, 30 Oct 2024 02:40:33 -0400 Subject: [PATCH 1/2] rip2 0.9.0 (new formula) --- Formula/r/rip2.rb | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Formula/r/rip2.rb diff --git a/Formula/r/rip2.rb b/Formula/r/rip2.rb new file mode 100644 index 000000000000..1d9a55afd861 --- /dev/null +++ b/Formula/r/rip2.rb @@ -0,0 +1,28 @@ +class Rip2 < Formula + desc "Safe and ergonomic alternative to rm" + homepage "https://github.com/MilesCranmer/rip2" + url "https://github.com/MilesCranmer/rip2/archive/refs/tags/v0.9.0.tar.gz" + sha256 "e8519e21877c8883f9f2a700036c53bce62b5ee0afaef47a12780999457e2633" + license "GPL-3.0-or-later" + head "https://github.com/MilesCranmer/rip2.git", branch: "master" + + depends_on "rust" => :build + + def install + system "cargo", "install", *std_cargo_args + + generate_completions_from_executable(bin/"rip", "completions") + (share/"elvish/lib/rip.elv").write Utils.safe_popen_read(bin/"rip", "completions", "elvish") + (share/"powershell/completions/_rip.ps1").write Utils.safe_popen_read(bin/"rip", "completions", "powershell") + (share/"nu/completions/rip.nu").write Utils.safe_popen_read(bin/"rip", "completions", "nushell") + end + + test do + # Create a test file and verify rip can delete it + test_file = testpath/"test.txt" + touch test_file + system bin/"rip", "--graveyard", testpath/"graveyard", test_file.to_s + assert_predicate testpath/"graveyard", :exist? + refute_predicate test_file, :exist? + end +end From d0840c692bfa37b0286a4b6ea84ce37ae27cd683 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Fri, 1 Nov 2024 23:22:19 +0000 Subject: [PATCH 2/2] rip2: add 0.9.0 bottle. --- Formula/r/rip2.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Formula/r/rip2.rb b/Formula/r/rip2.rb index 1d9a55afd861..88f8d55c688c 100644 --- a/Formula/r/rip2.rb +++ b/Formula/r/rip2.rb @@ -6,6 +6,15 @@ class Rip2 < Formula license "GPL-3.0-or-later" head "https://github.com/MilesCranmer/rip2.git", branch: "master" + bottle do + sha256 cellar: :any_skip_relocation, arm64_sequoia: "0a4d759abfa23e78e1cd6afdd0028703fdc0ab458b236a4bae9a49efd6c0cc83" + sha256 cellar: :any_skip_relocation, arm64_sonoma: "73f460615657d60899f49dc1213c930fa141966d10f127c3986cc15f01f930d5" + sha256 cellar: :any_skip_relocation, arm64_ventura: "2bdb15ca69ebc0004751ec3f2757fbd14ddef1f90dec9bb570277dbf45b3f777" + sha256 cellar: :any_skip_relocation, sonoma: "68a7c61b77e9ee7fc0c1d1ee2749f743b0ffcee9dc733e6ad21888fc526914cc" + sha256 cellar: :any_skip_relocation, ventura: "4558e844f0c8e1e59dc51830319e4b1844801cc9db0c49f57e9ce1182157fe39" + sha256 cellar: :any_skip_relocation, x86_64_linux: "19e49acfea663691ff2881a5f09ada40b93b83948f96c50466d74f2d1401549e" + end + depends_on "rust" => :build def install