Skip to content

Commit

Permalink
lua: update luarocks to 2.4.3
Browse files Browse the repository at this point in the history
Closes #21296.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
  • Loading branch information
DomT4 authored and ilovezfs committed Dec 3, 2017
1 parent 7ff3018 commit 963fb61
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Formula/lua.rb
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 963fb61

Please sign in to comment.