Stephen Dolan
46814da91a
Merge pull request #119 from 13ren/master
...
tiny typo fix in manual
2013-05-07 03:57:47 -07:00
Nicolas Williams
65deaaacf5
Fix #111 : exit(1) when inputs are not valid JSON
2013-05-06 12:36:53 -05:00
Stephen Dolan
74eb914aba
Add trailing slashes to various internal doc links.
...
Fixes #110
2013-05-06 15:03:14 +01:00
Stephen Dolan
5be97463ec
Add a --arg option to allow variables to be passed from the cmdline.
...
Closes #107
2013-05-06 14:21:00 +01:00
Stephen Dolan
48be23233a
Add the "has" function. Closes #74 .
2013-05-06 13:46:54 +01:00
Stephen Dolan
88a6dc5343
Merge pull request #77 from jkleint/patch-1
...
Clarify description of `as`
2013-05-05 18:39:59 -07:00
Stephen Dolan
fee38afd8b
Document behaviour of .[] on objects.
...
Closes #57 .
2013-05-06 02:37:34 +01:00
Stephen Dolan
cacda19e75
Add documentation for "type".
...
Closes #75 .
2013-05-06 02:34:02 +01:00
Stephen Dolan
7f979cf1c7
Update gems and use HTTPS to get them.
2013-05-06 01:15:33 +01:00
Stephen Dolan
8bf4a73f3d
Fix some bad escaping
2013-05-06 01:14:53 +01:00
Stephen Dolan
d04bd897e3
Merge commit 'e45f93f85f22c73025830a6bd0b2807263068996'
...
See #87
2013-05-05 23:58:24 +01:00
Stephen Dolan
1741d8c161
Remove JQ_DEBUG #define and jq_test binary, simplifying build.
...
The debugging features previously available via JQ_DEBUG are now
command-line options.
2013-05-05 23:12:10 +01:00
Stephen Dolan
c1748fa633
WIP
2013-05-05 22:59:53 +01:00
Stephen Dolan
a49402c53a
Combine the functionality of jq and jq_test
...
One binary is much simpler. ./jq --run-tests now runs the tests.
2013-05-05 22:59:53 +01:00
Stephen Dolan
47e015e946
Make a few constant globals actually const.
...
This means the .data and .bss sections are empty, a good thing
in a shared library (see #98 ).
2013-05-05 22:59:53 +01:00
Stephen Dolan
ab1a97472c
Merge pull request #109 from nicowilliams/no_mutable_globals-rebased
...
Remove globals/make jq_init/next/teardown() an API
2013-05-05 12:29:07 -07:00
Stephen Dolan
74df082283
Merge pull request #93 from shayel/master
...
Allow manpage to build
2013-05-05 12:13:36 -07:00
Nicolas Williams
a136c3b7c9
Build and install libjq
2013-04-28 20:12:49 -05:00
Nicolas Williams
312ab754a2
Remove unnecessary #includes
2013-04-28 20:12:15 -05:00
Nicolas Williams
87e9c64003
Remove globals/make jq_init/next/teardown() an API
2013-04-28 18:46:21 -05:00
Shay Elkin
054e3f3795
Add missing require to Rakefile
...
Use bundle exec to make manpage
Don't set executable bit on manpage
2013-03-24 14:45:10 +02:00
Simon Elsbrock
e45f93f85f
fix typo in manual
2013-02-20 22:38:50 +01:00
jkleint
115552f3a6
Clarify description of as
...
It's more of a foreach loop than an identity operation.
Addresses issue #72 .
2013-01-25 12:17:56 -05:00
13ren
d0cd26cd8e
Update docs/content/3.manual/manual.yml
...
There's a , after map ; should be .
#65
2013-01-13 17:33:01 +11:00
Stephen Dolan
925ec3751f
Fix negative number syntax. Add a unary '-' operator.
...
Closes #63 .
2013-01-03 12:53:23 +00:00
Stephen Dolan
c013b557a2
Change APPEND opcode to directly modify a variable.
...
Avoids a big O(n^2) loop in constructing arrays. Fixes #61 .
2013-01-03 12:51:33 +00:00
Stephen Dolan
fb84541e11
Clean up jv_object_foreach and add jv_array_foreach
2012-12-31 23:27:00 +00:00
Stephen Dolan
38fe6fc0cb
Ignore some more stuff.
2012-12-31 23:25:12 +00:00
Stephen Dolan
b3bad59dd7
Add the recurse
function. See #37 .
2012-12-29 22:59:07 +00:00
Stephen Dolan
e0cda536f3
Make null + foo return foo, rather than an error.
...
This also allows 'add' to be implemented in jq rather than C.
2012-12-29 16:52:26 +00:00
Stephen Dolan
d5fdf70434
Refactor assignment.
...
New version is much more elegant and probably slower. Uses
library functions implemented in jq rather than dedicated opcodes.
2012-12-29 16:43:36 +00:00
Stephen Dolan
465a4ec565
Improvements to del(foo).
...
del(foo,bar) is now very different from del(foo),del(bar).
See #37 .
2012-12-29 16:13:06 +00:00
Stephen Dolan
3a5377e183
Fix a bug in URI-encoding of certain non-ASCII characters.
...
Oh how I hate C casting rules.
2012-12-29 01:37:22 +00:00
Stephen Dolan
79c9c418c6
Path manipulation (path/getpath/setpath/delpath) and docs.
...
del function should fix #37 .
2012-12-28 16:08:29 +00:00
Stephen Dolan
f1e23448e7
Support for two-argument functions.
...
Should probably support n args instead. This is a quick hack.
Also, ';' is a slightly ugly argument separator.
2012-12-28 15:07:27 +00:00
Stephen Dolan
417899f9a0
Fold operation (code/docs/test)
2012-12-28 15:05:34 +00:00
Stephen Dolan
9302b16247
Docs typos.
2012-12-28 14:23:28 +00:00
Stephen Dolan
89e26969ae
@foo syntax for encoding of strings into various formats.
...
Fixes part of #47 and #48 .
2012-12-28 01:23:09 +00:00
Stephen Dolan
52db8000c6
Fix an embarassing I/O bug.
...
Pulling some I/O out to a function meant that buf changed from
"char buf[4096]" to "char* buf", and "sizeof(buf)" got a lot
less interesting. The upshot of this is that jq read input eight
bytes at a time, which is not the fastest.
2012-12-27 01:57:09 +00:00
Stephen Dolan
d327772dfc
JSON parsing error messages now specify a location of the error.
...
Should help with #53 .
2012-12-27 01:56:23 +00:00
Stephen Dolan
cedda2084d
Sneaky valgrind trick to detect stack memory issues.
...
After something is popped from a stack, we overwrite the memory
with uninitialised data (if JQ_DEBUG is on). This means that
valgrind reports use-after-pop as an uninitialised memory error.
2012-12-24 17:11:18 +00:00
Stephen Dolan
0fed03f35a
Fix a bad memory leak when using --raw-output
2012-12-23 15:41:20 +00:00
Stephen Dolan
5578ec0f69
Give Windows builds a proper .exe suffix.
2012-12-20 15:12:14 +00:00
Stephen Dolan
a05904b226
Version 1.2!
jq-1.2
2012-12-20 12:26:15 +00:00
Stephen Dolan
c181a9185a
Add a few lines to the bottom of the manpage.
2012-12-20 12:25:50 +00:00
Stephen Dolan
6a597b41a6
Update download page and build system to handle more platforms.
2012-12-20 12:17:56 +00:00
Stephen Dolan
c85d8d8b4e
Don't enable coloured output by default on Windows.
2012-12-20 12:16:22 +00:00
Stephen Dolan
dcdb996085
Merge pull request #50 from stesh/master
...
Add information about installing dev environment on OS X
2012-12-20 03:41:19 -08:00
Stephen Dolan
5968f54f55
Fix a bug in stack reallocation during deep recursion.
2012-12-18 17:36:24 +00:00
Stephen Dolan
8dca3ef10d
Print an error message and abort in out-of-memory situations.
...
Closes #43 .
Tested with:
ulimit -v 5000
./jq -n -c 'def f(x): x,f([x,x]); f(0)'
2012-12-18 17:01:23 +00:00