From 54ffda99c521a737e8add440d7c31fc2ee7ca75b Mon Sep 17 00:00:00 2001 From: Paul Kulchenko Date: Sat, 25 Jul 2015 23:39:35 -0700 Subject: [PATCH] Upgraded Mobdebug (0.628) to include `keyignore` serializer option. --- lualibs/mobdebug/mobdebug.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lualibs/mobdebug/mobdebug.lua b/lualibs/mobdebug/mobdebug.lua index b7fc260d6..3f5fdfc6d 100644 --- a/lualibs/mobdebug/mobdebug.lua +++ b/lualibs/mobdebug/mobdebug.lua @@ -19,7 +19,7 @@ end)("os") local mobdebug = { _NAME = "mobdebug", - _VERSION = 0.627, + _VERSION = 0.628, _COPYRIGHT = "Paul Kulchenko", _DESCRIPTION = "Mobile Remote Debugger for the Lua programming language", port = os and os.getenv and tonumber((os.getenv("MOBDEBUG_PORT"))) or 8172, @@ -129,7 +129,7 @@ end local function q(s) return string.gsub(s, '([%(%)%.%%%+%-%*%?%[%^%$%]])','%%%1') end local serpent = (function() ---- include Serpent module for serialization -local n, v = "serpent", 0.284 -- (C) 2012-15 Paul Kulchenko; MIT License +local n, v = "serpent", 0.285 -- (C) 2012-15 Paul Kulchenko; MIT License local c, d = "Paul Kulchenko", "Lua serializer and pretty printer" local snum = {[tostring(1/0)]='1/0 --[[math.huge]]',[tostring(-1/0)]='-1/0 --[[-math.huge]]',[tostring(0/0)]='0/0'} local badtype = {thread = true, userdata = true, cdata = true} @@ -201,6 +201,7 @@ local function s(t, opts) local value, ktype, plainindex = t[key], type(key), n <= maxn and not sparse if opts.valignore and opts.valignore[value] -- skip ignored values; do nothing or opts.keyallow and not opts.keyallow[key] + or opts.keyignore and opts.keyignore[key] or opts.valtypeignore and opts.valtypeignore[type(value)] -- skipping ignored value types or sparse and value == nil then -- skipping nils; do nothing elseif ktype == 'table' or ktype == 'function' or badtype[ktype] then