Skip to content

Commit

Permalink
fix(rockspec) allow Lua 5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Tieske committed Dec 9, 2021
1 parent b97584b commit 68c468e
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 9 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ env:
- LUA="lua 5.1"
- LUA="lua 5.2"
- LUA="lua 5.3"
- LUA="lua 5.4"
- LUA="luajit 2.0"
- LUA="luajit 2.0 --compat 5.2"
- LUA="luajit 2.1"
Expand Down
33 changes: 33 additions & 0 deletions rockspecs/timerwheel-0.2.0-2.rockspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
local package_name = "timerwheel"
local package_version = "0.2.0"
local rockspec_revision = "2"
local github_account_name = "Tieske"
local github_repo_name = package_name .. ".lua"


package = package_name
version = package_version.."-"..rockspec_revision
source = {
url = "git://github.com/"..github_account_name.."/"..github_repo_name..".git",
branch = (package_version == "scm") and "master" or nil,
tag = (package_version ~= "scm") and package_version or nil,
}
description = {
summary = "Timers based on a timerwheel",
detailed = [[
Creating and deleting is very fast. Typically suited for
setting timeouts, which usually do not execute.
]],
homepage = "https://github.com/"..github_account_name.."/"..github_repo_name,
license = "MIT"
}
dependencies = {
"lua >= 5.1, < 5.5",
"coxpcall",
}
build = {
type = "builtin",
modules = {
["timerwheel.init"] = "src/timerwheel.lua",
},
}
23 changes: 14 additions & 9 deletions timerwheel-scm-1.rockspec
Original file line number Diff line number Diff line change
@@ -1,23 +1,28 @@
package = "timerwheel"
version = "scm-1"
local package_name = "timerwheel"
local package_version = "scm"
local rockspec_revision = "1"
local github_account_name = "Tieske"
local github_repo_name = package_name .. ".lua"


package = package_name
version = package_version.."-"..rockspec_revision
source = {
url = "https://github.com/Tieske/timerwheel.lua/archive/master.tar.gz",
dir = "timerwheel.lua-master",
--url = "git://github.com/Tieske/timerwheel.lua",
--tag = "0.1.0",
branch = "master",
url = "git://github.com/"..github_account_name.."/"..github_repo_name..".git",
branch = (package_version == "scm") and "master" or nil,
tag = (package_version ~= "scm") and package_version or nil,
}
description = {
summary = "Timers based on a timerwheel",
detailed = [[
Creating and deleting is very fast. Typically suited for
setting timeouts, which usually do not execute.
]],
homepage = "https://github.com/Tieske/timerwheel.lua",
homepage = "https://github.com/"..github_account_name.."/"..github_repo_name,
license = "MIT"
}
dependencies = {
"lua >= 5.1, < 5.4",
"lua >= 5.1, < 5.5",
"coxpcall",
}
build = {
Expand Down

0 comments on commit 68c468e

Please sign in to comment.