mirror of
https://github.com/pkulchenko/serpent.git
synced 2024-11-21 23:24:24 +00:00
Updated documentation for 0.30.
This commit is contained in:
parent
10be108506
commit
d786835976
13
README.md
13
README.md
@ -193,6 +193,19 @@ See LICENSE file.
|
|||||||
|
|
||||||
## History
|
## History
|
||||||
|
|
||||||
|
### v0.30 (Sep 01 2017)
|
||||||
|
- Updated `pairs` to avoid using `__pairs` in Lua 5.2+.
|
||||||
|
- Added `metatostring` option to disable `__tostring` processing during serialization.
|
||||||
|
- Added `level` to the parameters of the custom function (closes #25).
|
||||||
|
- Added `maxlength` option to limit the space taken by table elements.
|
||||||
|
- Optimized serialization of functions when `nocode` option is specified.
|
||||||
|
- Added protection from `__serialize` check failing (pkulchenko/ZeroBraneStudio#732).
|
||||||
|
- Added `keyignore` option for the serializer.
|
||||||
|
- Added check for environments that may not have 'default' tables as tables.
|
||||||
|
- Added numeric format to preserve floating point precision (closes #17).
|
||||||
|
- Added using `debug.metatable` when available.
|
||||||
|
- Improved handling of failures in `__tostring` (pkulchenko/ZeroBraneStudio#446).
|
||||||
|
|
||||||
### v0.28 (May 06 2015)
|
### v0.28 (May 06 2015)
|
||||||
- Switched to a method proposed by @SoniEx2 to disallow function calls (#15).
|
- Switched to a method proposed by @SoniEx2 to disallow function calls (#15).
|
||||||
- Added more `tostring` for Lua 5.3 support (pkulchenko/ZeroBraneStudio#401).
|
- Added more `tostring` for Lua 5.3 support (pkulchenko/ZeroBraneStudio#401).
|
||||||
|
25
misc/serpent-0.30-1.rockspec
Normal file
25
misc/serpent-0.30-1.rockspec
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
package = "serpent"
|
||||||
|
version = "0.30-1"
|
||||||
|
source = {
|
||||||
|
url = "git://github.com/pkulchenko/serpent.git",
|
||||||
|
tag = "0.30"
|
||||||
|
}
|
||||||
|
|
||||||
|
description = {
|
||||||
|
summary = "Lua serializer and pretty printer",
|
||||||
|
homepage = "https://github.com/pkulchenko/serpent",
|
||||||
|
maintainer = "Paul Kulchenko <paul@kulchenko.com>",
|
||||||
|
license = "MIT",
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies = {
|
||||||
|
"lua >= 5.1, < 5.4",
|
||||||
|
}
|
||||||
|
|
||||||
|
build = {
|
||||||
|
type = "builtin",
|
||||||
|
modules = {
|
||||||
|
["serpent"] = "src/serpent.lua",
|
||||||
|
},
|
||||||
|
copy_directories = { "t" },
|
||||||
|
}
|
@ -1,4 +1,4 @@
|
|||||||
local n, v = "serpent", "0.291" -- (C) 2012-17 Paul Kulchenko; MIT License
|
local n, v = "serpent", "0.30" -- (C) 2012-17 Paul Kulchenko; MIT License
|
||||||
local c, d = "Paul Kulchenko", "Lua serializer and pretty printer"
|
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 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}
|
local badtype = {thread = true, userdata = true, cdata = true}
|
||||||
|
Loading…
Reference in New Issue
Block a user