Skip to content

Commit

Permalink
add rockspecs, bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
lalawue committed Nov 13, 2021
1 parent ec03102 commit 31fc448
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 2 deletions.
2 changes: 1 addition & 1 deletion moocscript/core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ end
local function mcVersion()
local lver = jit and jit.version or _VERSION
local pver = type(LPeg.version) == "function" and ("LPeg " .. LPeg.version()) or LPeg.version
return "moocscript v0.4.20210925, " .. lver .. ", " .. pver
return "moocscript v0.5.20211114, " .. lver .. ", " .. pver
end
local function mcLoaded()
return package.mooc_loaded ~= nil
Expand Down
2 changes: 1 addition & 1 deletion moocscript/core.mooc
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ fn mcAppendLoader() {
fn mcVersion() {
lver = jit and jit.version or _VERSION
pver = type(LPeg.version) == "function" and ("LPeg " .. LPeg.version()) or LPeg.version
return "moocscript v0.4.20210925, " .. lver .. ", " .. pver
return "moocscript v0.5.20211114, " .. lver .. ", " .. pver
}

fn mcLoaded() {
Expand Down
35 changes: 35 additions & 0 deletions rockspecs/mooncake-0.5.20211114-2.rockspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
package = "mooncake"
version = "0.5.20211114-2"
source = {
url = "git+https://github.com/lalawue/mooncake",
tag = "0.5.20211114",
}
description = {
summary = "Swift like programming language compiles to Lua",
detailed = [[
See https://github.com/lalawue/mooncake for more information.
]],
homepage = "https://github.com/lalawue/mooncake",
license = "MIT/X11",
maintainer = "lalawue <[email protected]>"
}
dependencies = {
"lua >= 5.1",
"lpeg >= 1.0.2",
"luafilesystem >= 1.5"
}
build = {
type = "builtin",
modules = {
["moocscript.compile"] = "moocscript/compile.lua",
["moocscript.core"] = "moocscript/core.lua",
["moocscript.parser"] = "moocscript/parser.lua",
["moocscript.utils"] = "moocscript/utils.lua",
["moocscript.class"] = "moocscript/class.lua",
},
install = {
bin = {
"bin/moocscript"
}
}
}

0 comments on commit 31fc448

Please sign in to comment.