From 8ccc5fb2061d3417c055ceba593d712ae475193d Mon Sep 17 00:00:00 2001 From: Jasmijn Wellner Date: Wed, 1 Jan 2025 15:08:44 +0100 Subject: [PATCH] Add support for LuaRocks See https://luarocks.org/modules/gvx/bitser --- .gitignore | 4 ++++ README.md | 4 ++++ rockspecs/{bitser-1.1-1.rockspec => bitser-1.1-2.rockspec} | 6 +++--- rockspecs/bitser-1.2-0.rockspec | 4 ++-- 4 files changed, 13 insertions(+), 5 deletions(-) rename rockspecs/{bitser-1.1-1.rockspec => bitser-1.1-2.rockspec} (85%) diff --git a/.gitignore b/.gitignore index a024c02..f7b62c7 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,7 @@ luacov.*.out class.lua slither.lua classic.lua + +# luarocks build artifacs +lua_install +*.rock diff --git a/README.md b/README.md index 45eff3f..e7f66e0 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,10 @@ Serializes and deserializes Lua values with LuaJIT. +```bash +luarocks install --server=https://luarocks.org/manifests/gvx bitser +``` + ```lua local bitser = require 'bitser' diff --git a/rockspecs/bitser-1.1-1.rockspec b/rockspecs/bitser-1.1-2.rockspec similarity index 85% rename from rockspecs/bitser-1.1-1.rockspec rename to rockspecs/bitser-1.1-2.rockspec index a69be01..5e36774 100644 --- a/rockspecs/bitser-1.1-1.rockspec +++ b/rockspecs/bitser-1.1-2.rockspec @@ -1,7 +1,7 @@ package = "bitser" -version = "1.1-1" +version = "1.1-2" source = { - url = "https://github.com/gvx/bitser.git", + url = "git+https://github.com/gvx/bitser.git", tag = "v1.1" } description = { @@ -16,7 +16,7 @@ description = { license = "ISC" } dependencies = { - "luajit <= 2.1" + -- "luajit <= 2.1" } build = { type = "builtin", diff --git a/rockspecs/bitser-1.2-0.rockspec b/rockspecs/bitser-1.2-0.rockspec index 4f57761..2edeb1e 100644 --- a/rockspecs/bitser-1.2-0.rockspec +++ b/rockspecs/bitser-1.2-0.rockspec @@ -1,7 +1,7 @@ package = "bitser" version = "1.2-0" source = { - url = "https://github.com/gvx/bitser.git", + url = "git+https://github.com/gvx/bitser.git", tag = "v1.2" } description = { @@ -16,7 +16,7 @@ description = { license = "ISC" } dependencies = { - "luajit <= 2.1" + --"luajit <= 2.1" } build = { type = "builtin",