Skip to content

Commit

Permalink
less duplication + v0.1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
mickmaccallum committed Apr 9, 2024
1 parent ab2b03e commit 3403fbd
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions Formula/parra-cli.rb
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
$VERSION = "0.1.11"

Check failure on line 1 in Formula/parra-cli.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

Style/GlobalVars: Do not introduce global variables.
$ARM_SHA = "88900d16e410be8c0922b60de41862165bd19b4ca0143076a306bda9a42a0b4e"

Check failure on line 2 in Formula/parra-cli.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

Style/GlobalVars: Do not introduce global variables.
$X86_SHA = "1b5f4ddce8aee2f73b38515904957fae1ef7022fdabf569e414e4fc94f0d7e37"

Check failure on line 3 in Formula/parra-cli.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

Style/GlobalVars: Do not introduce global variables.

class ParraCli < Formula
desc "A utility for getting started with your next Parra.io project."

Check failure on line 6 in Formula/parra-cli.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

FormulaAudit/Desc: Description shouldn't start with an article.

Check failure on line 6 in Formula/parra-cli.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

FormulaAudit/Desc: Description shouldn't end with a full stop.
homepage "https://parra.io"
license "MIT"
url "https://github.com/Parra-Inc/parra-cli.git", tag: "0.1.10"
url "https://github.com/Parra-Inc/parra-cli.git", tag: VERSION

Check failure on line 9 in Formula/parra-cli.rb

View workflow job for this annotation

GitHub Actions / test-bot (ubuntu-22.04)

FormulaAudit/ComponentsOrder: `url` (line 9) should be put before `license` (line 8)

on_macos do
if Hardware::CPU.intel?
url "https://github.com/Parra-Inc/parra-cli/releases/download/v0.1.10/parra-cli-0.1.10.x86_64_apple_darwin.tar.gz"
sha256 "b84218bcdca6576f751838e3fe6f10f96f51b696ac369a9a02ca3a84eb72948b"
elsif Hardware::CPU.arm?
url "https://github.com/Parra-Inc/parra-cli/releases/download/v0.1.10/parra-cli-0.1.10.aarch64_apple_darwin.tar.gz"
sha256 "d587d83ad8fba6244cece3201f8e18c084002d76dada921a871403ba4d3ad1b1"
if Hardware::CPU.arm?
url "https://github.com/Parra-Inc/parra-cli/releases/download/v#{VERSION}/parra-cli-#{VERSION}.aarch64_apple_darwin.tar.gz"
sha256 ARM_SHA
elsif Hardware::CPU.intel?
url "https://github.com/Parra-Inc/parra-cli/releases/download/v#{VERSION}/parra-cli-#{VERSION}.x86_64_apple_darwin.tar.gz"
sha256 X86_SHA
end
end

Expand Down

0 comments on commit 3403fbd

Please sign in to comment.