-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjwtutil.rb
52 lines (45 loc) · 1.51 KB
/
jwtutil.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# typed: false
# frozen_string_literal: true
# This file was generated by GoReleaser. DO NOT EDIT.
class Jwtutil < Formula
desc "handy little jwt debugging utility to encode/decode tokens"
homepage "https://github.com/goware/jwtutil"
version "0.6.0"
license "MIT"
on_macos do
on_intel do
url "https://github.com/goware/jwtutil/releases/download/v0.6.0/jwtutil.darwin-amd64"
sha256 "dcd56b0242ae2472ed196bcf529b1f2d5329ac2250db19fd909dc03861c874e0"
def install
bin.install "jwtutil.darwin-amd64" => "jwtutil"
end
end
on_arm do
url "https://github.com/goware/jwtutil/releases/download/v0.6.0/jwtutil.darwin-arm64"
sha256 "840378e386fa9be7872f5d85fa54f69192aaca765e43806006981c6334db08f1"
def install
bin.install "jwtutil.darwin-arm64" => "jwtutil"
end
end
end
on_linux do
on_intel do
if Hardware::CPU.is_64_bit?
url "https://github.com/goware/jwtutil/releases/download/v0.6.0/jwtutil.linux-amd64"
sha256 "f166241f9e56661b72508d4fc983e88dafa325b5a782de7c91341e6a9d83c844"
def install
bin.install "jwtutil.linux-amd64" => "jwtutil"
end
end
end
on_arm do
if Hardware::CPU.is_64_bit?
url "https://github.com/goware/jwtutil/releases/download/v0.6.0/jwtutil.linux-arm64"
sha256 "40875cc59289d2b96bdba27dda71c226be654ec4a0e2a28c64ceb0503388788d"
def install
bin.install "jwtutil.linux-arm64" => "jwtutil"
end
end
end
end
end