Alexey Kopytov
a4a63bb0d1
Support LuaJIT cdata and ctype values in Inspector:putValue().
...
Add special handling for cdata and ctype types provided by LuaJIT: use
tostring() to print values of those types, which either provides a more
meaningful default type description (e.g. 'ctype<uint64_t>' instead of
'<ctype 1>') or a user-defined value as described at
http://luajit.org/ext_ffi_api.html#tostring
2017-12-24 11:15:16 +03:00
kikito
a384174649
updates version to 3.1.0
2016-04-10 20:54:14 +02:00
kikito
69fc645184
simplifies id generation. Fixes #28
2016-04-10 20:47:46 +02:00
kikito
dca60a2beb
Renaming of variables and spacing
2016-04-10 13:52:01 +02:00
kikito
bdf85c8f90
Splits specs into two, to illustrate the different handling of escaped control chars
2016-04-10 13:51:20 +02:00
kikito
1ca5576b59
Retab & spacing
2016-04-10 13:49:47 +02:00
kikito
f8da52ca3d
Merge branch 'zerochars' of https://github.com/andreashofer123/inspect.lua into andreashofer123-zerochars
2016-04-08 19:42:55 +02:00
kikito
86a7d70370
adds new rockspec
2016-04-08 19:38:09 +02:00
Enrique García
3300ae7847
Merge pull request #27 from andreashofer123/tostring
...
fix endless recursion when using inspect to reimplement global tostring
2016-04-08 19:26:28 +02:00
Enrique García
833b0bc183
Merge pull request #26 from andreashofer123/process
...
fix problem with recursive tables when using the 'process' option
2016-04-04 01:41:02 +02:00
Andreas Hofer
1f54536b56
changed function processRecursive
2016-04-03 20:13:05 +02:00
Andreas Hofer
e091fcd43d
changed 'tostring' from a field of inspect to a local variable
2016-04-03 20:08:15 +02:00
Andreas Hofer
864066c51e
added more control characters to test case
2016-04-03 19:51:48 +02:00
Andreas Hofer
ef3ae6b2d7
alternative implementation to fix problem with Lua 5.1
2016-03-31 21:22:23 +02:00
Andreas Hofer
61d02902b3
fix problem reported by coverage analysis
2016-03-31 20:20:50 +02:00
Andreas Hofer
89588bd4d9
fix problem reported by luacheck
2016-03-31 20:13:35 +02:00
Andreas Hofer
2a5205e53c
fix problem with escaping zero and other control characters
2016-03-30 19:33:20 +02:00
Andreas Hofer
d051ae061c
fix endless recursion when using inspect to reimplement global tostring
2016-03-29 22:53:26 +02:00
Andreas Hofer
d372d2ab08
fix problem with recursive tables when using the 'process' option
2016-03-29 22:14:10 +02:00
kikito
a998635207
bumps version to 3.0.3 and updates changelog
2016-03-06 17:15:06 +01:00
kikito
5673f2364d
Stops relying on rawlen/# to calculate the length of the sequence part of a table
...
Fixes #24
2016-03-06 17:06:14 +01:00
kikito
74643aea09
updates travis to include coverage & static analysis
2016-03-06 16:08:55 +01:00
kikito
0d468cb70b
adds new rockspec file
2015-11-28 14:11:41 +01:00
kikito
a23e03d037
bumps version to 3.0.2
2015-11-28 14:10:17 +01:00
Enrique García
efa8b85ab1
Merge pull request #23 from mpeterv/fix-weak-tables
...
Do not allow collecting weak tables while they are being inspected
2015-11-28 14:07:35 +01:00
mpeterv
daaefbd870
Do not allow collecting weak tables while they are being inspected
...
Fixes #22
2015-11-27 14:53:56 +03:00
kikito
2213313a94
add new rockspec
2015-11-21 17:26:31 +01:00
kikito
d4efbb9ee4
bump version to 3.0.1
2015-11-21 17:23:34 +01:00
kikito
e9dc27ab6e
Adds a test for __len and uses _G.rawlen instead of rawlen to avoid warnings
2015-11-21 17:19:53 +01:00
Enrique García
144dec31f7
Merge pull request #21 from Nymphium/get_t_length_with_rawlen
...
avoid __len metamethod
2015-11-21 17:17:13 +01:00
kikito
4f9761b631
fixes __len issue using rawlen instead of #t in a couple places
2015-11-21 17:13:48 +01:00
kikito
162d497b0d
second attempt at fixing travis
2015-11-21 17:10:23 +01:00
kikito
f01a007c91
attempts to fix failing travis
2015-11-21 17:08:09 +01:00
kikito
387a2f683a
adds test for rawlen
2015-11-21 17:04:28 +01:00
nymphium
3392fa6314
just use # for Lua 5.1
2015-11-20 23:51:44 +09:00
kikito
3d27a547e0
uses hererocks in travis
2015-11-13 22:11:17 +01:00
nymphium
6c1a22c207
implement simple rawlen function for Lua 5.1
2015-11-13 05:58:04 +09:00
nymphium
ec524dfc6a
avoid __len metamethod
2015-11-13 05:35:01 +09:00
Enrique García
96a1e6cc6f
Merge pull request #19 from mpeterv/fix-spec
...
Fix order of arguments in assertions
2014-11-19 17:59:18 +01:00
Enrique García
47e186d1e2
Merge pull request #18 from mpeterv/remove-redundant-function
...
Remove redundant `escapeChar` function
2014-11-19 17:57:37 +01:00
mpeterv
373d56d4be
Fix order of arguments in assertions
...
The first argument must be the expected value, the second - the actual one.
2014-11-18 20:02:55 +03:00
mpeterv
b2217c6806
Remove redundant escapeChar
function
...
`string.gsub` can accept a table as the third argument, no need to wrap it
in a function.
2014-11-18 19:42:53 +03:00
kikito
54d2c28c7a
changelog moved to its own file
2014-09-21 11:39:20 +02:00
kikito
8df8cd8b33
upped version. Fixes #17
2014-09-21 11:27:36 +02:00
Enrique García
334e5cb68f
Update README.md
2014-09-20 16:14:47 +02:00
Enrique García
0997a4e846
Update README.md
2014-09-20 10:51:01 +02:00
kikito
cdaefcf744
rockspec for inspect 3.0
2014-09-19 23:05:04 +02:00
kikito
e4a9c872b4
remove redundant describe block
2014-09-19 22:56:57 +02:00
kikito
f153849088
remove unused values & params
2014-09-19 22:54:35 +02:00
kikito
3eb9c65c7b
fix inconsistent var name
2014-09-19 22:52:10 +02:00