]> granicus.if.org Git - jq/log
jq
11 years agoDelete some Autotools junk and update README. autotools
Stephen Dolan [Sat, 11 May 2013 14:15:56 +0000 (15:15 +0100)]
Delete some Autotools junk and update README.

Autotools autogenerated files that change frequently have been
removed, those that don't are still checked in.

11 years agoRake task to build website including source dist and binaries.
Stephen Dolan [Sat, 11 May 2013 13:57:58 +0000 (14:57 +0100)]
Rake task to build website including source dist and binaries.

11 years agoRake task to build source distribution for website
Stephen Dolan [Sat, 11 May 2013 13:48:39 +0000 (14:48 +0100)]
Rake task to build source distribution for website

11 years agoAdd the docs to the distributed tarballs
Stephen Dolan [Thu, 9 May 2013 19:53:51 +0000 (20:53 +0100)]
Add the docs to the distributed tarballs

11 years agoFix manpage build.
Stephen Dolan [Thu, 9 May 2013 19:43:26 +0000 (20:43 +0100)]
Fix manpage build.

11 years agoAdd some build instructions for how to install doc dependencies.
Stephen Dolan [Thu, 9 May 2013 19:27:12 +0000 (20:27 +0100)]
Add some build instructions for how to install doc dependencies.

jq can now build without Ruby, but you won't get a nice manpage.

11 years agoDon't build the manpage unless there's a working Ruby setup.
Stephen Dolan [Thu, 9 May 2013 14:22:38 +0000 (15:22 +0100)]
Don't build the manpage unless there's a working Ruby setup.

11 years agosupport for out-of-tree tests
Stephen Dolan [Thu, 9 May 2013 12:40:00 +0000 (13:40 +0100)]
support for out-of-tree tests

11 years agoFail properly when attempting to build manpage without rake
Stephen Dolan [Thu, 9 May 2013 12:10:09 +0000 (13:10 +0100)]
Fail properly when attempting to build manpage without rake

11 years agoAutotools hackery so that "make dist" builds lexer and parser.
Stephen Dolan [Thu, 9 May 2013 10:31:17 +0000 (11:31 +0100)]
Autotools hackery so that "make dist" builds lexer and parser.

11 years agoAdd a redundant intialisation to squash a gcc warning.
Stephen Dolan [Thu, 9 May 2013 10:30:49 +0000 (11:30 +0100)]
Add a redundant intialisation to squash a gcc warning.

11 years agoMake manpage building more robust.
Stephen Dolan [Thu, 9 May 2013 01:38:57 +0000 (02:38 +0100)]
Make manpage building more robust.

11 years agoAdd a "binaries" target to the website Rakefile.
Stephen Dolan [Thu, 9 May 2013 01:18:28 +0000 (02:18 +0100)]
Add a "binaries" target to the website Rakefile.

11 years agoMinor docs fix to get rid of Bonsai warnings.
Stephen Dolan [Thu, 9 May 2013 01:01:01 +0000 (02:01 +0100)]
Minor docs fix to get rid of Bonsai warnings.

11 years agoScript for cross-compiling jq binaries for other platforms.
Stephen Dolan [Thu, 9 May 2013 00:50:20 +0000 (01:50 +0100)]
Script for cross-compiling jq binaries for other platforms.

11 years agoUse the version number from configure.ac in the website.
Stephen Dolan [Wed, 8 May 2013 18:57:29 +0000 (19:57 +0100)]
Use the version number from configure.ac in the website.

11 years agoAdd the parser to BUILT_SOURCES
Stephen Dolan [Wed, 8 May 2013 18:57:05 +0000 (19:57 +0100)]
Add the parser to BUILT_SOURCES

11 years agoConfigure whether colour is displayed by default directly in source
Stephen Dolan [Wed, 8 May 2013 18:36:52 +0000 (19:36 +0100)]
Configure whether colour is displayed by default directly in source

11 years agoCheck in a pile of Autotools junk, including the configure script.
Stephen Dolan [Wed, 8 May 2013 17:55:10 +0000 (18:55 +0100)]
Check in a pile of Autotools junk, including the configure script.

11 years agoClean up autotools config.
Stephen Dolan [Wed, 8 May 2013 01:30:08 +0000 (02:30 +0100)]
Clean up autotools config.

Remove some of @stagrlee's hard work since jq's testsuite is
less silly than when he wrote the autotools config.

