From 96e6e0ce67ed070a52223c1e9518c9018b1ce376 Mon Sep 17 00:00:00 2001 From: Johnny Wang Date: Fri, 10 Dec 2021 20:19:58 +0800 Subject: bumped version to 2.1.0.10. (#79) --- lua-cjson-2.1.0.10-1.rockspec | 57 +++++++++++++++++++++++++++++++++++++++++++ lua-cjson-2.1.0.9-1.rockspec | 57 ------------------------------------------- lua_cjson.c | 2 +- tests/test.lua | 2 +- 4 files changed, 59 insertions(+), 59 deletions(-) create mode 100644 lua-cjson-2.1.0.10-1.rockspec delete mode 100644 lua-cjson-2.1.0.9-1.rockspec diff --git a/lua-cjson-2.1.0.10-1.rockspec b/lua-cjson-2.1.0.10-1.rockspec new file mode 100644 index 0000000..2c2458a --- /dev/null +++ b/lua-cjson-2.1.0.10-1.rockspec @@ -0,0 +1,57 @@ +package = "lua-cjson" +version = "2.1.0.10-1" + +source = { + url = "git+https://github.com/openresty/lua-cjson", + tag = "2.1.0.10", +} + +description = { + summary = "A fast JSON encoding/parsing module", + detailed = [[ + The Lua CJSON module provides JSON support for Lua. It features: + - Fast, standards compliant encoding/parsing routines + - Full support for JSON with UTF-8, including decoding surrogate pairs + - Optional run-time support for common exceptions to the JSON specification + (infinity, NaN,..) + - No dependencies on other libraries + ]], + homepage = "http://www.kyne.com.au/~mark/software/lua-cjson.php", + license = "MIT" +} + +dependencies = { + "lua >= 5.1" +} + +build = { + type = "builtin", + modules = { + cjson = { + sources = { "lua_cjson.c", "strbuf.c", "fpconv.c" }, + defines = { +-- LuaRocks does not support platform specific configuration for Solaris. +-- Uncomment the line below on Solaris platforms if required. +-- "USE_INTERNAL_ISINF" + } + } + }, + install = { + lua = { + ["cjson.util"] = "lua/cjson/util.lua" + }, + bin = { + json2lua = "lua/json2lua.lua", + lua2json = "lua/lua2json.lua" + } + }, + -- Override default build options (per platform) + platforms = { + win32 = { modules = { cjson = { defines = { + "DISABLE_INVALID_NUMBERS", "USE_INTERNAL_ISINF" + } } } } + }, + copy_directories = { "tests" } +} + +-- vi:ai et sw=4 ts=4: diff --git a/lua-cjson-2.1.0.9-1.rockspec b/lua-cjson-2.1.0.9-1.rockspec deleted file mode 100644 index 32a230e..0000000 --- a/lua-cjson-2.1.0.9-1.rockspec +++ /dev/null @@ -1,57 +0,0 @@ -package = "lua-cjson" -version = "2.1.0.9-1" - -source = { - url = "git+https://github.com/openresty/lua-cjson", - tag = "2.1.0.9", -} - -description = { - summary = "A fast JSON encoding/parsing module", - detailed = [[ - The Lua CJSON module provides JSON support for Lua. It features: - - Fast, standards compliant encoding/parsing routines - - Full support for JSON with UTF-8, including decoding surrogate pairs - - Optional run-time support for common exceptions to the JSON specification - (infinity, NaN,..) - - No dependencies on other libraries - ]], - homepage = "http://www.kyne.com.au/~mark/software/lua-cjson.php", - license = "MIT" -} - -dependencies = { - "lua >= 5.1" -} - -build = { - type = "builtin", - modules = { - cjson = { - sources = { "lua_cjson.c", "strbuf.c", "fpconv.c" }, - defines = { --- LuaRocks does not support platform specific configuration for Solaris. --- Uncomment the line below on Solaris platforms if required. --- "USE_INTERNAL_ISINF" - } - } - }, - install = { - lua = { - ["cjson.util"] = "lua/cjson/util.lua" - }, - bin = { - json2lua = "lua/json2lua.lua", - lua2json = "lua/lua2json.lua" - } - }, - -- Override default build options (per platform) - platforms = { - win32 = { modules = { cjson = { defines = { - "DISABLE_INVALID_NUMBERS", "USE_INTERNAL_ISINF" - } } } } - }, - copy_directories = { "tests" } -} - --- vi:ai et sw=4 ts=4: diff --git a/lua_cjson.c b/lua_cjson.c index 0c41cab..ff61c47 100644 --- a/lua_cjson.c +++ b/lua_cjson.c @@ -52,7 +52,7 @@ #endif #ifndef CJSON_VERSION -#define CJSON_VERSION "2.1.0.9" +#define CJSON_VERSION "2.1.0.10" #endif #ifdef _MSC_VER diff --git a/tests/test.lua b/tests/test.lua index 605fc91..7e523a3 100755 --- a/tests/test.lua +++ b/tests/test.lua @@ -93,7 +93,7 @@ local cjson_tests = { -- Test API variables { "Check module name, version", function () return json._NAME, json._VERSION end, { }, - true, { "cjson", "2.1.0.9" } }, + true, { "cjson", "2.1.0.10" } }, -- Test decoding simple types { "Decode string", -- cgit v1.2.3-55-g6feb