From 9e66cb3e737083118bd0a9e5c4ba42526f45525c Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Sat, 2 Dec 2023 14:27:35 +0300 Subject: [PATCH] chore: Overhaul dev rockspec with LunarModules boilerplate and test dependencies --- lua_cliargs-dev-1.rockspec | 33 ++++++++++++++++++++++++++++----- 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/lua_cliargs-dev-1.rockspec b/lua_cliargs-dev-1.rockspec index 00ab791..4cc462e 100644 --- a/lua_cliargs-dev-1.rockspec +++ b/lua_cliargs-dev-1.rockspec @@ -1,9 +1,19 @@ -package = "lua_cliargs" -version = "dev-1" +local package_name = "lua_cliargs" +local package_version = "dev" +local rockspec_revision = "1" +local github_account_name = "lunarmodules" +local github_repo_name = package_name + +rockspec_format = "3.0" +package = package_name +version = package_version .. "-" .. rockspec_revision + source = { - url = "git+https://github.com/lunarmodules/lua_cliargs.git", - branch = "master" + url = "git+https://github.com/" .. github_account_name .. "/" .. github_repo_name .. ".git" } + +if package_version == "dev" then source.branch = "master" else source.tag = "v" .. package_version end + description = { summary = "A command-line argument parser.", detailed = [[ @@ -13,11 +23,24 @@ description = { cliargs allows you to define required, optional, and flag arguments. ]], homepage = "https://github.com/amireh/lua_cliargs", - license = "MIT " + license = "MIT" } + dependencies = { "lua >= 5.1" } + +test_dependencies = { + "busted", + "dkjson", + "inifile", + "yaml", +} + +test = { + type = "busted", +} + build = { type = "builtin", modules = {