debian/0000775000000000000000000000000012535605224007174 5ustar debian/changelog0000664000000000000000000000416412535605217011055 0ustar lua-json (1.3.1-1ubuntu0.1~ubuntu14.04.1) trusty; urgency=medium * No-change backport to trusty -- Micah Gersten Tue, 09 Jun 2015 10:46:02 -0500 lua-json (1.3.1-1ubuntu0.1) utopic; urgency=medium * Add upstream patch to fix lpeg 0.12 compatibility (LP: #1443288) - add debian/patches/fix-lpeg.patch - add debian/patches/series -- Micah Gersten Tue, 02 Jun 2015 23:50:53 -0500 lua-json (1.3.1-1) unstable; urgency=medium * [3d18e710] Merge tag 'upstream/1.3.1' Upstream version 1.3.1 -- Bernd Zeimetz Thu, 13 Feb 2014 23:46:50 +0100 lua-json (1.3-1) unstable; urgency=low * [e90dafec] Changes by Enrico Tassi - thanks for the patch! * Switch to dh-lua * Package renamed according to the new Lua policy * [2f427b4d] Make debian/watch work again. * [6d097344] Merge tag 'upstream/1.3' Upstream version 1.3 * [14787062] Enable support for Lua5.2 * [1f053906] Use 3.0 (quilt) format as we have symlinks in the debian folder. -- Bernd Zeimetz Sun, 06 May 2012 20:50:32 +0200 lua-json (1.2.2-1) unstable; urgency=low * [bb887c07] Merge commit 'upstream/1.2.2' -- Bernd Zeimetz Thu, 28 Jul 2011 18:07:13 +0200 lua-json (1.2.1-1) unstable; urgency=low * [9b2b474a] Fixing filenamemangle in watch file. * [cdacecf3] Merge branch 'upstream' -- Bernd Zeimetz Thu, 10 Feb 2011 10:34:12 +0100 lua-json (1.1.1-1) unstable; urgency=low * New upstream version. * [f05a443c] Merge branch 'upstream' * [e296fdd1] Bumping Standards-Version to 3.8.4. No changes needed. * [0b8d7f9f] Updating watch file. * [853dd452] src directory was renamed to lua, update debian/install. -- Bernd Zeimetz Thu, 27 May 2010 09:49:47 +0200 lua-json (0.10-2) unstable; urgency=low * [9c816ef8] Depend on liblua5.1-lpeg2 or liblua5.1-lpeg1 (Closes: #528548). -- Bernd Zeimetz Wed, 13 May 2009 18:13:23 +0200 lua-json (0.10-1) unstable; urgency=low * Initial release. -- Bernd Zeimetz Tue, 09 Dec 2008 22:33:51 +0100 debian/rules0000775000000000000000000000010312277245552010255 0ustar #!/usr/bin/make -f %: dh $@ --buildsystem=lua --with lua debian/copyright0000664000000000000000000000372012277245552011140 0ustar This package was debianized by Bernd Zeimetz on Tue, 09 Dec 2008 23:48:01 +0100 It was downloaded via git from git://github.com/harningt/luajson.git A http view of the repository is available at http://github.com/harningt/luajson/tree/master Upstream Author: Thomas Harning Jr. Copyright: Copyright (c) 2008 Thomas Harning Jr. License: The following license is applied to all documents in this project with the exception of the 'tests' directory at the root. The 'tests' directory is dual-licenses Public Domain / MIT, whichever is least restrictive in your legal jurisdiction. The MIT License Copyright (c) 2008 Thomas Harning Jr. 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. The Debian packaging is copyright 2008, Bernd Zeimetz and is licensed under the MIT License. debian/watch0000664000000000000000000000015612277245552010236 0ustar version=3 http://github.com/harningt/luajson/downloads /downloads/harningt/luajson/luajson-([0-9.]+)\.tar\.gz debian/control0000664000000000000000000000176612533503623010607 0ustar Source: lua-json Section: interpreters Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Bernd Zeimetz Build-Depends: debhelper (>= 8), dh-lua Standards-Version: 3.8.4 Vcs-Git: git://git.recluse.de/debian/pkg-liblua-json.git Vcs-Browser: http://git.recluse.de/debian/pkg-liblua-json.git/ Homepage: http://www.eharning.us/wiki/luajson/ Package: lua-json Architecture: all Depends: ${misc:Depends}, lua-lpeg Replaces: liblua5.1-json (<< 1.2.2-2~) Breaks: liblua5.1-json (<< 1.2.2-2~) Provides: liblua5.1-json, ${lua:Provides} XB-Lua-Versions: ${lua:Versions} Description: JSON decoder/encoder for Lua LuaJSON is a customizable JSON decoder/encoder using LPEG for parsing. Package: liblua5.1-json Section: oldlibs Priority: extra Architecture: all Depends: ${misc:Depends}, lua-json Description: Transitional package for lua-json This is a transitional package to ease upgrades to the lua-json package. It can safely be removed. debian/compat0000664000000000000000000000000212277245552010401 0ustar 8 debian/patches/0000775000000000000000000000000012533503756010630 5ustar debian/patches/series0000664000000000000000000000001712533503623012034 0ustar fix-lpeg.patch debian/patches/fix-lpeg.patch0000664000000000000000000000576212533503756013376 0ustar Description: Fix compatibility with lpeg 0.12 Author: Thomas Harning Jr Origin: upstream, https://github.com/harningt/luajson/commit/1edf20952172fcdab9757ebad4da726218c4d7d9 Bug: https://github.com/harningt/luajson/issues/27 Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=719519 Bug-Ubuntu: https://bugs.launchpad.net/debian/+source/lua-json/+bug/1443288 --- lua/json/decode/strings.lua | 14 +++++++------- lua/json/decode/util.lua | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) Index: lua-json-1.3.1/lua/json/decode/strings.lua =================================================================== --- lua-json-1.3.1.orig/lua/json/decode/strings.lua 2015-06-02 23:51:51.502806248 -0500 +++ lua-json-1.3.1/lua/json/decode/strings.lua 2015-06-02 23:51:51.498806249 -0500 @@ -18,11 +18,11 @@ local function get_error(item) local fmt_string = item .. " in string [%q] @ %i:%i" - return function(data, index) + return lpeg.P(function(data, index) local line, line_index, bad_char, last_line = util.get_invalid_character_info(data, index) local err = fmt_string:format(bad_char, line, line_index) error(err) - end + end) * 1 end local bad_unicode = get_error("Illegal unicode escape") @@ -67,8 +67,8 @@ end local doSimpleSub = lpeg.C(lpeg.S("'\"\\/bfnrtvz")) / knownReplacements -local doUniSub = lpeg.P('u') * (lpeg.C(util.hexpair) * lpeg.C(util.hexpair) + lpeg.P(bad_unicode)) -local doXSub = lpeg.P('x') * (lpeg.C(util.hexpair) + lpeg.P(bad_hex)) +local doUniSub = lpeg.P('u') * (lpeg.C(util.hexpair) * lpeg.C(util.hexpair) + bad_unicode) +local doXSub = lpeg.P('x') * (lpeg.C(util.hexpair) + bad_hex) local defaultOptions = { badChars = '', @@ -93,8 +93,8 @@ local function buildCaptureString(quote, badChars, escapeMatch) local captureChar = (1 - lpeg.S("\\" .. badChars .. quote)) + (lpeg.P("\\") / "" * escapeMatch) - captureChar = captureChar + (-#lpeg.P(quote) * lpeg.P(bad_character)) - local captureString = captureChar^0 + -- During error, force end + local captureString = captureChar^0 + (-#lpeg.P(quote) * bad_character + -1) return lpeg.P(quote) * lpeg.Cs(captureString) * lpeg.P(quote) end @@ -111,7 +111,7 @@ escapeMatch = escapeMatch + options.additionalEscapes end if options.escapeCheck then - escapeMatch = options.escapeCheck * escapeMatch + lpeg.P(bad_escape) + escapeMatch = options.escapeCheck * escapeMatch + bad_escape end local captureString for i = 1, #quotes do Index: lua-json-1.3.1/lua/json/decode/util.lua =================================================================== --- lua-json-1.3.1.orig/lua/json/decode/util.lua 2015-06-02 23:51:51.502806248 -0500 +++ lua-json-1.3.1/lua/json/decode/util.lua 2015-06-02 23:51:51.498806249 -0500 @@ -33,7 +33,7 @@ local line, line_index, bad_char, last_line = get_invalid_character_info(data, pos) local text = fmt:format(pos, line, line_index, bad_char, last_line) error(text) - end) + end) * 1 end local function unexpected() local msg = "unexpected character" debian/lua-json.docs0000664000000000000000000000001612277245552011602 0ustar docs/* README debian/lua5.2.json.dh-lua.conf0000777000000000000000000000000012277245552017171 2lua5.1.json.dh-lua.confustar debian/lua5.1.json.dh-lua.conf0000664000000000000000000000013512277245552013177 0ustar PKG_NAME=json LUA_SOURCES=$(shell find lua/ -name *.lua) LUA_SOURCES_MANGLER=sed 's?^lua/??' debian/source/0000775000000000000000000000000012277245552010503 5ustar debian/source/format0000664000000000000000000000001412277245552011711 0ustar 3.0 (quilt)