Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

srgn 0.13.1 #181589

Merged
merged 2 commits into from
Aug 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions Formula/s/srgn.rb
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
class Srgn < Formula
desc "Code surgeon for precise text and code transplantation"
homepage "https://github.com/alexpovel/srgn"
url "https://github.com/alexpovel/srgn/archive/refs/tags/srgn-v0.12.0.tar.gz"
sha256 "6b87c2c26da7dcbf97d875f742bc00428d23d5a3a1d0cd788918dfa1764d9cc5"
url "https://github.com/alexpovel/srgn/archive/refs/tags/srgn-v0.13.1.tar.gz"
sha256 "1300d0490a21988f5bdbdb291457c1ebfa1140a05c9c94b29a0df898dc383791"
license "MIT"
head "https://github.com/alexpovel/srgn.git", branch: "main"

bottle do
sha256 cellar: :any_skip_relocation, arm64_sonoma: "78ccb521fe6996b8a9c6e89cd538b58dce3639301a9b2183636a7d0ccf83a2a4"
sha256 cellar: :any_skip_relocation, arm64_ventura: "6c4b24884f81e9161a97db343000f121be01c4ce57ddbaf42f19fa7d021df493"
sha256 cellar: :any_skip_relocation, arm64_monterey: "bcee0ab1f88718ff81021a2b5c855f88300c88f264f03112cb5b2c1a1e863134"
sha256 cellar: :any_skip_relocation, sonoma: "033444b1153aa841aaf70beeeeb71caf2973212b0349524d2332265ad3a3a06a"
sha256 cellar: :any_skip_relocation, ventura: "ca1717a32f2d192e2d171d5a3401355261a4560c62d44f4f5cef3adb7bb65f96"
sha256 cellar: :any_skip_relocation, monterey: "f75ea3abd1e0c8ba796790b5577718ccc76f76e075f3118ca9c324a1349688e8"
sha256 cellar: :any_skip_relocation, x86_64_linux: "c63ec55de8e524f6f1621a619c73c81eb87ab9b4833a447eba9f4919ebb19b88"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "94465753abb628908bced6a7008b8a28210c4bf4a8912ef4cb77bbc802db8ba5"
sha256 cellar: :any_skip_relocation, arm64_ventura: "69f8ac516cd4026b59070c52a7cc4b711c1bd8342bdef0a2add792d121ac69c1"
sha256 cellar: :any_skip_relocation, arm64_monterey: "ea0ec8e6b6c491d29decc1ee68187db93dfdcc3d7522db574b5d0c0adc2fd86d"
sha256 cellar: :any_skip_relocation, sonoma: "447d51aa62eabd08370e1bc52d50f886acd5124dcdc9f94fba88dcd1ec5f68e4"
sha256 cellar: :any_skip_relocation, ventura: "941d3709de9bfc0096e67afdab30fc6f82ecbde46eb39976c83823876ac19dbe"
sha256 cellar: :any_skip_relocation, monterey: "2959bfcfc4c4b0f0d526038598de846be04a1047a741f8f6c309d7b40bb211c7"
sha256 cellar: :any_skip_relocation, x86_64_linux: "363eb438d088f65394a7ec6b9475716eb19c7951c60e2e82a2c7ea31628f26a8"
end

depends_on "rust" => :build
Expand All @@ -26,7 +26,7 @@ def install
assert_match "H____", pipe_output("#{bin}/srgn '[a-z]' '_'", "Hello")

test_string = "Hide ghp_th15 and ghp_th4t"
assert_match "Hide ******** and ********", pipe_output("#{bin}/srgn '(ghp_[[:alnum:]]+)' '*'", test_string)
assert_match "Hide * and *", pipe_output("#{bin}/srgn '(ghp_[[:alnum:]]+)' '*'", test_string)

assert_match version.to_s, shell_output("#{bin}/srgn --version")
end
Expand Down
Loading