From fc5e0ec8b71f5163c82e18ae2567f97e9da9df83 Mon Sep 17 00:00:00 2001 From: Kazuki Yamada Date: Sat, 2 Nov 2024 20:56:09 +0900 Subject: [PATCH 1/2] repomix: rename from repopack (repomix 0.2.1) Signed-off-by: Rui Chen --- Formula/r/{repopack.rb => repomix.rb} | 18 +++++++----------- formula_renames.json | 1 + 2 files changed, 8 insertions(+), 11 deletions(-) rename Formula/r/{repopack.rb => repomix.rb} (60%) diff --git a/Formula/r/repopack.rb b/Formula/r/repomix.rb similarity index 60% rename from Formula/r/repopack.rb rename to Formula/r/repomix.rb index 47e2634de9f8..a880e8246ccb 100644 --- a/Formula/r/repopack.rb +++ b/Formula/r/repomix.rb @@ -1,14 +1,10 @@ -class Repopack < Formula +class Repomix < Formula desc "Pack repository contents into a single AI-friendly file" - homepage "https://github.com/yamadashy/repopack" - url "https://registry.npmjs.org/repopack/-/repopack-0.1.43.tgz" - sha256 "514942244a9e5dac52730994979d91006bb536386f7f7a412d6c16f6a44fbf2e" + homepage "https://github.com/yamadashy/repomix" + url "https://registry.npmjs.org/repomix/-/repomix-0.2.1.tgz" + sha256 "9fd247249747d94215925ad7a58fc29df56ba3adb018e0c5213ba5e38819dde1" license "MIT" - bottle do - sha256 cellar: :any_skip_relocation, all: "8b9b0a7b32ad546f01dbd57ab8531fc5e97bf46476f8eca612aa99183d5b081e" - end - depends_on "node" def install @@ -17,14 +13,14 @@ def install end test do - assert_match version.to_s, shell_output("#{bin}/repopack --version") + assert_match version.to_s, shell_output("#{bin}/repomix --version") (testpath/"test_repo").mkdir (testpath/"test_repo/test_file.txt").write("Test content") - output = shell_output("#{bin}/repopack #{testpath}/test_repo") + output = shell_output("#{bin}/repomix #{testpath}/test_repo") assert_match "Packing completed successfully!", output - assert_match <<~EOS, (testpath/"repopack-output.txt").read + assert_match <<~EOS, (testpath/"repomix-output.txt").read ================================================================ Repository Structure ================================================================ diff --git a/formula_renames.json b/formula_renames.json index d9eebc004e93..4c790890611a 100644 --- a/formula_renames.json +++ b/formula_renames.json @@ -139,6 +139,7 @@ "racket": "minimal-racket", "rebar@3": "rebar3", "recipes": "gnome-recipes", + "repopack": "repomix", "resin-cli": "balena-cli", "richmd": "rich-cli", "root6": "root", From b44c5076dfe553362f7c61b7a153937ec8a18460 Mon Sep 17 00:00:00 2001 From: Ruoyu Zhong Date: Sat, 2 Nov 2024 17:26:36 +0000 Subject: [PATCH 2/2] repomix: add 0.2.1 bottle. --- Formula/r/repomix.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Formula/r/repomix.rb b/Formula/r/repomix.rb index a880e8246ccb..fcf68193ef39 100644 --- a/Formula/r/repomix.rb +++ b/Formula/r/repomix.rb @@ -5,6 +5,10 @@ class Repomix < Formula sha256 "9fd247249747d94215925ad7a58fc29df56ba3adb018e0c5213ba5e38819dde1" license "MIT" + bottle do + sha256 cellar: :any_skip_relocation, all: "4e98557fe499a1152cf9a9993c3043cd5c90812b8a7741a25d8927bb4cd7b206" + end + depends_on "node" def install