11 years agoCheck in jv_utf8_tables.gen.h, it is unlikely to change.
Stephen Dolan [Wed, 8 May 2013 00:02:18 +0000 (01:02 +0100)]
Check in jv_utf8_tables.gen.h, it is unlikely to change.

11 years agoMerge remote-tracking branch 'stagrlee/master' into autotools
Stephen Dolan [Tue, 7 May 2013 23:52:24 +0000 (00:52 +0100)]
Merge remote-tracking branch 'stagrlee/master' into autotools

Conflicts:
Makefile
jq_test.c

11 years agoFix #111: exit(1) when inputs are not valid JSON
Nicolas Williams [Sat, 4 May 2013 22:03:01 +0000 (17:03 -0500)]
Fix #111: exit(1) when inputs are not valid JSON

11 years agoAdd trailing slashes to various internal doc links.
Stephen Dolan [Mon, 6 May 2013 14:03:14 +0000 (15:03 +0100)]
Add trailing slashes to various internal doc links.

Fixes #110

11 years agoAdd a --arg option to allow variables to be passed from the cmdline.
Stephen Dolan [Mon, 6 May 2013 13:21:00 +0000 (14:21 +0100)]
Add a --arg option to allow variables to be passed from the cmdline.

Closes #107

11 years agoAdd the "has" function. Closes #74.
Stephen Dolan [Mon, 6 May 2013 12:46:16 +0000 (13:46 +0100)]
Add the "has" function. Closes #74.

11 years agoMerge pull request #77 from jkleint/patch-1
Stephen Dolan [Mon, 6 May 2013 01:39:59 +0000 (18:39 -0700)]
Merge pull request #77 from jkleint/patch-1

Clarify description of `as`

11 years agoDocument behaviour of .[] on objects.
Stephen Dolan [Mon, 6 May 2013 01:37:34 +0000 (02:37 +0100)]
Document behaviour of .[] on objects.

Closes #57.

11 years agoAdd documentation for "type".
Stephen Dolan [Mon, 6 May 2013 01:34:02 +0000 (02:34 +0100)]
Add documentation for "type".

Closes #75.

11 years agoUpdate gems and use HTTPS to get them.
Stephen Dolan [Mon, 6 May 2013 00:15:33 +0000 (01:15 +0100)]
Update gems and use HTTPS to get them.

11 years agoFix some bad escaping
Stephen Dolan [Mon, 6 May 2013 00:14:53 +0000 (01:14 +0100)]
Fix some bad escaping

11 years agoMerge commit 'e45f93f85f22c73025830a6bd0b2807263068996'
Stephen Dolan [Sun, 5 May 2013 22:58:24 +0000 (23:58 +0100)]
Merge commit 'e45f93f85f22c73025830a6bd0b2807263068996'

See #87

11 years agoRemove JQ_DEBUG #define and jq_test binary, simplifying build.
Stephen Dolan [Sun, 5 May 2013 22:12:10 +0000 (23:12 +0100)]
Remove JQ_DEBUG #define and jq_test binary, simplifying build.

The debugging features previously available via JQ_DEBUG are now
command-line options.

11 years agoWIP
Stephen Dolan [Sun, 5 May 2013 21:59:46 +0000 (22:59 +0100)]
WIP

11 years agoCombine the functionality of jq and jq_test
Stephen Dolan [Sun, 5 May 2013 21:53:45 +0000 (22:53 +0100)]
Combine the functionality of jq and jq_test

One binary is much simpler. ./jq --run-tests now runs the tests.

11 years agoMake a few constant globals actually const.
Stephen Dolan [Sun, 5 May 2013 21:37:46 +0000 (22:37 +0100)]
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).

11 years agoMerge pull request #109 from nicowilliams/no_mutable_globals-rebased
Stephen Dolan [Sun, 5 May 2013 19:29:07 +0000 (12:29 -0700)]
Merge pull request #109 from nicowilliams/no_mutable_globals-rebased

Remove globals/make jq_init/next/teardown() an API

11 years agoMerge pull request #93 from shayel/master
Stephen Dolan [Sun, 5 May 2013 19:13:36 +0000 (12:13 -0700)]
Merge pull request #93 from shayel/master

Allow manpage to build

11 years agoBuild and install libjq 109/head
Nicolas Williams [Mon, 29 Apr 2013 01:12:49 +0000 (20:12 -0500)]
Build and install libjq

11 years agoRemove unnecessary #includes
Nicolas Williams [Mon, 29 Apr 2013 01:12:15 +0000 (20:12 -0500)]
Remove unnecessary #includes

