Support Lua 5.3.5

This commit is contained in:
Peter Melnichenko 2018-07-10 19:15:32 +03:00
parent cecb55f5ad
commit 49b8acac6e
2 changed files with 8 additions and 7 deletions

View File

@ -883,16 +883,16 @@ class RioLua(Lua):
versions = [ versions = [
"5.1", "5.1.1", "5.1.2", "5.1.3", "5.1.4", "5.1.5", "5.1", "5.1.1", "5.1.2", "5.1.3", "5.1.4", "5.1.5",
"5.2.0", "5.2.1", "5.2.2", "5.2.3", "5.2.4", "5.2.0", "5.2.1", "5.2.2", "5.2.3", "5.2.4",
"5.3.0", "5.3.1", "5.3.2", "5.3.3", "5.3.4" "5.3.0", "5.3.1", "5.3.2", "5.3.3", "5.3.4", "5.3.5"
] ]
translations = { translations = {
"5": "5.3.4", "5": "5.3.5",
"5.1": "5.1.5", "5.1": "5.1.5",
"5.1.0": "5.1", "5.1.0": "5.1",
"5.2": "5.2.4", "5.2": "5.2.4",
"5.3": "5.3.4", "5.3": "5.3.5",
"^": "5.3.4", "^": "5.3.5",
"latest": "5.3.4" "latest": "5.3.5"
} }
checksums = { checksums = {
"lua-5.1.tar.gz" : "7f5bb9061eb3b9ba1e406a5aa68001a66cb82bac95748839dc02dd10048472c1", "lua-5.1.tar.gz" : "7f5bb9061eb3b9ba1e406a5aa68001a66cb82bac95748839dc02dd10048472c1",
@ -911,6 +911,7 @@ class RioLua(Lua):
"lua-5.3.2.tar.gz": "c740c7bb23a936944e1cc63b7c3c5351a8976d7867c5252c8854f7b2af9da68f", "lua-5.3.2.tar.gz": "c740c7bb23a936944e1cc63b7c3c5351a8976d7867c5252c8854f7b2af9da68f",
"lua-5.3.3.tar.gz": "5113c06884f7de453ce57702abaac1d618307f33f6789fa870e87a59d772aca2", "lua-5.3.3.tar.gz": "5113c06884f7de453ce57702abaac1d618307f33f6789fa870e87a59d772aca2",
"lua-5.3.4.tar.gz": "f681aa518233bc407e23acf0f5887c884f17436f000d453b2491a9f11a52400c", "lua-5.3.4.tar.gz": "f681aa518233bc407e23acf0f5887c884f17436f000d453b2491a9f11a52400c",
"lua-5.3.5.tar.gz": "0c2eed3f960446e1a3e4b9a1ca2f3ff893b6ce41942cf54d5dd59ab4b3b058ac",
} }
all_patches = { all_patches = {
"When loading a file, Lua may call the reader function again after it returned end of input": """ "When loading a file, Lua may call the reader function again after it returned end of input": """
@ -1970,7 +1971,7 @@ def main(argv=None):
parser.add_argument( parser.add_argument(
"-l", "--lua", help="Version of standard PUC-Rio Lua to install. " "-l", "--lua", help="Version of standard PUC-Rio Lua to install. "
"Version can be specified as a version number, e.g. 5.2 or 5.3.1. " "Version can be specified as a version number, e.g. 5.2 or 5.3.1. "
"Versions 5.1.0 - 5.3.4 are supported, " "Versions 5.1.0 - 5.3.5 are supported, "
"'^' or 'latest' can be used to install the latest stable version. " "'^' or 'latest' can be used to install the latest stable version. "
"If the argument contains '@', sources will be downloaded " "If the argument contains '@', sources will be downloaded "
"from a git repo using URI before '@' and using part after '@' as git reference " "from a git repo using URI before '@' and using part after '@' as git reference "

View File

@ -53,7 +53,7 @@ class TestCLI(unittest.TestCase):
def test_install_latest_lua_with_latest_luarocks(self): def test_install_latest_lua_with_latest_luarocks(self):
self.assertHererocksSuccess(["--lua", "latest", "--luarocks", "latest"]) self.assertHererocksSuccess(["--lua", "latest", "--luarocks", "latest"])
self.assertHererocksSuccess(["--show"], ["Programs installed in", "Compat: default"]) self.assertHererocksSuccess(["--show"], ["Programs installed in", "Compat: default"])
self.assertSuccess(["lua", "-v"], ["Lua 5.3.4"]) self.assertSuccess(["lua", "-v"], ["Lua 5.3.5"])
self.assertSuccess(["lua", "-e", "assert(bit32)"]) self.assertSuccess(["lua", "-e", "assert(bit32)"])
self.assertSuccess(["luarocks", "--version"]) self.assertSuccess(["luarocks", "--version"])