Commit Graph

167 Commits

Author SHA1 Message Date
Enrique García Cota
8686162bce
make inspect work without rawget (#63) 2023-01-22 22:03:37 +01:00
Simon Wachter
b738a52e35
escape table keys that map to lua keywords (#59) 2023-01-19 13:16:48 +01:00
Gunter Labes
bac593278b
typo fix (#61) 2023-01-19 13:15:39 +01:00
Enrique García Cota
9c8a68da30 (chore) add 3.1.3 rockspec 2022-03-29 13:46:07 +02:00
Enrique García Cota
691eea1fc6 docs(changelog) 3.1.3 2022-03-18 13:49:10 +01:00
Enrique García Cota
f18082ac47 (perf) introduce perf test harness and refactor (#54)
Made a lot of backwards-compatible changes and simplifications to the code that I had wanted to do for a lot of time, while also keeping an eye in performance. The new changes improved overall performance on my limited, dev-machine-only, luajit-only tests.

Before:

```
$ luajit perf.lua
nil,string,empty,sequence,record,hybrid,recursive,meta,process,complex,big
0.054246,0.140177,0.149759,0.323062,0.441312,0.607064,0.296031,0.458631,0.105668,1.717528,2.047272
```

After:

```
$ luajit perf.lua
nil,string,empty,sequence,record,hybrid,recursive,meta,process,complex,big
0.036804,0.188984,0.099349,0.247425,0.342079,0.452339,0.203801,0.288931,0.169462,1.010763,1.616462
```
2022-03-18 13:44:36 +01:00
Enrique García Cota
2d842fb78b
(ci) add separate luacheck step and generation check (#53) 2022-02-13 22:29:13 +01:00
Enrique García Cota
35ed97a2d7 (docs) add Contributing section to Readme 2022-02-08 23:18:59 +01:00
Enrique García Cota
2012c711df (chore) add luacheck to Makefile 2022-02-08 23:18:10 +01:00
Enrique García Cota
3c7414a0d0
(refactor) rewrite using Teal (#52) 2022-02-08 22:56:03 +01:00
Enrique García Cota
c6472bccdf add 3.1.2 rockspec 2021-11-12 13:51:21 +01:00
Enrique García Cota
d4936f792b changelog for 3.1.2 2021-11-12 13:51:21 +01:00
Enrique García Cota
a74242cdac
Merge pull request #49 from kikito/fix-del-escape
escape DEL character. fixes #40
2021-11-12 12:58:38 +01:00
Enrique García Cota
f6c3f0b367 replace travis by github actions 2021-11-12 12:54:49 +01:00
Enrique García Cota
df482c613a escape DEL character. fixes #40 2021-11-12 10:48:57 +01:00
Enrique García Cota
b611db6bfa allow using inspect inside __tostring metamethods without errors 2018-04-06 23:14:00 +02:00
Enrique García Cota
bebc212672
Merge pull request #37 from kikito/rawpairs
Ignore __pairs and __ipairs metamethods when rendering tables
2018-03-19 19:07:59 +01:00
Enrique García Cota
9dc10c968f Ignore __pairs when iterating over tables
Related with #33
2018-03-19 19:04:07 +01:00
IntendedConsequence
b6bb292f68 ignore metatables with __metatable field set to non-nil non-table values 2018-02-18 22:59:44 +02:00
Enrique García Cota
78a91c40e5 3.1.1 rockspec 2018-01-02 13:16:49 +01:00
Enrique García Cota
7fc6126e32 update changelog 2018-01-02 13:15:24 +01:00
Enrique García Cota
1faab78bfb luacheck fix 2018-01-02 13:07:34 +01:00
Enrique García Cota
e95f34834b
Merge pull request #34 from akopytov/master
Support LuaJIT cdata and ctype values in Inspector:putValue().
2018-01-02 13:02:45 +01:00
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