1
0
mirror of https://github.com/stedolan/jq.git synced 2024-05-11 05:55:39 +00:00

921 Commits

Author SHA1 Message Date
3fae608b65 Copy over links to 1.5rc2 from gh-pages 2015-08-07 20:35:41 -07:00
a47b32999b Fix range(value;stream) (fix #886) 2015-08-06 23:05:03 -07:00
d66fbd218b Clarify documentation of STRING * INTEGER 2015-08-04 21:40:16 -04:00
b5edbf7ffa OS X's mktemp -d requires template (fix #876) 2015-07-28 00:28:54 -05:00
6b55baa00f Add missing files (fix #875) 2015-07-28 00:09:46 -05:00
7f251344b7 Fix make dist (fix #870) jq-1.5rc2 2015-07-26 23:26:30 -05:00
21309bc6d7 Error on bytecodes longer than 0xFFFF (fix #269)
This lets us use uint16_t for the program counter. JVM
languages have the same limit on method size so it is a
reasonable limit.
2015-07-26 16:19:20 -07:00
8295baf284 Drop plus from "jq 1.5+" on download page
See https://github.com/stedolan/jq/issues/488#issuecomment-124998113
2015-07-26 09:37:34 -07:00
ec84f28630 News is not THIS important 2015-07-26 01:27:14 -07:00
701a47c82e Add 1.4 and 1.3 manuals to website (fix #866) 2015-07-26 01:26:13 -07:00
616f365e5a Suggest --disable-maintainer-mode on download page 2015-07-25 23:44:52 -07:00
ceb2684f2f Update setup.sh script
Adjust what gets cleaned up now that ChangeLog and
config/.gitignore are checked into the repo, and skip
install and distcheck steps.
2015-07-24 23:26:47 -07:00
b9c340a211 Change homepage .com -> .io
The .com redirects to .io, but might as well have the
correct one to begin with.
2015-07-24 22:55:58 -07:00
3a964e2025 Change AC bug-report parameter to point to GitHub
This affects where `make check` tells you to report failures.
2015-07-24 22:48:03 -07:00
3d49fc59dd Implement flatten/0 in terms of flatten/1 2015-07-24 21:55:43 -07:00
16e8d0b1ab detect invalid path expression (fix #862) 2015-07-24 20:23:07 -07:00
5856a2d2c0 simplify implementation of bsearch to use "until" and avoid "last"; tested 2015-07-24 12:29:20 -07:00
227f62e013 Rebuild jq.1.prebuilt 2015-07-24 09:01:21 -07:00
89244cc3ea fix references to --color-output 2015-07-24 10:18:12 -04:00
3a43e2ff07 Updated v1.3 filenames
The jq 1.3 filenames for Windows are jq-1.3.exe instead of jq.exe. Updated these so they no longer return a 404.
2015-07-23 22:24:39 -07:00
81f328f1aa Copy over changes made to gh-pages directly
This includes the following commits from the gh-pages branch:

 - 63e80b8
 - d24a397
 - 9796cd6
 - ee21707
 - ccb0f1d
 - 200e6b3
 - 64134c0
 - 57152d2
 - 8ffbfa3
2015-07-23 21:51:30 -07:00
f5a7bba986 Resolve remaining shift/reduce conflicts involving '?'
By lowering the precedence of rules that should never use
the generic Exp '?' rule.
2015-07-19 09:43:10 -07:00
66ef8e2c24 Resolve shift/reduce conflict of 'def' vs '|'
This was an important conflict. In the following expression:

    def a: 0; . | a

Bison needs to decide between these two equally valid
parses:

    (def a: 0; .) | a
    def a: 0; (. | a)

For jq we want the second one, because the first results in
"a/0 is not defined". In the current parser the first parse
is a reduce and the second parse is a shift. Since Bison
prefers to shift in shift/reduce conflicts, we accidentally
got the correct behavior.

This commit adds a precedence level FUNCDEF which is lower
precedence than '|', meaning we explicitly choose the
correct parse.

Of course many unit tests already cover this case, but I
added one specifically for it.
2015-07-19 09:42:01 -07:00
1628bbf95f Clean up trailing whitespace 2015-07-19 09:38:50 -07:00
812703139c Use =, not ==, for shell tests 2015-07-18 21:12:08 -05:00
54add5ac9a travis has whitelisted libonig-dev
https://github.com/travis-ci/travis-ci/issues/4123
2015-07-10 13:21:00 -07:00
f183b57ed5 input_filename should never empty 2015-07-10 12:32:11 -05:00
dc4dfdff17 Update AUTHORS 2015-07-10 12:28:21 -05:00
f55034d314 Update NEWS 2015-07-10 11:26:29 -05:00
930899e12d Update ChangeLog 2015-07-10 11:12:24 -05:00
579518c78d Use include for import into namespace 2015-07-10 10:19:33 -05:00
fa45a5121c Simplify import docs 2015-07-10 10:11:30 -05:00
862566a48f Fix typo in docs 2015-07-10 10:10:28 -05:00
f9f4d2d1e5 Dockerfile reorganized
* Remove excess layer creation
  This is an antipattern in Docker.
* Remove build tools once build is complete
  Leaving them around is not necessary and expands the image size 5x
* Make check works with libonig installed
* Compiles statically (needs libonig to be built rather than installed)
* Valgrind doesn't work with the use of TLS in jq so it's disabled -- this
  might be a FIXME situation; I'm not familiar enough with valgrind to
  say whether this is expected
* Make entrypoint be the jq binary so that the image can also be used
  to run jq in environments where you don't want to or can't install
  jq (such as CoreOS).
2015-07-10 07:15:44 -07:00
b74379532d Fixing missing D in LIBM_DDD_NO macro name 2015-07-09 14:59:37 -04:00
1e5e0c9fe2 Make jq.h usable from C++
Previously, with clang++:
jq.h:46:37: error: typedef redefinition with different
      types ('struct jq_util_input_state *' vs 'jq_util_input_state')

With g++:
jq.h:46:37: error: conflicting declaration
      ‘typedef struct jq_util_input_state* jq_util_input_state’

This typedef was added to libjq by commit 0d41447 which was
after the 1.4 release, so although it is a public API, this
is not a backcompat break because it has never been in a
release.

Specifying the "*" at all uses of jq_util_input_state is
slightly tedious, but jq_state already works that way, so at
least it will be consistent.
2015-07-04 15:08:01 -07:00
05899f8b3e Fix Windows build 2015-07-04 13:45:24 -05:00
a2a6f2d896 Document math support 2015-07-03 21:19:01 -05:00
1c350c67d7 Remove pow10 for now; CHECK_MATH_FUNC needs work
The CHECK_MATH_FUNC() m4 macro needs work.  It should use
AC_RUN_IFELSE(), not just AC_LINK_IFELSE(), and it should #define
_GNU_SOURCE and/or other such feature macros in the prologue to get
non-standard math functions (alternatvely jq should only support
standard math functions).
2015-07-03 21:13:13 -05:00
2348b7245e docs and diagram for exec_stack 2015-07-02 23:58:07 -07:00
6e27de4f74 strftime wrong day-of-week (fix #838) 2015-07-01 20:37:16 -07:00
e5dafaea44 Document --run-tests 2015-06-28 13:57:02 -05:00
fd4f4f2087 Make --run-tests' jv_test() quiet 2015-06-28 13:39:32 -05:00
6c89186437 Make --run-tests less verbose by default
Adding --debug-trace or --debug-dump-disasm before --run-tests now makes
it verbose.
2015-06-27 23:31:44 -05:00
32c4759e6b Add more basic number tests 2015-06-27 23:15:16 -05:00
6366cfd7a4 Add pow, better libm detection (fix #443) 2015-06-27 23:14:46 -05:00
9985c01975 gcov exclusions 2015-06-27 14:48:13 -07:00
e6371712ff flag to enable gcov and coveralls 2015-06-27 11:25:01 -07:00
d7e35101c5 add configure option to run tests without valgrind 2015-06-27 11:24:53 -07:00
1defaa7b00 Fix braino in merging the previous commit
There's a mantest that shows how to use `env`.  Well, we need to set the
env var as expected then, else it will fail.
2015-06-27 13:00:41 -05:00