]> granicus.if.org Git - jq/log
jq
8 years agoMake jv_sort stable regardless of qsort details. qsort-stability 1082/head
Stephen Dolan [Mon, 18 Jan 2016 10:56:54 +0000 (10:56 +0000)]
Make jv_sort stable regardless of qsort details.

8 years agoAdd AppVeyor badge to README.md
Stephen Dolan [Mon, 18 Jan 2016 10:15:43 +0000 (10:15 +0000)]
Add AppVeyor badge to README.md

Thanks @JanSchulz, @nicowilliams!

8 years agoAdd --enable-ubsan (undefined behavior sanitizer) 1081/head
Nicolas Williams [Sun, 17 Jan 2016 18:09:43 +0000 (12:09 -0600)]
Add --enable-ubsan (undefined behavior sanitizer)

8 years agoRun failing tests on Windows; ignore failures
Nicolas Williams [Sun, 17 Jan 2016 18:38:35 +0000 (12:38 -0600)]
Run failing tests on Windows; ignore failures

8 years agoMake it possible to run tests with set -x
Nicolas Williams [Sun, 17 Jan 2016 18:23:05 +0000 (12:23 -0600)]
Make it possible to run tests with set -x

One can now run:

    make TRACE_TESTS=1 check

to get detailed output

8 years agoEnable more tests on Windows; move sort_by tests
Nicolas Williams [Sun, 17 Jan 2016 17:23:17 +0000 (11:23 -0600)]
Enable more tests on Windows; move sort_by tests

Use %%FAIL IGNORE MSG for error messages that differ on Windows, and
move the sort_by/group_by tests that fail qhen qsort() is not stable.

Now only tests/sorttest and tests/shtest are disabled on Windows.

8 years agoTweak appveyor.yml; disable failing tests 1080/head
Nicolas Williams [Sun, 17 Jan 2016 07:49:50 +0000 (01:49 -0600)]
Tweak appveyor.yml; disable failing tests

8 years agoUpload build failure logs 1076/head
Jan Schulz [Sat, 16 Jan 2016 21:39:55 +0000 (22:39 +0100)]
Upload build failure logs

Signed-off-by: Nicolas Williams <nico@cryptonector.com>
8 years agoBuild a html help
Jan Schulz [Sat, 16 Jan 2016 21:55:13 +0000 (22:55 +0100)]
Build a html help

Signed-off-by: Nicolas Williams <nico@cryptonector.com>
8 years agoRun tests on appveyor
Jan Schulz [Sat, 16 Jan 2016 21:24:38 +0000 (22:24 +0100)]
Run tests on appveyor

Signed-off-by: Nicolas Williams <nico@cryptonector.com>
8 years agoAdd 32bit windows builds on appveyor
Jan Schulz [Sat, 16 Jan 2016 21:20:23 +0000 (22:20 +0100)]
Add 32bit windows builds on appveyor

Signed-off-by: Nicolas Williams <nico@cryptonector.com>
8 years agoBuild on windows (mingw) on appveyor
Jan Schulz [Sat, 16 Jan 2016 11:44:34 +0000 (12:44 +0100)]
Build on windows (mingw) on appveyor

For this to work, one of the core commiter should do:

* enable appveyor in the github project (grant access)
* Make an appveyor account and add the github jq repo as a new project

inspirations from:

appveyor, msys2, use bash environment to build...
* https://github.com/ariscop/elemental-ircd/blob/appveyor/appveyor.yml
* https://github.com/khaledhosny/ots/pull/67/files
* https://github.com/universal-ctags/ctags/blob/master/appveyor.yml
* https://github.com/universal-ctags/ctags/blob/master/win32/appveyor.bat

and with mvsc
* https://github.com/khaledhosny/ots/blob/master/.appveyor.yml

Signed-off-by: Nicolas Williams <nico@cryptonector.com>
8 years agoFix cross-compilation build 1073/head
Nicolas Williams [Fri, 15 Jan 2016 22:21:16 +0000 (16:21 -0600)]
Fix cross-compilation build

