debian/0000775000000000000000000000000012030010332007150 5ustar debian/source/0000775000000000000000000000000012015677734010504 5ustar debian/source/format0000664000000000000000000000001512015677734011713 0ustar 3.0 (quilt) debian/stamp-makefile-build0000664000000000000000000000000012015677734013111 0ustar debian/patches/0000775000000000000000000000000012015677734010633 5ustar debian/patches/disable-utf16-test0000664000000000000000000000165712015677734014112 0ustar Index: liblua-cjson/tests/test.lua =================================================================== --- liblua-cjson.orig/tests/test.lua 2012-08-23 23:50:19.000000000 +0200 +++ liblua-cjson/tests/test.lua 2012-08-23 23:51:33.000000000 +0200 @@ -308,8 +308,8 @@ json.decode, { testdata.octets_escaped }, true, { testdata.octets_raw } }, { "Decode single UTF-16 escape", json.decode, { [["\uF800"]] }, true, { "\239\160\128" } }, - { "Decode all UTF-16 escapes (including surrogate combinations)", - json.decode, { testdata.utf16_escaped }, true, { testdata.utf8_raw } }, + --{ "Decode all UTF-16 escapes (including surrogate combinations)", + -- json.decode, { testdata.utf16_escaped }, true, { testdata.utf8_raw } }, { "Decode swapped surrogate pair [throw error]", json.decode, { [["\uDC00\uD800"]] }, false, { "Expected value but found invalid unicode escape code at character 2" } }, debian/patches/lua5.2-function-names0000664000000000000000000000220112015677734014503 0ustar Index: liblua-cjson/lua/cjson/util.lua =================================================================== --- liblua-cjson.orig/lua/cjson/util.lua 2012-08-22 22:21:31.000000000 +0200 +++ liblua-cjson/lua/cjson/util.lua 2012-08-24 10:52:27.000000000 +0200 @@ -146,7 +146,21 @@ end if type1 ~= "table" then - return val1 == val2 + -- Lua 5.2 reports function names more precisely + if _VERSION == "Lua 5.2" and type1 == "string" then + if val1 == val2 then return true else + local start, stop = string.find(val2, "to '%?'") + if start == nil then return false else + local prefix2 = string.sub(val2,1,start+3) + local postfix2 = string.sub(val2,stop) + local prefix1 = string.sub(val1,1,start+3) + local postfix1 = string.sub(val1,-string.len(postfix2)) + return prefix1 == prefix2 and postfix1 == postfix2 + end + end + else + return val1 == val2 + end end -- check_keys stores all the keys that must be checked in val2 debian/patches/series0000664000000000000000000000005112015677734012044 0ustar disable-utf16-test lua5.2-function-names debian/rules0000775000000000000000000000015512015677734010265 0ustar #!/usr/bin/make -f %: dh $@ --buildsystem=lua --with lua override_dh_clean: dh_clean rm -f debian/trash debian/changelog0000664000000000000000000000047412030010332011027 0ustar lua-cjson (2.1.0+dfsg-2) unstable; urgency=low * Add debian/watch file. -- Dmitry E. Oboukhov Mon, 24 Sep 2012 11:50:30 +0400 lua-cjson (2.1.0+dfsg-1) unstable; urgency=low * Initial release. (Closes: #685591) -- Dmitry E. Oboukhov Fri, 24 Aug 2012 14:35:49 +0400 debian/lua-cjson-dev.docs0000664000000000000000000000007112015677734012523 0ustar manual.txt manual.html lua/json2lua.lua lua/lua2json.lua debian/lua5.1.dh-lua.conf0000664000000000000000000000043512015677734012233 0ustar ### mandatory fields PKG_NAME=cjson ### things relative to the C library part CLIB_OBJS=lua_cjson.lo fpconv.lo strbuf.lo ### things relative to the lua library part LUA_TEST=cd tests/ && @@LUA@@ test.lua LUA_SOURCES=$(wildcard lua/cjson/*.lua) LUA_SOURCES_MANGLER=sed -e 's?^lua/??' debian/control0000664000000000000000000000305312015677734010610 0ustar Source: lua-cjson Maintainer: The Debian Lua Team Uploaders: Dmitry E. Oboukhov Build-Depends: debhelper (>= 9), dh-lua Standards-Version: 3.9.3 Section: interpreters Priority: optional Homepage: http://www.kyne.com.au/~mark/software/lua-cjson.php VCS-Git: git://anonscm.debian.org/collab-maint/liblua-cjson.git VCS-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/liblua-cjson.git;a=summary Package: lua-cjson Architecture: any Multi-Arch: same Pre-Depends: multiarch-support Depends: ${misc:Depends}, ${shlibs:Depends} Provides: ${lua:Provides} XB-Lua-Versions: ${lua:Versions} Description: JSON parser/encoder for Lua This library allows you to easily convert Lua values to JSON strings and back. 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 Package: lua-cjson-dev Section: libdevel Architecture: any Multi-Arch: same Pre-Depends: multiarch-support Depends: ${misc:Depends}, ${shlibs:Depends}, lua-cjson (= ${binary:Version}) Provides: ${lua:Provides} XB-Lua-Versions: ${lua:Versions} Description: JSON parser/encoder for Lua, development files This package contains the development files of the lua-cjson library, useful to create a statically linked binary (like a C application or a standalone Lua interpreter). Documentation is also shipped within this package. debian/compat0000664000000000000000000000000312015677734010403 0ustar 7 debian/lua5.2.dh-lua.conf0000777000000000000000000000000012015677734015252 2lua5.1.dh-lua.confustar debian/watch0000664000000000000000000000017712030010270010207 0ustar version=3 opts=dversionmangle=s/\+dfsg// \ http://www.kyne.com.au/~mark/software/ \ download/lua-cjson-(\d+(?:\.\d+)+).tar.gz debian/stamp-makefile-install0000664000000000000000000000000012015677734013460 0ustar debian/README.source0000664000000000000000000000004612015677734011363 0ustar rfc4627.txt was removed from sources. debian/copyright0000664000000000000000000000452012015677734011140 0ustar Format-Specification: http://anonscm.debian.org/viewvc/dep/web/deps/dep5.mdwn?view=markup&pathrev=135 Maintainer: Mark Pulford Source: http://www.kyne.com.au/~mark/software/lua-cjson.php Name: CJSON Files: g_fmt.c, dtoa.c Copyright: 1991-2001, Lucent Technologies. License: Permission to use, copy, modify, and distribute this software for any purpose without fee is hereby granted, provided that this entire notice is included in all copies of any software which is or includes a copy or modification of this software and in all copies of the supporting documentation for such software. . THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED WARRANTY. IN PARTICULAR, NEITHER THE AUTHOR NOR LUCENT MAKES ANY REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE. Files: debian/* Copyright: 2012, Dmitry E. Oboukhov License: Expat Files: * Copyright: 2010-2012, Mark Pulford Comment: In the Lua community this license is better known as "MIT". Unfortunately other variants of this license are also known as "MIT". To obtain a machine intepretable copyright file Debian prefers to name this version of the MIT license using the non ambiguous term "Expat". License: Expat Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.