From 963fb6124121cd4ff78a663607a580cb2f86433c Mon Sep 17 00:00:00 2001 From: Dominyk Tiller Date: Sat, 2 Dec 2017 20:48:03 +0000 Subject: [PATCH] lua: update luarocks to 2.4.3 Closes #21296. Signed-off-by: ilovezfs --- Formula/lua.rb | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Formula/lua.rb b/Formula/lua.rb index e12913386d8fe..a424b0c79248f 100644 --- a/Formula/lua.rb +++ b/Formula/lua.rb @@ -3,7 +3,7 @@ class Lua < Formula homepage "https://www.lua.org/" url "https://www.lua.org/ftp/lua-5.2.4.tar.gz" sha256 "b9e2e4aad6789b3b63a056d442f7b39f0ecfca3ae0f1fc0ae4e9614401b69f4b" - revision 4 + revision 5 bottle do cellar :any @@ -47,9 +47,11 @@ class Lua < Formula end end + # Don't use the https://luarocks.org/releases/luarocks-x.y.z.tar.gz URL + # directly as it redirects to the HTTP version of the below URL. resource "luarocks" do - url "https://keplerproject.github.io/luarocks/releases/luarocks-2.3.0.tar.gz" - sha256 "68e38feeb66052e29ad1935a71b875194ed8b9c67c2223af5f4d4e3e2464ed97" + url "https://luarocks.github.io/luarocks/releases/luarocks-2.4.3.tar.gz" + sha256 "4d414d32fed5bb121c72d3ff1280b7f2dc9027a9bc012e41dfbffd5b519b362e" end def install @@ -145,7 +147,7 @@ def caveats; <<~EOS system "#{bin}/lua", "-e", "print ('Ducks are cool')" if File.exist?(bin/"luarocks-5.2") - mkdir testpath/"luarocks" + (testpath/"luarocks").mkpath system bin/"luarocks-5.2", "install", "moonscript", "--tree=#{testpath}/luarocks" assert_predicate testpath/"luarocks/bin/moon", :exist? end