Skip to content

Commit

Permalink
repomix: rename from repopack (repomix 0.2.1)
Browse files Browse the repository at this point in the history
Signed-off-by: Rui Chen <[email protected]>
  • Loading branch information
yamadashy authored and chenrui333 committed Nov 2, 2024
1 parent a909b0f commit fc5e0ec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
18 changes: 7 additions & 11 deletions Formula/r/repopack.rb → Formula/r/repomix.rb
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
================================================================
Expand Down
1 change: 1 addition & 0 deletions formula_renames.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@
"racket": "minimal-racket",
"rebar@3": "rebar3",
"recipes": "gnome-recipes",
"repopack": "repomix",
"resin-cli": "balena-cli",
"richmd": "rich-cli",
"root6": "root",
Expand Down

0 comments on commit fc5e0ec

Please sign in to comment.