Skip to content

Commit

Permalink
release: fga v0.3.0 (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhamzeh authored Mar 29, 2024
1 parent b463a21 commit 5c1d8fe
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Formula/fga.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
class Fga < Formula
desc "A cross-platform CLI to interact with an OpenFGA server."
homepage "https://openfga.dev/"
version "0.2.7"
version "0.3.0"
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"
url "https://github.com/openfga/cli/releases/download/v0.3.0/fga_0.3.0_darwin_amd64.tar.gz", using: CurlDownloadStrategy
sha256 "bab8f9f5e9638eee87cd13e34c71b89d60bf8436270e4f0cb01dd51d677d8b44"

def install
bin.install "fga"
Expand All @@ -25,8 +25,8 @@ def install
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"
url "https://github.com/openfga/cli/releases/download/v0.3.0/fga_0.3.0_darwin_arm64.tar.gz", using: CurlDownloadStrategy
sha256 "fa7168b5b0d16312404e4a6b841ce27b8fc253653a141d041659741d7187852d`"

def install
bin.install "fga"
Expand All @@ -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.7/fga_0.2.7_linux_arm64.tar.gz", using: CurlDownloadStrategy
sha256 "fafe2ff658a0f0c9febf83367263a12a7e268ecb17ec903a38675c733741d630"
url "https://github.com/openfga/cli/releases/download/v0.3.0/fga_0.3.0_linux_arm64.tar.gz", using: CurlDownloadStrategy
sha256 "8b570760210c0c9c7ce6a72292c309b83c2b3a4d05fecd1fdb309f53f9889264"

def install
bin.install "fga"
Expand All @@ -52,8 +52,8 @@ def install
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"
url "https://github.com/openfga/cli/releases/download/v0.3.0/fga_0.3.0_linux_amd64.tar.gz", using: CurlDownloadStrategy
sha256 "0a60eb23a0fc38f72cf88ea66f6922f623091413a250e0a2fb882f4bcdc02a78"

def install
bin.install "fga"
Expand Down
73 changes: 73 additions & 0 deletions Formula/[email protected]
Original file line number Diff line number Diff line change
@@ -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.3.0"
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.3.0/fga_0.3.0_darwin_amd64.tar.gz", using: CurlDownloadStrategy
sha256 "bab8f9f5e9638eee87cd13e34c71b89d60bf8436270e4f0cb01dd51d677d8b44"

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.3.0/fga_0.3.0_darwin_arm64.tar.gz", using: CurlDownloadStrategy
sha256 "fa7168b5b0d16312404e4a6b841ce27b8fc253653a141d041659741d7187852d`"

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.3.0/fga_0.3.0_linux_arm64.tar.gz", using: CurlDownloadStrategy
sha256 "8b570760210c0c9c7ce6a72292c309b83c2b3a4d05fecd1fdb309f53f9889264"

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.3.0/fga_0.3.0_linux_amd64.tar.gz", using: CurlDownloadStrategy
sha256 "0a60eb23a0fc38f72cf88ea66f6922f623091413a250e0a2fb882f4bcdc02a78"

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

0 comments on commit 5c1d8fe

Please sign in to comment.