rst256
805ea9e88d
Store used external function in local scope
...
Fix bug like this:
function fn(...) setmetatable = {...} return setmetatable end
print(inspect(fn(1,2,3))) -- error, attempt to call a table value (global 'setmetatable')
2015-01-16 05:44:00 +07: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
kikito
182e6f28c1
Fix float keys being masked in tables with array elements
2014-09-19 22:50:48 +02:00
kikito
99deb522f8
refactor out commacontrol method
2014-09-19 22:35:07 +02:00
kikito
e35338984d
Touch stuff about license. Add change log
2014-09-15 10:51:02 +02:00
kikito
103e8e843d
Remove deprecated stuff from read me
2014-09-15 10:49:48 +02:00
kikito
c22d3381e7
Fix process example in README
2014-09-15 10:49:12 +02:00
kikito
33af4ee2ea
update travis
2014-09-13 14:44:56 +02:00
kikito
99e8c03959
newline & indent options
2014-09-13 12:33:20 +02:00
kikito
9054ee1051
<key>, <metatable> -> inspect.KEY, inspect.METATABLE
2014-09-13 12:12:41 +02:00
kikito
1fb5373a45
Use '<key>' and '<metatable> on keys correctly
2014-09-12 15:36:38 +02:00
kikito
b9b780caad
unindent in specs
2014-09-07 22:32:31 +02:00
kikito
9ce951f6af
updated readme with wishes
2014-09-07 17:54:37 +02:00
kikito
d07147ed54
transform back into metatable-based object-orientation
2014-08-21 20:15:25 +02:00
kikito
2961caa14a
process option handles keys as well as items
2014-08-16 19:44:35 +02:00
kikito
5ecaca9205
better test names
2014-08-16 16:50:29 +02:00
kikito
e74c899b7d
refactor processRecursive
2014-08-16 16:35:24 +02:00
kikito
a1b30ad8a3
process now handles most values. But what to do with keys?
2014-07-06 18:44:31 +02:00
kikito
7195bfa423
remove filter option
2014-07-06 17:24:37 +02:00
Enrique García
e67a7471d4
Merge pull request #14 from ignacio/patch-1
...
README still mentions telescope instead of busted
2014-03-16 04:08:55 +01:00
Ignacio Burgueño
ddf5d00e1c
Still mentions telescope
2014-03-15 17:49:59 -07:00
Enrique García
afb37ab9e9
Merge pull request #13 from cota/for-kikito
...
README: fix typos
2014-03-10 17:43:10 +01:00
Emilio G. Cota
6d3a72ee1e
README: fix typos
...
Signed-off-by: Emilio G. Cota <cota@braap.org>
2014-03-10 12:35:14 -04:00
kikito
a2ccd9220c
extend filter with a path parameter. Fixes #12
2014-02-09 18:42:38 +01:00
Enrique García
b718a2e55c
Merge pull request #10 from Kodiologist/escaping
...
Fix escaping bug (GH-9)
2014-01-09 04:02:16 -08:00
Kodi Arfer
fbb524a813
removed use of string.quote("%q", str)
2014-01-07 10:57:42 -05:00
Kodi Arfer
0303fec453
tweaked string escaping, fixing GH-9
2014-01-07 09:23:20 -05:00
Kodi Arfer
588486afde
removed ineffectual entry in controlCharsTranslation
2014-01-07 09:23:20 -05:00
Kodi Arfer
a5291a2a2c
renamed "unescape" functions to "escape"
...
These functions replace raw characters with escape sequences rather than the reverse.
2014-01-07 09:23:11 -05:00
Kodi Arfer
6373d7748a
added more escaping tests
2014-01-07 08:56:28 -05:00
kikito
cef9f42521
.
2013-09-15 22:22:34 +02:00
kikito
da707f574f
added 2.0-1 rockspec
2013-09-15 14:35:48 +02:00
kikito
42c17eedbb
moved rockspec to rockspec folder
2013-09-15 14:27:49 +02:00
kikito
455fc40587
updated version to 2.0.0
2013-09-15 13:32:39 +02:00
kikito
e47dbfc55c
updated README to the latest options
2013-09-15 13:32:04 +02:00
kikito
76138d86a7
added filter option
2013-09-15 13:02:45 +02:00
kikito
8a65da658a
made depth an options parameter
2013-09-15 11:23:01 +02:00
kikito
e898803196
reordering of code in inspect.lua
2013-09-14 18:14:52 +02:00
kikito
0de3c69e5d
made inspect.lua not object-oriented
2013-09-14 18:12:47 +02:00