diff --git a/Formula/fga.rb b/Formula/fga.rb index 4b21156..bad1b05 100644 --- a/Formula/fga.rb +++ b/Formula/fga.rb @@ -5,7 +5,7 @@ class Fga < Formula desc "A cross-platform CLI to interact with an OpenFGA server." homepage "https://openfga.dev/" - version "0.2.6" + version "0.2.7" license "Apache-2.0" depends_on "git" @@ -13,8 +13,8 @@ class Fga < Formula on_macos do if Hardware::CPU.intel? - url "https://github.com/openfga/cli/releases/download/v0.2.6/fga_0.2.6_darwin_amd64.tar.gz", using: CurlDownloadStrategy - sha256 "ac2e47641920ad4851096437b7877851d70f226c3ad225f68df2783d3124dccd" + url "https://github.com/openfga/cli/releases/download/v0.2.7/fga_0.2.7_darwin_amd64.tar.gz", using: CurlDownloadStrategy + sha256 "5c47a351aa6b8cff9d0b95d6b50a452544200f32693e47587923b500a7257256" def install bin.install "fga" @@ -25,8 +25,8 @@ def install end end if Hardware::CPU.arm? - url "https://github.com/openfga/cli/releases/download/v0.2.6/fga_0.2.6_darwin_arm64.tar.gz", using: CurlDownloadStrategy - sha256 "a00204ade6bce42ecf99d7757c232e9fa75a586052de5f1ededbf07ba503e984" + url "https://github.com/openfga/cli/releases/download/v0.2.7/fga_0.2.7_darwin_arm64.tar.gz", using: CurlDownloadStrategy + sha256 "b08013933cb4f60bd072ca6fb4db2f82c8dccf5ba1a8785079118d3e324b7b57" def install bin.install "fga" @@ -40,8 +40,8 @@ def install on_linux do if Hardware::CPU.arm? && Hardware::CPU.is_64_bit? - url "https://github.com/openfga/cli/releases/download/v0.2.6/fga_0.2.6_linux_arm64.tar.gz", using: CurlDownloadStrategy - sha256 "37bf2c07f063749829cadc5cb7f3c0acf2d6603a60c13c04b8c5a3c5067f80db" + url "https://github.com/openfga/cli/releases/download/v0.2.7/fga_0.2.7_linux_arm64.tar.gz", using: CurlDownloadStrategy + sha256 "fafe2ff658a0f0c9febf83367263a12a7e268ecb17ec903a38675c733741d630" def install bin.install "fga" @@ -52,8 +52,8 @@ def install end end if Hardware::CPU.intel? - url "https://github.com/openfga/cli/releases/download/v0.2.6/fga_0.2.6_linux_amd64.tar.gz", using: CurlDownloadStrategy - sha256 "795482ea7b75bef965162c652fbfa2f7911a051342c366415ee840bc1e732e8e" + url "https://github.com/openfga/cli/releases/download/v0.2.7/fga_0.2.7_linux_amd64.tar.gz", using: CurlDownloadStrategy + sha256 "ae37eef9253adebcacb1effc7ad3940c84e7f43f485f26159bc5706c5acf0965" def install bin.install "fga" diff --git a/Formula/fga@0.2.7.rb b/Formula/fga@0.2.7.rb new file mode 100644 index 0000000..16305ff --- /dev/null +++ b/Formula/fga@0.2.7.rb @@ -0,0 +1,73 @@ +# typed: false +# frozen_string_literal: true + +# This file was generated by GoReleaser. DO NOT EDIT. +class FgaAT027 < Formula + desc "A cross-platform CLI to interact with an OpenFGA server." + homepage "https://openfga.dev/" + version "0.2.7" + license "Apache-2.0" + + depends_on "git" + depends_on "go" => :optional + + on_macos do + if Hardware::CPU.intel? + url "https://github.com/openfga/cli/releases/download/v0.2.7/fga_0.2.7_darwin_amd64.tar.gz", using: CurlDownloadStrategy + sha256 "5c47a351aa6b8cff9d0b95d6b50a452544200f32693e47587923b500a7257256" + + def install + bin.install "fga" + bash_completion.install "completions/fga.bash" => "fga" + zsh_completion.install "completions/fga.zsh" => "_fga" + fish_completion.install "completions/fga.fish" + man1.install "manpages/fga.1.gz" + end + end + if Hardware::CPU.arm? + url "https://github.com/openfga/cli/releases/download/v0.2.7/fga_0.2.7_darwin_arm64.tar.gz", using: CurlDownloadStrategy + sha256 "b08013933cb4f60bd072ca6fb4db2f82c8dccf5ba1a8785079118d3e324b7b57" + + def install + bin.install "fga" + bash_completion.install "completions/fga.bash" => "fga" + zsh_completion.install "completions/fga.zsh" => "_fga" + fish_completion.install "completions/fga.fish" + man1.install "manpages/fga.1.gz" + end + end + end + + on_linux do + if Hardware::CPU.arm? && Hardware::CPU.is_64_bit? + url "https://github.com/openfga/cli/releases/download/v0.2.7/fga_0.2.7_linux_arm64.tar.gz", using: CurlDownloadStrategy + sha256 "fafe2ff658a0f0c9febf83367263a12a7e268ecb17ec903a38675c733741d630" + + def install + bin.install "fga" + bash_completion.install "completions/fga.bash" => "fga" + zsh_completion.install "completions/fga.zsh" => "_fga" + fish_completion.install "completions/fga.fish" + man1.install "manpages/fga.1.gz" + end + end + if Hardware::CPU.intel? + url "https://github.com/openfga/cli/releases/download/v0.2.7/fga_0.2.7_linux_amd64.tar.gz", using: CurlDownloadStrategy + sha256 "ae37eef9253adebcacb1effc7ad3940c84e7f43f485f26159bc5706c5acf0965" + + def install + bin.install "fga" + bash_completion.install "completions/fga.bash" => "fga" + zsh_completion.install "completions/fga.zsh" => "_fga" + fish_completion.install "completions/fga.fish" + man1.install "manpages/fga.1.gz" + end + end + end + + head "https://github.com/openfga/cli.git", :branch => "main" + + test do + system "#{bin}/fga version" + end +end