From 65153b3a42b1ca725985373208b987cb24f2e03d Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Thu, 19 Dec 2024 00:51:43 -0500 Subject: [PATCH 1/2] jwt-cli 6.2.0 (new formula) Signed-off-by: Rui Chen --- .github/autobump.txt | 1 + Formula/j/jwt-cli.rb | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 Formula/j/jwt-cli.rb diff --git a/.github/autobump.txt b/.github/autobump.txt index d304169fb6344..e4ec5013d2d00 100644 --- a/.github/autobump.txt +++ b/.github/autobump.txt @@ -1477,6 +1477,7 @@ juju julia jupyterlab just +jwt-cli jxl-oxide jython k2tf diff --git a/Formula/j/jwt-cli.rb b/Formula/j/jwt-cli.rb new file mode 100644 index 0000000000000..11a3ebfda2e5b --- /dev/null +++ b/Formula/j/jwt-cli.rb @@ -0,0 +1,24 @@ +class JwtCli < Formula + desc "Super fast CLI tool to decode and encode JWTs built in Rust" + homepage "https://github.com/mike-engel/jwt-cli" + url "https://github.com/mike-engel/jwt-cli/archive/refs/tags/6.2.0.tar.gz" + sha256 "49d67d920391978684dc32b75e553a2abbd46c775365c0fb4b232d22c0ed653a" + license "MIT" + head "https://github.com/mike-engel/jwt-cli.git", branch: "main" + + depends_on "rust" => :build + + def install + system "cargo", "install", *std_cargo_args + + generate_completions_from_executable(bin/"jwt", "completion", base_name: "jwt") + end + + test do + assert_match version.to_s, shell_output("#{bin}/jwt --version") + + encoded = shell_output("#{bin}/jwt encode --secret 'test' '{\"sub\":\"1234567890\"}'").strip + decoded = shell_output("#{bin}/jwt decode --secret 'test' --ignore-exp '#{encoded}'") + assert_match '"sub": "1234567890"', decoded + end +end From 6c8090012e5ff453241502c99bbec6d5513d7393 Mon Sep 17 00:00:00 2001 From: Rui Chen Date: Thu, 19 Dec 2024 13:38:00 +0000 Subject: [PATCH 2/2] jwt-cli: add 6.2.0 bottle. --- Formula/j/jwt-cli.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Formula/j/jwt-cli.rb b/Formula/j/jwt-cli.rb index 11a3ebfda2e5b..cf0570f2cdbad 100644 --- a/Formula/j/jwt-cli.rb +++ b/Formula/j/jwt-cli.rb @@ -6,6 +6,15 @@ class JwtCli < Formula license "MIT" head "https://github.com/mike-engel/jwt-cli.git", branch: "main" + bottle do + sha256 cellar: :any_skip_relocation, arm64_sequoia: "7620546fab86ed26262f53659f420a2a52a61137895e26c1e90ae0c8f93701e0" + sha256 cellar: :any_skip_relocation, arm64_sonoma: "fbf28074fe942a8b9e56efdaa6a92bd420557f9e52efd34e20d0d8425081f99c" + sha256 cellar: :any_skip_relocation, arm64_ventura: "7b47ec1157a9dea61645c802355907945b40fce48536af4adb46f7ebc99cb5b6" + sha256 cellar: :any_skip_relocation, sonoma: "680cbbcf2e399fe52e9b2439cfa52ee5bce2b17ac2773bc4a82067e72a823092" + sha256 cellar: :any_skip_relocation, ventura: "60ffb058e6075cbbddd0b23ce137bc00679553f0d875e9db5addbf903dfb478d" + sha256 cellar: :any_skip_relocation, x86_64_linux: "0489c4208b5020bee00984994a5ce2d8a2a1f80f67de14a43520f38e918f9b8c" + end + depends_on "rust" => :build def install