From f88d572233f77076756f5d3e1809467962dbe1aa Mon Sep 17 00:00:00 2001 From: Thijs Schreijer Date: Thu, 19 Oct 2023 13:34:15 +0200 Subject: [PATCH] fix(rockspec): revert #23 due to lagging cjson releases see https://github.com/openresty/lua-cjson/issues/96 --- CHANGELOG.md | 6 +++ lua-resty-ljsonschema-scm-1.rockspec | 2 +- .../lua-resty-ljsonschema-1.1.6-2.rockspec | 41 +++++++++++++++++++ 3 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 rockspecs/lua-resty-ljsonschema-1.1.6-2.rockspec diff --git a/CHANGELOG.md b/CHANGELOG.md index 725b81c..138507b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,12 @@ The scope of what is covered by the version number excludes: ## Version history +### 1.1.6-2 (19-Oct-2023) + + - this is not a real release (has no tag), since it doesn't change any code. It only updates + the rockspec to revert [#23](https://github.com/Tieske/lua-resty-ljsonschema/pull/23). + See: https://github.com/openresty/lua-cjson/issues/96 + ### 1.1.6 (21-Sep-2023) - fix: properly check custom.array_mt diff --git a/lua-resty-ljsonschema-scm-1.rockspec b/lua-resty-ljsonschema-scm-1.rockspec index c854cdc..5324e7c 100644 --- a/lua-resty-ljsonschema-scm-1.rockspec +++ b/lua-resty-ljsonschema-scm-1.rockspec @@ -28,7 +28,7 @@ description = { dependencies = { "lua >= 5.1", "net-url", - "lua-cjson", + -- "lua-cjson", disabled, see https://github.com/openresty/lua-cjson/issues/96 } build = { diff --git a/rockspecs/lua-resty-ljsonschema-1.1.6-2.rockspec b/rockspecs/lua-resty-ljsonschema-1.1.6-2.rockspec new file mode 100644 index 0000000..364a643 --- /dev/null +++ b/rockspecs/lua-resty-ljsonschema-1.1.6-2.rockspec @@ -0,0 +1,41 @@ +local package_name = "lua-resty-ljsonschema" +local package_version = "1.1.6" +local rockspec_revision = "2" +local github_account_name = "Tieske" +local github_repo_name = package_name +local git_checkout = package_version == "scm" and "master" or package_version + + +package = package_name +version = package_version .. "-" .. rockspec_revision + +source = { + url = "git://github.com/"..github_account_name.."/"..github_repo_name..".git", + branch = git_checkout +} + +description = { + summary = "JSON Schema data validator", + detailed = [[ + This module is a data validator that implements JSON Schema draft 4. + Given a JSON schema, it will generate a validator function that can be used + to validate any kind of data (not limited to JSON). + ]], + homepage = "https://github.com/"..github_account_name.."/"..github_repo_name, + license = "MIT/X11" +} + +dependencies = { + "lua >= 5.1", + "net-url", + -- "lua-cjson", disabled, see https://github.com/openresty/lua-cjson/issues/96 +} + +build = { + type = "builtin", + modules = { + ["resty.ljsonschema.init"] = "src/resty/ljsonschema/init.lua", + ["resty.ljsonschema.store"] = "src/resty/ljsonschema/store.lua", + ["resty.ljsonschema.metaschema"] = "src/resty/ljsonschema/metaschema.lua", + } +}