Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | add one_of testing to avoid hash table ordering causing test to fail | leaf corcoran | 2020-04-25 | 2 | -3/+33 |
| | |||||
* | make tests fail when they fail | leaf corcoran | 2020-04-25 | 1 | -2/+2 |
| | |||||
* | tell cmake where lua is | leaf corcoran | 2020-04-25 | 1 | -1/+1 |
| | |||||
* | use local lua for makefile build | leaf corcoran | 2020-04-25 | 2 | -2/+2 |
| | |||||
* | build after tests, so tests can do their own build test | leaf corcoran | 2020-04-25 | 1 | -3/+4 |
| | |||||
* | fail if tests are blocked | leaf corcoran | 2020-04-25 | 1 | -1/+1 |
| | |||||
* | see what happens if we run tests on github actions | leaf corcoran | 2020-04-25 | 1 | -0/+29 |
| | |||||
* | use macro instead of header defines for Lua 5.2+ support | leaf corcoran | 2020-04-25 | 1 | -4/+4 |
| | |||||
* | Lua 5.2+ maxn support | leaf corcoran | 2020-04-25 | 1 | -1/+11 |
| | |||||
* | Lua 5.2+ unpack support | leaf corcoran | 2020-04-25 | 1 | -0/+2 |
| | |||||
* | support lua 5.3 with LUA_COMPAT_5_1 | leaf corcoran | 2020-04-25 | 1 | -0/+1 |
| | |||||
* | support lua 5.2 with LUA_COMPAT_ALL | leaf corcoran | 2020-04-25 | 1 | -0/+3 |
| | |||||
* | feature: add option to disable forward slash escaping2.1.0.8rc12.1.0.8 | Jesper Lundgren | 2020-03-24 | 3 | -0/+50 |
| | | | | Thanks @spacewander for optimization and documentation. | ||||
* | bugfix: we now only apply the lightuserdata mask on platforms that are at ↵2.1.0.7rc22.1.0.7 | 罗泽轩 | 2018-12-07 | 1 | -0/+5 |
| | | | | least 64bits. | ||||
* | feature: ported to the ARM64 platform by masking off the bits higher than ↵2.1.0.7rc1 | spacewander | 2018-10-17 | 1 | -9/+14 |
| | | | | | | 47-bit in the lightud. Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com> | ||||
* | luarocks: bumped version to 2.1.0.6. | WenMing | 2018-04-26 | 1 | -2/+3 |
| | | | | Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com> | ||||
* | bumped version to 2.1.0.6.2.1.0.6 | Yichun Zhang (agentzh) | 2018-04-19 | 2 | -2/+2 |
| | |||||
* | optimize: improved forward-compatibility with older versions of Lua/LuaJIT. | Thibault Charbonnier | 2018-01-02 | 1 | -6/+9 |
| | | | | Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com> | ||||
* | bugfix: fixed the C compiler warning "SO C90 forbids mixed declarations and ↵2.1.0.6rc2 | Yichun Zhang (agentzh) | 2017-11-17 | 1 | -2/+3 |
| | | | | code" on older operating systems. | ||||
* | feature: set cjson.array_mt on decoded JSON arrays.2.1.0.6rc1 | Thibault Charbonnier | 2017-11-17 | 3 | -6/+113 |
| | | | | | | | this can be turned on via cjson.decode_array_with_array_mt(true). off by default. Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com> | ||||
* | feature: added new cjson.array_mt metatable to allow enforcing JSON array ↵ | Thibault Charbonnier | 2017-11-15 | 3 | -21/+155 |
| | | | | | | encoding. Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com> | ||||
* | travis: skipped the std lua 5.1 interpreter tests. | Yichun Zhang (agentzh) | 2017-11-15 | 1 | -1/+1 |
| | |||||
* | tests: now we use luajit to run the test suite. | Yichun Zhang (agentzh) | 2017-11-15 | 4 | -5/+12 |
| | |||||
* | travis-ci: run LuaJIT tests against openresty/luajit2 -b v2.1-agentzh. | Thibault Charbonnier | 2017-05-29 | 1 | -5/+20 |
| | | | | Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com> | ||||
* | bugfix: fixed a -Wsign-compare compiler warning. | gnought | 2017-04-10 | 1 | -1/+1 |
| | | | | Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com> | ||||
* | bugfix: conditionally build luaL_setfuncs() function as the latest LuaJIT ↵2.1.0.5 | Datong Sun | 2017-04-05 | 1 | -2/+3 |
| | | | | v2.1 already includes it. fixes #21. | ||||
* | feature: supports MS C compiler older than VC2012. | spacewander | 2017-01-31 | 4 | -1/+22 |
| | | | | Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com> | ||||
* | bugfix: preserve 'empty_array_mt' behavior upon multiple loadings of the module. | Thibault Charbonnier | 2016-12-17 | 2 | -5/+40 |
| | | | | | | | | | | | | | Prior to this fix, when the module would be loaded several times (by-passing `package.loaded`), the `lua_cjson_new` function would override the `empty_array_mt` table in the registry with a new one. Comparison for equality between those tables would then fail, and the behavior would be broken. This was discovered after loading `cjson` *and* `cjson.safe` in the same application, resulting in two calls to `lua_cjson_new`. Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com> | ||||
* | chore: ignored the generated test_case.lua file. | Thibault Charbonnier | 2016-12-17 | 1 | -0/+1 |
| | | | | Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com> | ||||
* | bugfix: fixed compilation errors from the Microsoft C compiler. | Tim Chen | 2016-11-06 | 1 | -0/+6 |
| | | | | Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com> | ||||
* | Merge pull request #13 from chipitsine/master | Yichun Zhang | 2016-10-11 | 1 | -4/+6 |
|\ | | | | | travis-ci: bugfix, now we fail on either test | ||||
| * | travis-ci: bugfix, now we fail on either test | Ilya Shipitsin | 2016-10-10 | 1 | -4/+6 |
|/ | |||||
* | Merge pull request #10 from chipitsine/master | Yichun Zhang | 2016-10-07 | 1 | -3/+12 |
|\ | | | | | travis-ci: move package management to "apt" plugin | ||||
| * | travis-ci: move package management to "apt" plugin | Ilya Shipitsin | 2016-10-07 | 1 | -3/+12 |
|/ | |||||
* | travis-ci: added valgrind testing mode as well.2.1.0.4 | Yichun Zhang (agentzh) | 2016-05-15 | 1 | -2/+5 |
| | |||||
* | travis-ci: run our new tests as well. | Yichun Zhang (agentzh) | 2016-05-15 | 1 | -0/+3 |
| | |||||
* | Merge pull request #8 from chipitsine/master | Yichun Zhang | 2016-04-24 | 2 | -24/+2 |
|\ | | | | | cpcheck added, rpmbuild test removed | ||||
| * | removed rpmbuild test | Ilya Shipitsin | 2016-04-24 | 1 | -23/+0 |
| | | | | | | it does not sense to test rpmbuild that way, it should be either rewritten or removed | ||||
| * | cppcheck added on build | Ilya Shipitsin | 2016-04-24 | 1 | -1/+2 |
|/ | |||||
* | .travis.yml: removed line trailing spaces. | Yichun Zhang (agentzh) | 2016-04-21 | 1 | -1/+1 |
| | |||||
* | Merge pull request #7 from chipitsine/master | Yichun Zhang | 2016-04-11 | 2 | -4/+27 |
|\ | | | | | travis-ci integration | ||||
| * | travis-ci integration | Ilya Shipitsin | 2016-04-11 | 2 | -4/+27 |
|/ | |||||
* | docs: add a README with fork infos | Thibault Charbonnier | 2016-03-14 | 1 | -0/+124 |
| | |||||
* | feat: cjson.as_array metamethod to enforce empty array encoding | Thibault Charbonnier | 2016-03-03 | 2 | -5/+108 |
| | | | | | | | | | | | | | | A proposed improved patch of openresty/lua-cjson#1 (a patch commonly proposed to lua-cjson and its forks), taking into considerations comments from the original PR. - use a lightuserdata key to store the metatable in the Lua Registry (more efficient and avoiding conflicts) - provide a lightuserdata resulting in empty arrays as well - tests cases moved to t/agentzh.t, where cases for 'encode_empty_table_as_object' are already written. It seems like a better place for tests specific to the OpenResty fork's additions. - a more complex test case | ||||
* | Merge pull request #5 from thibaultCha/fix/16-digit-precision | Yichun Zhang | 2016-02-26 | 1 | -1/+1 |
|\ | | | | | fix 16 decimal number encoding assertion | ||||
| * | fix 16 decimal number encoding assertion | Thibault Charbonnier | 2016-02-26 | 1 | -1/+1 |
|/ | |||||
* | feature: now we allow up to 16 decimal places in JSON number encoding via ↵2.1.0.3 | Brandon | 2015-11-04 | 3 | -2/+17 |
| | | | | | | | | cjson.encode_number_precision(). thanks lordnynex for the patch in #4. Test cases for changing precision | ||||
* | tests: made the valgrind testing mode more obvious. | Yichun Zhang (agentzh) | 2015-11-04 | 1 | -0/+1 |
| | |||||
* | fixed the warning "inline function ‘fpconv_init’ declared but never ↵2.1.0.3rc2 | Yichun Zhang (agentzh) | 2015-11-01 | 1 | -1/+1 |
| | | | | defined" from gcc. | ||||
* | Makefile: removed the slash (/) after $(DESTDIR) so as to support empty ↵2.1.0.3rc1 | Yichun Zhang (agentzh) | 2015-10-30 | 1 | -13/+13 |
| | | | | DESTDIR and relative path values in the following variable. |