11 years agoRemove globals/make jq_init/next/teardown() an API
Nicolas Williams [Sun, 28 Apr 2013 23:33:45 +0000 (18:33 -0500)]
Remove globals/make jq_init/next/teardown() an API

11 years agoAdd missing require to Rakefile 93/head
Shay Elkin [Sun, 24 Mar 2013 12:01:19 +0000 (14:01 +0200)]
Add missing require to Rakefile
Use bundle exec to make manpage
Don't set executable bit on manpage

11 years agofix typo in manual
Simon Elsbrock [Wed, 20 Feb 2013 21:38:50 +0000 (22:38 +0100)]
fix typo in manual

11 years agoget man pages working 80/head
Lee Thompson [Mon, 4 Feb 2013 19:35:42 +0000 (13:35 -0600)]
get man pages working

11 years agoadd man page to release
Lee Thompson [Mon, 4 Feb 2013 13:01:18 +0000 (07:01 -0600)]
add man page to release

11 years agorework build to not distribute tests unless --enable-devel is specificied to autoconf
Lee Thompson [Sun, 3 Feb 2013 20:49:03 +0000 (14:49 -0600)]
rework build to not distribute tests unless --enable-devel is specificied to autoconf

11 years agofix email addresses
Lee Thompson [Sun, 3 Feb 2013 06:35:56 +0000 (00:35 -0600)]
fix email addresses

11 years agouse AM_SILENT_RULES
Lee Thompson [Sun, 3 Feb 2013 06:09:47 +0000 (00:09 -0600)]
use AM_SILENT_RULES

11 years agofix RPM build process
Lee Thompson [Sun, 3 Feb 2013 05:50:43 +0000 (23:50 -0600)]
fix RPM build process

11 years agofix jq_test so that it runs in the distcheck phase of autoconf
Lee Thompson [Sun, 3 Feb 2013 05:05:00 +0000 (23:05 -0600)]
fix jq_test so that it runs in the distcheck phase of autoconf

11 years agomerging upstream stedolan changes
Lee Thompson [Sun, 3 Feb 2013 02:39:23 +0000 (20:39 -0600)]
merging upstream stedolan changes

11 years agouse built in macro to RPM
Lee Thompson [Wed, 30 Jan 2013 01:13:22 +0000 (19:13 -0600)]
use built in macro to RPM

11 years agoClarify description of `as` 77/head
jkleint [Fri, 25 Jan 2013 17:17:56 +0000 (12:17 -0500)]
Clarify description of `as`

It's more of a foreach loop than an identity operation.

Addresses issue #72.

11 years agoFix negative number syntax. Add a unary '-' operator.
Stephen Dolan [Thu, 3 Jan 2013 12:53:06 +0000 (12:53 +0000)]
Fix negative number syntax. Add a unary '-' operator.

Closes #63.

11 years agoChange APPEND opcode to directly modify a variable.
Stephen Dolan [Thu, 3 Jan 2013 12:51:33 +0000 (12:51 +0000)]
Change APPEND opcode to directly modify a variable.

Avoids a big O(n^2) loop in constructing arrays. Fixes #61.

11 years agoClean up jv_object_foreach and add jv_array_foreach
Stephen Dolan [Mon, 31 Dec 2012 23:27:00 +0000 (23:27 +0000)]
Clean up jv_object_foreach and add jv_array_foreach

11 years agoIgnore some more stuff.
Stephen Dolan [Mon, 31 Dec 2012 23:25:12 +0000 (23:25 +0000)]
Ignore some more stuff.

11 years agoAdd the `recurse` function. See #37.
Stephen Dolan [Sat, 29 Dec 2012 22:59:07 +0000 (22:59 +0000)]
Add the `recurse` function. See #37.

11 years agoMake null + foo return foo, rather than an error.
Stephen Dolan [Sat, 29 Dec 2012 16:50:58 +0000 (16:50 +0000)]
Make null + foo return foo, rather than an error.

This also allows 'add' to be implemented in jq rather than C.

11 years agoRefactor assignment.
Stephen Dolan [Sat, 29 Dec 2012 16:43:36 +0000 (16:43 +0000)]
Refactor assignment.

New version is much more elegant and probably slower. Uses
library functions implemented in jq rather than dedicated opcodes.

11 years agoImprovements to del(foo).
Stephen Dolan [Sat, 29 Dec 2012 16:13:06 +0000 (16:13 +0000)]
Improvements to del(foo).

