Commit graph

123 commits

Author SHA1 Message Date
alisdair sullivan
200fb231a9 fresh api. virtually whole new thing, entirely new interface and heavily modified encoder/decoder 2011-10-21 18:16:16 -07:00
alisdair sullivan
9c5710b97c reorg of opts parsing, some minor source cleanups 2011-10-19 06:51:36 -07:00
alisdair sullivan
9e8361e10a incremental test, fixed revealed bug in incomlete implementation 2011-08-31 19:35:09 -07:00
alisdair sullivan
7e88a14525 massive simplification of api, operation and internals. removes all demo modules temporarily 2011-08-31 18:52:01 -07:00
alisdair sullivan
6234e4a986 moves headers back to include dir so include_lib works. except jsx_format.hrl, because jsx_format needs a full rewrite 2011-08-16 22:45:32 -07:00
alisdair sullivan
48ada362e9 (broken) test to check equivalency of encoder/decoder apis. more cases needed 2011-08-13 07:22:46 -07:00
alisdair sullivan
4a078bd44a move opts handling to jsx.erl for earlier failure on badopts 2011-08-10 01:28:25 -07:00
alisdair sullivan
aca326b42e multi_term mode removed until sane interface can be developed 2011-08-10 00:35:51 -07:00
alisdair sullivan
ba057d13cc encoder exported correctly 2011-08-10 00:33:52 -07:00
alisdair sullivan
3485ca5413 whitespace 2011-08-09 21:04:27 -07:00
alisdair sullivan
8bb0f66470 unless iterate option is specified, jsx now buffers events internally before returning 2011-08-09 17:49:42 -07:00
alisdair sullivan
5cd967b26d discovered and fixed a couple more broken tests 2011-08-03 00:15:18 -07:00
alisdair sullivan
b3eb058463 revert change from strings/keys being presented as binaries to being presented as lists of characters. ~30% speedup 2011-07-31 19:05:30 -07:00
alisdair sullivan
20f9e0368d tests could fail silently when file:consult failed, fixed 2011-07-31 18:43:14 -07:00
alisdair sullivan
100f707899 streamlined options 2011-07-28 19:21:19 -07:00
alisdair sullivan
bac3ece706 whitespace 2011-07-28 18:48:07 -07:00
alisdair sullivan
b153ce3685 moves escaping tests to general test lib, minor refactoring of test runner to facilitate 2011-07-26 19:58:48 -07:00
alisdair sullivan
2720b2e0fb noncharacter tests 2011-07-26 19:46:31 -07:00
alisdair sullivan
c5c98482fc test for noncharacters, fixed bug discovered by test 2011-07-26 19:28:41 -07:00
alisdair sullivan
68d78c8e25 new api: strings and keys returned as binaries, integers as integers, floats as floats, tuple format changed from {event, ..., ...} to {jsx, ..., ...}, tests updated 2011-07-26 00:35:17 -07:00
alisdair sullivan
2ee96eb356 tests updated to reflect parser changes, eep0018 and format module still contain failing tests 2011-07-22 21:36:14 -07:00
alisdair sullivan
3bf5506292 unifies options to encoder/decoder to allow abstraction over various different built in iterators 2011-07-21 06:14:48 -07:00
alisdair sullivan
e7025efe50 is_json inputs now line up with format inputs 2011-07-17 20:55:54 -07:00
alisdair sullivan
9cee07212f add encoder/0 to jsx.erl 2011-07-17 20:55:54 -07:00
alisdair sullivan
746d8e469c renames jsx_opts to jsx_decoder_opts 2011-07-17 20:55:54 -07:00
alisdair sullivan
7079a6ead7 whitespace fixes for contributed patch 2011-07-04 21:07:50 -07:00
amtal
b9d10181ab switched to error/2 from error/1 in exported funcs
Passing a list of arguments in the second parameter, makes them
show up in the stack trace in place of the function arity number.

For referentially transparent functions (which foo_to_bar tend to
be) failures can then be reproduced from just the stack trace!

If using error/1, you must rely on some higher layer to add enough
info to reproduce the crash.
2011-06-23 14:41:51 -07:00
alisdair sullivan
e4cbe15fa7 fixes broken build from premature push, oops 2011-05-04 01:00:29 -07:00
alisdair sullivan
b2d923cbcb api change, parser/0,1 deprecated, replaced with decoder/0,1 2011-04-26 23:40:12 -07:00
alisdair sullivan
6481bae328 removes useless eventify function 2011-04-16 22:25:02 -07:00
alisdair sullivan
e22ec34000 moves encoding detection to jsx_utils 2011-04-16 22:18:59 -07:00
alisdair sullivan
216a71895a removes all edoc machinery 2011-03-22 19:02:28 -07:00
alisdair sullivan
a6e7490a2b options are now proplist style, so [comments] implies [{comments, true}] et cetera 2011-03-07 14:02:51 -08:00
alisdair sullivan
7e8e5a9a48 removed test for removed function 2011-02-28 12:29:28 -08:00
alisdair sullivan
8ed4b1a405 new test for read_file/1, /2 2011-02-21 19:47:20 -08:00
alisdair sullivan
dd46f4394b commented rethrown exceptions 2010-09-28 12:52:58 -07:00
alisdair sullivan
a4d48fd8d9 backed out ill conceived change to options 2010-09-27 14:52:16 -07:00
alisdair sullivan
5bcdca948a wrapped calls to jsx_eep0018 so that badarg exceptions are raised in the public api, rather than in internal modules 2010-09-27 14:27:39 -07:00
alisdair sullivan
a99644a926 modified error return value from {error, badjson} to {error, {badjson, Bin}} where Bin is the input from the point of the error 2010-09-27 14:07:36 -07:00
alisdair sullivan
d67f830def incremented version number and added CHANGES 2010-09-22 23:12:54 -07:00
alisdair sullivan
fa4e2f533b moved contents of jsx_test to jsx module to adhere to law of conversation of module names 2010-09-21 08:05:08 -07:00
alisdair sullivan
aa3385a31d added type specs to all publically exported functions 2010-09-15 21:30:25 -07:00
alisdair sullivan
cf38a9a466 fixed typo in edoc comments 2010-08-26 06:36:10 -07:00
alisdair sullivan
a86dec09ef major whitespace updates to get line lengths down to < 80 characters whenever possible (a few tests ignore this). srx/jsx_test.erl was not touched because it's shortly to be replaced 2010-08-25 23:17:10 -07:00
alisdair sullivan
ac5e0e4fe3 removed author tag from modules 2010-08-25 21:40:16 -07:00
alisdair sullivan
203ec6e5e0 removed types and specs, since they are not supported in the default erlang's some linux distros supply 2010-08-25 21:28:13 -07:00
alisdair sullivan
4d8246dcdc updated edoc 2010-08-23 13:42:22 -07:00
alisdair sullivan
1f1cb04cfd moved option parsing into the decoder module,trying to get as much implementation outside the interface module as possible 2010-08-23 13:36:53 -07:00
alisdair sullivan
24af6c36cb minor updates to edocs 2010-08-20 18:25:06 -07:00
alisdair sullivan
6ff74e6d59 edoc documentation added 2010-08-19 23:30:22 -07:00