From 8513c81ffb4ee8737a0cc430fb57adec4c15858e Mon Sep 17 00:00:00 2001 From: Kate Goldenring Date: Mon, 13 Nov 2023 11:27:40 -0800 Subject: [PATCH] Use version variable for download URLs Signed-off-by: Kate Goldenring --- Formula/spin.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Formula/spin.rb b/Formula/spin.rb index e0dd3e2..e1e6756 100644 --- a/Formula/spin.rb +++ b/Formula/spin.rb @@ -4,22 +4,22 @@ class Spin < Formula version "2.0.1" if OS.mac? && Hardware::CPU.intel? - url "https://github.com/fermyon/spin/releases/download/v2.0.1/spin-v2.0.1-macos-amd64.tar.gz" + url "https://github.com/fermyon/spin/releases/download/v#{version}/spin-v#{version}-macos-amd64.tar.gz" sha256 "00ddfa87cdbbb2089cf87300f581c1e1a7e8fa02a560dbb89145e89cbc552675" end if OS.mac? && Hardware::CPU.arm? - url "https://github.com/fermyon/spin/releases/download/v2.0.1/spin-v2.0.1-macos-aarch64.tar.gz" + url "https://github.com/fermyon/spin/releases/download/v#{version}/spin-v#{version}-macos-aarch64.tar.gz" sha256 "65bf7caf63fe9fd6b23c96dad8d6d71dd6c8028cf1684b6ff4b895aa4001bd29" end if OS.linux? && Hardware::CPU.intel? - url "https://github.com/fermyon/spin/releases/download/v2.0.1/spin-v2.0.1-linux-amd64.tar.gz" + url "https://github.com/fermyon/spin/releases/download/v#{version}/spin-v#{version}-linux-amd64.tar.gz" sha256 "686bb12b9244ed33bf54a53e62303879036632b476ad09a728172b260f26c8e7" end if OS.linux? && Hardware::CPU.arm? - url "https://github.com/fermyon/spin/releases/download/v2.0.1/spin-v2.0.1-linux-aarch64.tar.gz" + url "https://github.com/fermyon/spin/releases/download/v#{version}/spin-v#{version}-linux-aarch64.tar.gz" sha256 "e2ca780a1f914839fb7448db925c0376236fe2aea60173ead3201d4c2a0b89f1" end