del(foo,bar) is now very different from del(foo),del(bar).
See #37.

12 years agoFix a bug in URI-encoding of certain non-ASCII characters.
Stephen Dolan [Sat, 29 Dec 2012 01:37:22 +0000 (01:37 +0000)]
Fix a bug in URI-encoding of certain non-ASCII characters.

Oh how I hate C casting rules.

12 years agoPath manipulation (path/getpath/setpath/delpath) and docs.
Stephen Dolan [Fri, 28 Dec 2012 16:08:29 +0000 (16:08 +0000)]
Path manipulation (path/getpath/setpath/delpath) and docs.

del function should fix #37.

12 years agoSupport for two-argument functions.
Stephen Dolan [Fri, 28 Dec 2012 15:07:27 +0000 (15:07 +0000)]
Support for two-argument functions.

Should probably support n args instead. This is a quick hack.
Also, ';' is a slightly ugly argument separator.

12 years agoFold operation (code/docs/test)
Stephen Dolan [Fri, 28 Dec 2012 15:04:16 +0000 (15:04 +0000)]
Fold operation (code/docs/test)

12 years agoDocs typos.
Stephen Dolan [Fri, 28 Dec 2012 14:21:28 +0000 (14:21 +0000)]
Docs typos.

12 years ago@foo syntax for encoding of strings into various formats.
Stephen Dolan [Thu, 27 Dec 2012 20:49:34 +0000 (20:49 +0000)]
@foo syntax for encoding of strings into various formats.

Fixes part of #47 and #48.

12 years agoFix an embarassing I/O bug.
Stephen Dolan [Thu, 27 Dec 2012 01:57:09 +0000 (01:57 +0000)]
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.

12 years agoJSON parsing error messages now specify a location of the error.
Stephen Dolan [Thu, 27 Dec 2012 01:56:23 +0000 (01:56 +0000)]
JSON parsing error messages now specify a location of the error.

Should help with #53.

12 years agoSneaky valgrind trick to detect stack memory issues.
Stephen Dolan [Mon, 24 Dec 2012 17:11:18 +0000 (17:11 +0000)]
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.

12 years agoFix a bad memory leak when using --raw-output
Stephen Dolan [Sun, 23 Dec 2012 15:41:20 +0000 (15:41 +0000)]
Fix a bad memory leak when using --raw-output

12 years agoGive Windows builds a proper .exe suffix.
Stephen Dolan [Thu, 20 Dec 2012 15:12:14 +0000 (15:12 +0000)]
Give Windows builds a proper .exe suffix.

12 years agoVersion 1.2! jq-1.2
Stephen Dolan [Thu, 20 Dec 2012 12:26:15 +0000 (12:26 +0000)]
Version 1.2!

12 years agoAdd a few lines to the bottom of the manpage.
Stephen Dolan [Thu, 20 Dec 2012 12:25:50 +0000 (12:25 +0000)]
Add a few lines to the bottom of the manpage.

12 years agoUpdate download page and build system to handle more platforms.
Stephen Dolan [Thu, 20 Dec 2012 12:17:56 +0000 (12:17 +0000)]
Update download page and build system to handle more platforms.

12 years agoDon't enable coloured output by default on Windows.
Stephen Dolan [Thu, 20 Dec 2012 12:16:22 +0000 (12:16 +0000)]
Don't enable coloured output by default on Windows.

12 years agoMerge pull request #50 from stesh/master
Stephen Dolan [Thu, 20 Dec 2012 11:41:19 +0000 (03:41 -0800)]
Merge pull request #50 from stesh/master

Add information about installing dev environment on OS X

12 years agoFix a bug in stack reallocation during deep recursion.
Stephen Dolan [Tue, 18 Dec 2012 17:36:24 +0000 (17:36 +0000)]
Fix a bug in stack reallocation during deep recursion.

12 years agoPrint an error message and abort in out-of-memory situations.
Stephen Dolan [Tue, 18 Dec 2012 17:01:23 +0000 (17:01 +0000)]
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)'

12 years agoAdd wrappers for malloc/realloc/free. See #43.
Stephen Dolan [Tue, 18 Dec 2012 16:52:47 +0000 (16:52 +0000)]
Add wrappers for malloc/realloc/free. See #43.

12 years agoAdd the ability to specify input files on the commandline.
Stephen Dolan [Sun, 16 Dec 2012 19:46:41 +0000 (19:46 +0000)]
Add the ability to specify input files on the commandline.

See #21.