8 years agoFix Windows build (fix #911)
Nicolas Williams [Fri, 15 Jan 2016 22:06:30 +0000 (16:06 -0600)]
Fix Windows build (fix #911)

8 years agofixup non-maintainer build
Nicolas Williams [Fri, 15 Jan 2016 22:06:18 +0000 (16:06 -0600)]
fixup non-maintainer build

8 years agoAlways build src/builtin.inc (fix #1069)
Nicolas Williams [Fri, 15 Jan 2016 17:59:14 +0000 (11:59 -0600)]
Always build src/builtin.inc (fix #1069)

8 years agoMultiByteToWideChar() usage bug (fix #1072)
Nicolas Williams [Fri, 15 Jan 2016 17:58:41 +0000 (11:58 -0600)]
MultiByteToWideChar() usage bug (fix #1072)

8 years agoMake it easier to use jq with shebangs (fix #1044)
Nicolas Williams [Tue, 15 Dec 2015 05:43:22 +0000 (23:43 -0600)]
Make it easier to use jq with shebangs (fix #1044)

Allow a continuation on a comment immediately after a shebang to make
this traditional hack possible:

    #!/bin/sh
    # this next line is ignored by jq \
    exec jq -f "$0" "$@"
    # jq code follows

But continue only on the first line following a shebang, and only if
it's a comment.

8 years agoAdd note about IEEE754 to help msg
Nicolas Williams [Tue, 15 Dec 2015 06:00:03 +0000 (00:00 -0600)]
Add note about IEEE754 to help msg

8 years agoChange usage formatting
Cameron Sparr [Fri, 11 Dec 2015 21:35:57 +0000 (14:35 -0700)]
Change usage formatting

8 years agoAvoiding conditional directives that break statements
Romero Malaquias [Wed, 9 Dec 2015 06:38:17 +0000 (03:38 -0300)]
Avoiding conditional directives that break statements

8 years agoTwo sub bugs fixed; two new gsub tests have been added.
pkoppstein [Mon, 7 Dec 2015 23:51:26 +0000 (18:51 -0500)]
Two sub bugs fixed; two new gsub tests have been added.
./jq --run-tests < tests/onig.test
has been run successfully:

...
Testing 'gsub("a";"b")' at line number 70
Testing 'gsub( "(.*)"; "";  "x")' at line number 74
...
22 of 22 tests passed (0 malformed)

8 years agoFix JV_OBJECT() and go up to 18 1031/head
Nicolas Williams [Wed, 2 Dec 2015 05:25:23 +0000 (23:25 -0600)]
Fix JV_OBJECT() and go up to 18

8 years agoAssume . if either stdin/on isatty() (fix #1028) 1030/head
Nicolas Williams [Wed, 2 Dec 2015 04:16:03 +0000 (22:16 -0600)]
Assume . if either stdin/on isatty() (fix #1028)

And move the #define of isatty on Windows up.

8 years agoyum has been replaced with dnf as of f22 1024/head
Mark McKinstry [Thu, 26 Nov 2015 15:48:06 +0000 (10:48 -0500)]
yum has been replaced with dnf as of f22

https://fedoraproject.org/wiki/Changes/ReplaceYumWithDNF

8 years agoSupport --without-oniguruma 1022/head
David Tolnay [Sat, 21 Nov 2015 18:05:37 +0000 (10:05 -0800)]
Support --without-oniguruma

8 years agoOniguruma hash in dockerfile
David Tolnay [Wed, 18 Nov 2015 08:30:18 +0000 (00:30 -0800)]
Oniguruma hash in dockerfile

8 years agoFix manual signature for split (non-regex) 1018/head
Loamhoof [Sun, 15 Nov 2015 20:43:38 +0000 (21:43 +0100)]
Fix manual signature for split (non-regex)

8 years agoAdd address sanitizer (ASAN) support (fix #1002) 1004/head
Nicolas Williams [Wed, 28 Oct 2015 00:01:06 +0000 (19:01 -0500)]
Add address sanitizer (ASAN) support (fix #1002)

8 years agoSupport numbers and boolean in join (fix #930)
David Tolnay [Sun, 18 Oct 2015 05:44:40 +0000 (22:44 -0700)]
Support numbers and boolean in join (fix #930)

8 years agoHeap buffer overflow in tokenadd() (fix #105)
Nicolas Williams [Sat, 24 Oct 2015 22:24:57 +0000 (17:24 -0500)]
Heap buffer overflow in tokenadd() (fix #105)

This was an off-by one: the NUL terminator byte was not allocated on
resize.  This was triggered by JSON-encoded numbers longer than 256
bytes.

8 years agostrptime() on OpenBSD requires _XOPEN_SOURCE_EXTENDED 1 (fix #999)
David Tolnay [Sat, 24 Oct 2015 18:23:37 +0000 (11:23 -0700)]
strptime() on OpenBSD requires _XOPEN_SOURCE_EXTENDED 1 (fix #999)

strptime() is an XPG4v2 function, on OpenBSD the prototype
is not included in time.h unless visibility is set, it needs
either "#define _XOPEN_SOURCE_EXTENDED 1" or _XOPEN_SOURCE
>= 500. Without this the prototype isn't included and
strptime's returned pointer is truncated to an int, causing
SEGV on 64-bit arches when using it.

Thanks @sthen

8 years agomktemp needs 6 or more X's (fix #1000)
David Tolnay [Sat, 24 Oct 2015 18:21:16 +0000 (11:21 -0700)]
mktemp needs 6 or more X's (fix #1000)

mktemp(1) isn't posix specified, but it's reasonable to use
mktemp(3) to implement it which requires 6 trailing X's in
the format

Thanks @sthen

8 years agoFix builtin.o dependency (#992)
Nicolas Williams [Fri, 23 Oct 2015 03:33:47 +0000 (22:33 -0500)]
Fix builtin.o dependency (#992)

8 years agoFix linux32 jq-1.5 executable (fix #935)
Nicolas Williams [Fri, 23 Oct 2015 03:07:34 +0000 (22:07 -0500)]
Fix linux32 jq-1.5 executable (fix #935)

8 years agoRename sig/v1.5/jq-linux32.asc (prep for #935)
Nicolas Williams [Fri, 23 Oct 2015 03:06:27 +0000 (22:06 -0500)]
Rename sig/v1.5/jq-linux32.asc (prep for #935)

8 years agoRemove setup.sh (fix #993)
Nicolas Williams [Fri, 23 Oct 2015 02:53:53 +0000 (21:53 -0500)]
Remove setup.sh (fix #993)

8 years agoMove jq-coded builtins to non-C file (fix #424)
David Tolnay [Sun, 18 Oct 2015 06:24:13 +0000 (23:24 -0700)]
Move jq-coded builtins to non-C file (fix #424)

8 years agoMove docs for map earlier (fix #288)
David Tolnay [Sun, 18 Oct 2015 06:54:07 +0000 (23:54 -0700)]
Move docs for map earlier (fix #288)

8 years agoIf-then-else documentation for forking conditional (fix #942)
David Tolnay [Sun, 18 Oct 2015 04:15:24 +0000 (21:15 -0700)]
If-then-else documentation for forking conditional (fix #942)

8 years agoSupport lowercase name in from_entries (fix #990)
David Tolnay [Sun, 18 Oct 2015 03:50:40 +0000 (20:50 -0700)]
Support lowercase name in from_entries (fix #990)

8 years agoRevert "Adjust spacing of section headers to account for nav bar (fix #986)"
David Tolnay [Wed, 14 Oct 2015 06:27:01 +0000 (23:27 -0700)]
Revert "Adjust spacing of section headers to account for nav bar (fix #986)"

This reverts commit 73b8413d10751c7be3e54d83ea338b3e895bdda3.

The fix for #986 caused #988.

8 years agoAutocomplete manual search to first result on submit
David Tolnay [Tue, 13 Oct 2015 17:46:49 +0000 (10:46 -0700)]
Autocomplete manual search to first result on submit

8 years agoAdd background color to typeahead menu
David Tolnay [Tue, 13 Oct 2015 05:48:53 +0000 (22:48 -0700)]
Add background color to typeahead menu

8 years agoSort manual search results shortest to longest
David Tolnay [Tue, 13 Oct 2015 05:33:45 +0000 (22:33 -0700)]
Sort manual search results shortest to longest

8 years agoRemove backticks from manual headers and search strings
David Tolnay [Tue, 13 Oct 2015 05:30:16 +0000 (22:30 -0700)]
Remove backticks from manual headers and search strings

8 years agoAdjust spacing of section headers to account for nav bar (fix #986)
David Tolnay [Tue, 13 Oct 2015 02:58:48 +0000 (19:58 -0700)]
Adjust spacing of section headers to account for nav bar (fix #986)

8 years agoMerge typeaheadjs.css into base.scss
David Tolnay [Mon, 12 Oct 2015 20:10:03 +0000 (13:10 -0700)]
Merge typeaheadjs.css into base.scss

8 years agoPGP signatures for release binaries (fix #889)
David Tolnay [Mon, 12 Oct 2015 05:11:52 +0000 (22:11 -0700)]
PGP signatures for release binaries (fix #889)

8 years agoAccept only bitwise identical NaN values in jv_identical (fix #978) 983/head
David Tolnay [Mon, 12 Oct 2015 06:08:43 +0000 (23:08 -0700)]
Accept only bitwise identical NaN values in jv_identical (fix #978)

8 years agoAdd signing key and dtolnay's key fingerprints to KEYS
David Tolnay [Tue, 13 Oct 2015 03:07:24 +0000 (20:07 -0700)]
Add signing key and dtolnay's key fingerprints to KEYS

8 years agoRemove expired key from KEYS
Nicolas Williams [Tue, 13 Oct 2015 00:11:52 +0000 (19:11 -0500)]
Remove expired key from KEYS

8 years agoAdd KEYS file
Nicolas Williams [Mon, 12 Oct 2015 22:47:53 +0000 (17:47 -0500)]
Add KEYS file

8 years agoLink to BootstrapCDN for Bootstrap and Bootswatch (fix #985)
David Tolnay [Mon, 12 Oct 2015 19:19:25 +0000 (12:19 -0700)]
Link to BootstrapCDN for Bootstrap and Bootswatch (fix #985)

8 years agoExplicitly use current directory in Rakefile
David Tolnay [Mon, 12 Oct 2015 17:46:17 +0000 (10:46 -0700)]
Explicitly use current directory in Rakefile

8 years agoSplit up Rakefile to minimize dependencies (fix #435)
David Tolnay [Mon, 12 Oct 2015 17:42:15 +0000 (10:42 -0700)]
Split up Rakefile to minimize dependencies (fix #435)

8 years agoAdd description for rake tasks
David Tolnay [Mon, 12 Oct 2015 17:21:16 +0000 (10:21 -0700)]
Add description for rake tasks

You can see the descriptions by running `rake --tasks`.

8 years agoRemove duplicate yaml import in Rakefile
David Tolnay [Mon, 12 Oct 2015 17:10:56 +0000 (10:10 -0700)]
Remove duplicate yaml import in Rakefile

8 years agoRemove old Rakefile dist targets
David Tolnay [Mon, 12 Oct 2015 17:03:15 +0000 (10:03 -0700)]
Remove old Rakefile dist targets

Because binaries no longer go into the repo.

8 years agodocs: jq 1.5 is now available in Debian unstable 984/head
Simon Elsbrock [Mon, 12 Oct 2015 08:02:07 +0000 (10:02 +0200)]
docs: jq 1.5 is now available in Debian unstable

It may take some time until it bubbles up into Ubuntu repositories.

8 years agoBump fedora and chocolatey available version numbers
David Tolnay [Sat, 3 Oct 2015 02:19:36 +0000 (19:19 -0700)]
Bump fedora and chocolatey available version numbers

8 years agoSupport NaN in path expressions (fix #962)
David Tolnay [Thu, 24 Sep 2015 17:31:28 +0000 (10:31 -0700)]
Support NaN in path expressions (fix #962)

8 years agoEOF after newline in string mishandled (fix #951)
Nicolas Williams [Tue, 22 Sep 2015 04:24:08 +0000 (23:24 -0500)]
EOF after newline in string mishandled (fix #951)

8 years agoDelete negative indices in array (fix #954)
David Tolnay [Mon, 21 Sep 2015 18:15:25 +0000 (11:15 -0700)]
Delete negative indices in array (fix #954)

8 years agoFix assert fail if object literal key is not a string (fix #953)
David Tolnay [Mon, 21 Sep 2015 19:09:37 +0000 (12:09 -0700)]
Fix assert fail if object literal key is not a string (fix #953)

8 years agoAdd openSUSE repository
Roman Inflianskas [Sun, 20 Sep 2015 11:11:35 +0000 (14:11 +0300)]
Add openSUSE repository

8 years agoAddress comments on PR #950 950/head
David Tolnay [Wed, 16 Sep 2015 17:48:50 +0000 (10:48 -0700)]
Address comments on PR #950

8 years agoImprove invalid object key error message
David Tolnay [Wed, 16 Sep 2015 16:49:11 +0000 (09:49 -0700)]
Improve invalid object key error message

8 years agoRemove "Requires 1.5" from manuals
David Tolnay [Mon, 14 Sep 2015 01:54:14 +0000 (18:54 -0700)]
Remove "Requires 1.5" from manuals

No longer necessary now that manuals are versioned.

8 years agoutf8bytelength: count UTF8 string bytelength
Joel Nothman [Tue, 8 Sep 2015 02:51:42 +0000 (12:51 +1000)]
utf8bytelength: count UTF8 string bytelength

[Builtin name changed, and it only works on string inputs. -Nico]

8 years agoFix segmentation fault on Windows with long paths (fix #939)
Steven Penny [Mon, 7 Sep 2015 16:29:32 +0000 (11:29 -0500)]
Fix segmentation fault on Windows with long paths (fix #939)

8 years agoAvoid passing '/bin/bash' as default argument to docker run 938/head
David Tolnay [Sat, 5 Sep 2015 19:59:54 +0000 (12:59 -0700)]
Avoid passing '/bin/bash' as default argument to docker run

Previously:

```
$ docker run dbdc663dabc8
jq: error: syntax error, unexpected '/', expecting $end (Unix shell quoting issues?) at <top-level>, line 1:
/bin/bash
jq: 1 compile error
$ docker run --entrypoint /bin/echo dbdc663dabc8
/bin/bash
```

Now:

```
$ docker run e36393e8c15e
jq - commandline JSON processor [version 1.5rc2-77-g9a3fe9e]
Usage: /usr/local/bin/jq [options] <jq filter> [file...]

jq is a tool for processing JSON inputs, applying the
...
```

8 years agoGet oniguruma from github instead of geocities 937/head
David Tolnay [Sat, 5 Sep 2015 18:53:35 +0000 (11:53 -0700)]
Get oniguruma from github instead of geocities

8 years agoFix indentation in Dockerfile
David Tolnay [Sat, 5 Sep 2015 18:54:56 +0000 (11:54 -0700)]
Fix indentation in Dockerfile

8 years agoAdd travis and coveralls badges to readme
David Tolnay [Tue, 25 Aug 2015 15:47:04 +0000 (08:47 -0700)]
Add travis and coveralls badges to readme

8 years agoNo-op commit to trigger first run of Travis.
Stephen Dolan [Tue, 25 Aug 2015 14:36:54 +0000 (15:36 +0100)]
No-op commit to trigger first run of Travis.

8 years agoRemove jq.1.default and related content 926/head
Nicolas Williams [Mon, 24 Aug 2015 04:08:11 +0000 (23:08 -0500)]
Remove jq.1.default and related content

8 years agoMove source files to src/
David Tolnay [Mon, 24 Aug 2015 03:36:11 +0000 (20:36 -0700)]
Move source files to src/

8 years agoCopy gitignore in website update script
David Tolnay [Sun, 23 Aug 2015 00:22:16 +0000 (17:22 -0700)]
Copy gitignore in website update script

8 years agoRemove obsolete comment in Makefile.am
David Tolnay [Sat, 22 Aug 2015 23:27:06 +0000 (16:27 -0700)]
Remove obsolete comment in Makefile.am

8 years agoSort source file lists in Makefile.am
David Tolnay [Sat, 22 Aug 2015 23:20:21 +0000 (16:20 -0700)]
Sort source file lists in Makefile.am

8 years agoStandardize indentation in Makefile.am
David Tolnay [Sat, 22 Aug 2015 22:31:47 +0000 (15:31 -0700)]
Standardize indentation in Makefile.am

This was being done 5 different way in 5 places:

- indent 3 spaces, then tabs to column 73
- indent 2 spaces, then tabs to column 73
- indent 2 spaces, then a single tab
- indent with spaces up to equal sign, then tabs to column 73
- indent 1 tab, then tabs to column 73

I standardized on 8 spaces, then spaces to column 73. The 8
spaces lines up with common browsers' indentation of the
rest of the makefile, which is indented by single tabs. The
spaces to column 73 make sure the trailing backslashes line
up regardless of the tabstop setting.

8 years agoAdd gcov output to gitignore
David Tolnay [Sat, 22 Aug 2015 21:47:07 +0000 (14:47 -0700)]
Add gcov output to gitignore

8 years agoInclude "jv.h" instead of <jv.h>
David Tolnay [Sat, 22 Aug 2015 20:53:44 +0000 (13:53 -0700)]
Include "jv.h" instead of <jv.h>

8 years agoFix decoding of UTF-8 sequence length (fix #922) 923/head
David Tolnay [Sat, 22 Aug 2015 19:18:13 +0000 (12:18 -0700)]
Fix decoding of UTF-8 sequence length (fix #922)

8 years agoSort libm functions
David Tolnay [Sat, 22 Aug 2015 17:54:35 +0000 (10:54 -0700)]
Sort libm functions

8 years agoRemove unused libm functions
David Tolnay [Fri, 21 Aug 2015 16:45:16 +0000 (09:45 -0700)]
Remove unused libm functions

8 years agoUse 'snprintf' instead of 'sprintf'
Frederic Cambus [Thu, 20 Aug 2015 21:17:58 +0000 (23:17 +0200)]
Use 'snprintf' instead of 'sprintf'

This gets rid of a linker warning when compiling on OpenBSD:

    ./.libs/libjq.a(jv_print.o)(.text+0x2fc): In function `jvp_dump_string':
    /root/jq-1.5/jv_print.c:118: warning: sprintf() is often misused, please use snprintf()

8 years agoHide manual jqplay button and navigation in print mode
David Tolnay [Thu, 20 Aug 2015 18:14:14 +0000 (11:14 -0700)]
Hide manual jqplay button and navigation in print mode

8 years agoHide tutorial "show result" button in print mode
David Tolnay [Thu, 20 Aug 2015 07:02:09 +0000 (00:02 -0700)]
Hide tutorial "show result" button in print mode

8 years agoExpand all manual examples in print mode
David Tolnay [Thu, 20 Aug 2015 06:27:10 +0000 (23:27 -0700)]
Expand all manual examples in print mode

8 years agoAdd FreeBSD install instructions (fix #917)
David Tolnay [Tue, 18 Aug 2015 15:21:55 +0000 (08:21 -0700)]
Add FreeBSD install instructions (fix #917)

8 years agoLink to correct 1.5 source tarball
David Tolnay [Tue, 18 Aug 2015 01:04:56 +0000 (18:04 -0700)]
Link to correct 1.5 source tarball

8 years agoFix assert fail when delpaths is given non-array (fix #901)
David Tolnay [Mon, 17 Aug 2015 02:44:16 +0000 (19:44 -0700)]
Fix assert fail when delpaths is given non-array (fix #901)

8 years agoStandardize on "color" to match what the flag has always been called
David Tolnay [Mon, 17 Aug 2015 02:19:01 +0000 (19:19 -0700)]
Standardize on "color" to match what the flag has always been called

8 years agoFix "the the" in manuals
David Tolnay [Mon, 17 Aug 2015 02:04:38 +0000 (19:04 -0700)]
Fix "the the" in manuals

8 years agoFix examples in 1.4 manual
David Tolnay [Mon, 17 Aug 2015 02:01:32 +0000 (19:01 -0700)]
Fix examples in 1.4 manual

8 years agoFix spelling of getpath and setpath in manual
David Tolnay [Mon, 17 Aug 2015 01:43:12 +0000 (18:43 -0700)]
Fix spelling of getpath and setpath in manual

8 years agoRemove duplicate author
David Tolnay [Mon, 17 Aug 2015 01:39:28 +0000 (18:39 -0700)]
Remove duplicate author

They seem to be the same person based on this pull request:
https://github.com/stedolan/jq/pull/80

I am keeping the email tied to his GitHub account.

8 years agoSort authors
David Tolnay [Mon, 17 Aug 2015 01:30:39 +0000 (18:30 -0700)]
Sort authors