From 82c44d967c82f6ba6fb3f0b2a1282e708d75e02b Mon Sep 17 00:00:00 2001 From: Clemens Diebold <46743155+clemensdiebold@users.noreply.github.com> Date: Mon, 8 Apr 2019 10:36:43 +0200 Subject: [PATCH] Fix file versioning With the release of version 0.1.0, they have changed the download URI, I think. Now in both places the version is prefixed with "v", as you can see in the following example: https://github.com/buildpack/pack/releases/download/v0.1.0/pack-v0.1.0-macos.tgz So I think '@@verNum = v.sub "v", ""' is not necessary any more. --- pack.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pack.rb b/pack.rb index ed7b89c..5686123 100644 --- a/pack.rb +++ b/pack.rb @@ -5,7 +5,7 @@ class Pack < Formula v = "v0.1.0" # CI Managed @@verNum = v.sub "v", "" - url "https://github.com/buildpack/pack/releases/download/#{v}/pack-#{@@verNum}-macos.tar.gz" + url "https://github.com/buildpack/pack/releases/download/#{v}/pack-#{v}-macos.tar.gz" version v sha256 "" # CI Managed