12 years agoImprove manpage introduction, add examples to manpage.
Stephen Dolan [Sun, 16 Dec 2012 17:11:40 +0000 (17:11 +0000)]
Improve manpage introduction, add examples to manpage.

Closes #19

12 years agoFix a bug uncovered by tests extracted from manual.
Stephen Dolan [Sun, 16 Dec 2012 13:10:48 +0000 (13:10 +0000)]
Fix a bug uncovered by tests extracted from manual.

`null | length` should give 0, and now does.

12 years agoLots of build system and docs improvements, including a manpage.
Stephen Dolan [Sun, 16 Dec 2012 13:06:03 +0000 (13:06 +0000)]
Lots of build system and docs improvements, including a manpage.

 - Build binaries for multiple platforms
 - Make a manpage out of the manual (see #19)
 - Extract more tests from the documentation
 - Fix a few documentation bugs uncovered by above.

12 years agoAdd a Gemfile to make building the documentation easier.
Stephen Dolan [Wed, 12 Dec 2012 23:18:43 +0000 (23:18 +0000)]
Add a Gemfile to make building the documentation easier.

Use "bundle install" in the docs folder to install ruby dependencies.

12 years agoDelete autogenerated source from the repository.
Stephen Dolan [Mon, 10 Dec 2012 22:36:01 +0000 (22:36 +0000)]
Delete autogenerated source from the repository.

This was a horrible hack to fix build issues on OS X some time
ago. There are better ways to fix build issues on OS X :)

See #49.

12 years agosome words explaining struct inst a little
Stephen Dolan [Mon, 10 Dec 2012 22:35:33 +0000 (22:35 +0000)]
some words explaining struct inst a little

12 years agoerror() function
Stephen Dolan [Mon, 10 Dec 2012 22:30:09 +0000 (22:30 +0000)]
error() function

12 years agoFix Rack setup so that viewing documentation locally is less painful.
Stephen Dolan [Mon, 10 Dec 2012 22:25:11 +0000 (22:25 +0000)]
Fix Rack setup so that viewing documentation locally is less painful.

12 years agoRemove old OS X 'instructions' 50/head
Stephen Shaw [Fri, 7 Dec 2012 14:40:20 +0000 (14:40 +0000)]
Remove old OS X 'instructions'

12 years agoAdd information about installing dev environment on OS X
Stephen Shaw [Fri, 7 Dec 2012 14:31:59 +0000 (14:31 +0000)]
Add information about installing dev environment on OS X

12 years agoChange order of evaluation for certain indexing operations.
Stephen Dolan [Fri, 7 Dec 2012 00:26:00 +0000 (00:26 +0000)]
Change order of evaluation for certain indexing operations.

'.foo[.bar]' used to parse like '.foo | .bar as $b | .[$b]',
now it parses like '.bar as $b | .foo | .[$b]'.

12 years agoget testing working in autoconf
Lee Thompson [Wed, 5 Dec 2012 01:50:10 +0000 (19:50 -0600)]
get testing working in autoconf

12 years agokill prereq on RPM spec file
Lee Thompson [Wed, 5 Dec 2012 01:00:59 +0000 (19:00 -0600)]
kill prereq on RPM spec file

12 years agofixes jq_test core dump
Lee Thompson [Wed, 5 Dec 2012 00:12:53 +0000 (18:12 -0600)]
fixes jq_test core dump

12 years agoremove obsolete line
Lee Thompson [Tue, 4 Dec 2012 22:50:11 +0000 (16:50 -0600)]
remove obsolete line

12 years agoAdd min, max, min_by, max_by functions.
Stephen Dolan [Tue, 4 Dec 2012 22:45:03 +0000 (22:45 +0000)]
Add min, max, min_by, max_by functions.

12 years agofix rpm mv command when rpm stashes the package in a subdirectory
Lee Thompson [Tue, 4 Dec 2012 22:29:01 +0000 (16:29 -0600)]
fix rpm mv command when rpm stashes the package in a subdirectory

12 years agochange rpmbuild target to rpm
Lee Thompson [Tue, 4 Dec 2012 20:49:39 +0000 (14:49 -0600)]
change rpmbuild target to rpm

12 years agoRefactor function argument passing into what it always should have been.
Stephen Dolan [Tue, 4 Dec 2012 00:39:21 +0000 (00:39 +0000)]
Refactor function argument passing into what it always should have been.

Most visible change is that error messages when a function is called
with the wrong number of arguments are much better.