summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'gvariant-errno-1-4' into 'json-glib-1-4'json-glib-1-4Emmanuele Bassi2020-04-061-11/+33
|\ | | | | | | | | json-gvariant: Stop string to GVariant conversion failing due to unrelated errno changes See merge request GNOME/json-glib!24
| * json-gvariant: Stop string to GVariant conversion failing due to unrelated ↵Robert Ancell2020-04-071-11/+33
|/ | | | | | | | | | errno changes This was observed as failing due to some codepath inside g_variant_new_string setting errno to EAGAIN. Json Glib was erroneously detecting this in the checks designed to catch string to integer conversions. Solved by making errno only checked after the integer conversions.
* Drop unnecessary build-api wrapperEmmanuele Bassi2018-10-091-156/+0
| | | | | | All the build environments know how to build with Meson, now. (cherry picked from commit c34dfe25fc56e6683e149e51849c137a31df8d8e)
* Update the description for the 'docs' build optionEmmanuele Bassi2018-09-181-1/+1
| | | | | The `docs` option only controls the build of the API reference; for the man pages, there's the `man` option.
* Post-release version bump to 1.4.5Emmanuele Bassi2018-09-171-1/+1
|
* Release JSON-GLib 1.4.4 (stable)1.4.4Emmanuele Bassi2018-09-171-1/+1
|
* build: Add a separate option for generating man pagesEmmanuele Bassi2018-09-173-26/+27
| | | | | Instead of having a single option for both API reference and tools documentation.
* Update Occitan translationCédric Valmary2018-04-191-135/+166
|
* Update Romanian translationDaniel Șerbănescu2018-04-091-89/+94
|
* Add Croatian translationgogo2018-03-162-0/+265
|
* Update Chinese (Taiwan) translationChao-Hsiung Liao2018-03-131-75/+81
| | | | | (cherry picked from commit 00f15c780ec4e126a33a5c526c071edb2699bc3c) Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
* Remove po/MakevarsPiotr Drąg2018-03-131-9/+0
| | | | | | | Meson doesn’t use it, and Damned Lies learned to read po/meson.build. (cherry picked from commit 82d98e666d5dda511a35b601fd7bbbc095caada5) Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
* tests: Fix some memory leaks in the testsPhilip Withnall2018-03-133-1/+5
| | | | | | | | | | | We can’t do this by porting to g_autoptr(), because json-glib needs to be buildable using MSVC. Sad panda. Signed-off-by: Philip Withnall <withnall@endlessm.com> https://gitlab.gnome.org/GNOME/json-glib/issues/30 (cherry picked from commit 43b9703970a6d5f2fc53f828ab8d29195ab01583) Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
* json-parser: Fix a memory leak on two error handling pathsPhilip Withnall2018-03-131-0/+2
| | | | | | | | | | | Small leak. With some additional fixes to the tests themselves, this makes all the tests run valgrind-clean. (See the following commit.) Signed-off-by: Philip Withnall <withnall@endlessm.com> https://gitlab.gnome.org/GNOME/json-glib/issues/30 (cherry picked from commit 96d591b5708ef9dfb4c02d2ae39b891f903d8a58) Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
* json-parser: Fix getting immutable root nodes from empty inputPhilip Withnall2018-03-132-10/+31
| | | | | | | | | | | | | | | | If parsing an empty document, it’s allowed to return NULL from json_parser_get_root(). This was broken for immutable parsers when immutability support was added (an assertion fails). Fix that, and also document that json_parser_get_root() may return NULL. Do the same for json_parser_steal_root() too, which is another way that the root node may be NULL. Add a unit test. Signed-off-by: Philip Withnall <withnall@endlessm.com> (cherry picked from commit ef5707cd0b8d1a1a4ab4edf9ae58c7b3176ef93b) Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
* json-node: Clarify documentation regarding programmer errorsPhilip Withnall2018-03-131-19/+33
| | | | | | | | | | | | | | Despite my efforts in commit 011c1e424b7 (parts of which were completely incorrect), the JsonNode documentation still wasn’t particularly helpful about differentiating between methods which return NULL if the JsonNode is not of the right type, and methods which emit a critical warning. Try and improve that across the board, hopefully without saying blatantly incorrect things this time. Signed-off-by: Philip Withnall <withnall@endlessm.com> (cherry picked from commit acb22e9e18c2a5bf93ed82af4d8194341acfdc01) Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
* node: Use json_node_unref for the JsonNode autoptr cleanupRobert Ancell2018-03-131-1/+1
| | | | | | | | | json_node_unref was added after the autoptr macros were written. This fixes an assertion failure if using autoptr and json_node_ref. (cherry picked from commit 0df2466103ff706e980e82cd560232fdd2ba1baa) Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
* Update json-enum-types.h.inRavish Bhatia2018-03-131-1/+1
| | | | | (cherry picked from commit b577c363c501116bffa08af27090e38d74b430c6) Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
* Add Dutch translationNathan Follens2017-11-052-0/+271
|
* Merge branch 'issue-28' into 'master'Emmanuele Bassi2017-11-045-32/+35
|\ | | | | | | | | | | | | Use fuzzy comparisons for floating point values Closes #27 and #28 See merge request GNOME/json-glib!2
| * Use fuzzy comparison for floating point valuesEmmanuele Bassi2017-11-044-32/+14
| | | | | | | | | | | | Direct comparison should never be used for floating point values. Fixes #27 and #28.
| * Add float comparison utility macros for testsEmmanuele Bassi2017-11-041-0/+21
|/ | | | | We do compare floating point values elsewhere in our code, so we should ensure that we're doing that with a certain amount of fuzziness.
* Update zh_CN translationMingcong Bai2017-10-211-78/+85
|
* [l10n] Updated Catalan (Valencian) translationXavi Ivars2017-10-051-59/+169
|
* Update Greek translationEfstathios Iosifidis2017-09-251-94/+126
|
* Updated Slovenian translationMatej Urbančič2017-09-201-95/+103
|
* Post-release version bump to 1.4.3Emmanuele Bassi2017-09-121-1/+1
|
* Release JSON-GLib 1.4.21.4.2Emmanuele Bassi2017-09-121-1/+1
| | | | | | Literally no change, but the tarball generated for 1.4.0 and pushed to download.gnome.org comes from a different commit because I jumped the gun.
* Post-release version bump to 1.4.1Emmanuele Bassi2017-09-121-1/+1
|
* Release JSON-GLib 1.4.01.4.0Emmanuele Bassi2017-09-121-1/+1
| | | | | | | | | | Changes since 1.3.2: - Update the linker flags on macOS [#785053] - Change the build configuration options to better fit with Meson Translation updates: Czech, Galician, Serbian, Catalan, Nepali, Italian, Latvian, Brazilian Portuguese, Korean, Slovak, Turkish, Basque, Danish
* build: Clean up configuration optionsEmmanuele Bassi2017-09-125-21/+15
| | | | | Drop the Autotool-isms, and use something more in line with what Meson expects for configuration options.
* Updated Danish translationAsk Hjorth Larsen2017-09-101-102/+102
|
* Update Basque languageInaki Larranaga Murgoitio2017-09-091-98/+130
|
* Update Turkish translationMuhammet Kara2017-09-091-94/+126
|
* docs: Update the README fileEmmanuele Bassi2017-09-051-37/+23
| | | | Drop mentions of Bugzilla: we moved all our open bugs to GitLab.
* build: Rework the introspection optionEmmanuele Bassi2017-09-053-7/+7
| | | | | | | | | | | Instead of using `disable_introspection=false`, flip the condition around, and use `enable-introspection=true`. This avoids the double negative. Additionally, we should drop the cross-compilation check; it's entirely possible to cross-compile introspection data for different platforms and architectures; this allows the Yocto project to drop a patch for JSON-GLib.
* build: Update the macOS linker flagsEmmanuele Bassi2017-09-051-1/+4
| | | | | | Use the interface and binary ages to define the current version. https://bugzilla.gnome.org/show_bug.cgi?id=785053
* Update Slovak translationDušan Kazik2017-09-021-74/+81
|
* Update Korean translationSeong-ho Cho2017-09-021-95/+102
|
* Update Brazilian Portuguese translationRafael Fontenelle2017-08-301-99/+130
|
* Update Latvian translationRūdolfs Mazurs2017-08-281-79/+111
|
* Update Italian translationMilo Casagrande2017-08-251-99/+104
|
* Add Nepali translationPawan Chitrakar2017-08-242-0/+265
|
* Update Catalan translationJordi Mas2017-08-221-74/+82
|
* Updated Serbian translationМирослав Николић2017-08-152-153/+217
|
* Update Galician translationFran Dieguez2017-08-071-77/+109
|
* Updated Czech translationMarek Cernocky2017-08-021-74/+81
|
* Post-release version bump to 1.3.3Emmanuele Bassi2017-07-181-1/+1
|
* Release JSON-GLib 1.3.2 (snapshot)1.3.2Emmanuele Bassi2017-07-182-1/+11
| | | | | | | | | | | | | | | | Changes from 1.2.8: • Use Meson as the only build system • #773504 - Avoid extra allocations [Garrett Regier] • #780550 - meson error looking for python3 [Daniele Forghieri] • #769206 - docs: Clarify when NULL might be returned [Matthew Leeds] • #766281 - utils/json_from_string: Don't reset user-provided error argument [Heinrich Fink] • #758580 - json_reader_is_value returns TRUE for null type but json_reader_get_value throws an error [Robert Ancell] • #768788 - Incorrect account of jsonPath syntax in doc [Allin Cottrell] • #774688 - json_from_string() could be optimized to avoid copying the root node [Ole André Vadla Ravnås]
* Merge branch 'jjardon/ci' into 'master'Emmanuele Bassi2017-07-141-0/+15
|\ | | | | | | | | Add minimal .gitlab-ci.yml file See merge request !1