Hello community, here is the log from the commit of package jsmn for openSUSE:Factory checked in at 2018-02-02 22:23:24 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/jsmn (Old) and /work/SRC/openSUSE:Factory/.jsmn.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "jsmn" Fri Feb 2 22:23:24 2018 rev:3 rq:572026 version:20180125 Changes: -------- --- /work/SRC/openSUSE:Factory/jsmn/jsmn.changes 2017-04-06 11:01:04.012770320 +0200 +++ /work/SRC/openSUSE:Factory/.jsmn.new/jsmn.changes 2018-02-02 22:23:36.726150547 +0100 @@ -1,0 +2,6 @@ +Fri Feb 02 13:32:07 UTC 2018 - astieger@suse.com + +- Update to version 20180125: + * developer visible changes only + +------------------------------------------------------------------- Old: ---- jsmn-20161012.tar.xz New: ---- jsmn-20180125.tar.xz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ jsmn.spec ++++++ --- /var/tmp/diff_new_pack.KqnwiH/_old 2018-02-02 22:23:37.474115632 +0100 +++ /var/tmp/diff_new_pack.KqnwiH/_new 2018-02-02 22:23:37.478115445 +0100 @@ -1,7 +1,7 @@ # # spec file for package jsmn # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: jsmn -Version: 20161012 +Version: 20180125 Release: 0 Summary: Minimalistic JSON parser library in C License: MIT @@ -26,7 +26,6 @@ Source: %{name}-%{version}.tar.xz Source2: CMakeLists.txt BuildRequires: cmake -BuildRoot: %{_tmppath}/%{name}-%{version}-build %description jsmn (pronounced like ‘jasmine’) is a minimalistic JSON parser in C with a @@ -67,13 +66,11 @@ %postun -n libjsmn0 -p /sbin/ldconfig %files -n libjsmn0 -%defattr(-,root,root) %doc LICENSE README.md %{_libdir}/libjsmn.so.0 %{_libdir}/libjsmn.so.0.0.0 %files devel -%defattr(-,root,root) %doc LICENSE README.md example/ %{_includedir}/jsmn.h %{_libdir}/libjsmn.so ++++++ _servicedata ++++++ --- /var/tmp/diff_new_pack.KqnwiH/_old 2018-02-02 22:23:37.542112458 +0100 +++ /var/tmp/diff_new_pack.KqnwiH/_new 2018-02-02 22:23:37.546112272 +0100 @@ -1,4 +1,4 @@ <servicedata> <service name="tar_scm"> <param name="url">https://github.com/zserge/jsmn.git</param> - <param name="changesrevision">1682c32e9ae5990ddd0f0e907270a0f6dde5cbe9</param></service></servicedata> \ No newline at end of file + <param name="changesrevision">f276e23a74f6a2f4342cf2094d99d869408512e9</param></service></servicedata> \ No newline at end of file ++++++ jsmn-20161012.tar.xz -> jsmn-20180125.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jsmn-20161012/.travis.yml new/jsmn-20180125/.travis.yml --- old/jsmn-20161012/.travis.yml 1970-01-01 01:00:00.000000000 +0100 +++ new/jsmn-20180125/.travis.yml 2018-01-25 21:49:10.000000000 +0100 @@ -0,0 +1,4 @@ +language: c +sudo: false +script: + - make test diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jsmn-20161012/README.md new/jsmn-20180125/README.md --- old/jsmn-20161012/README.md 2016-10-12 11:09:07.000000000 +0200 +++ new/jsmn-20180125/README.md 2018-01-25 21:49:10.000000000 +0100 @@ -1,7 +1,8 @@ - JSMN ==== +[![Build Status](https://travis-ci.org/zserge/jsmn.svg?branch=master)](https://travis-ci.org/zserge/jsmn) + jsmn (pronounced like 'jasmine') is a minimalistic JSON parser in C. It can be easily integrated into resource-limited or embedded projects. @@ -152,9 +153,9 @@ * `JSMN_ERROR_NOMEM` - not enough tokens, JSON string is too large * `JSMN_ERROR_PART` - JSON string is too short, expecting more JSON data -If you get `JSON_ERROR_NOMEM`, you can re-allocate more tokens and call +If you get `JSMN_ERROR_NOMEM`, you can re-allocate more tokens and call `jsmn_parse` once more. If you read json data from the stream, you can -periodically call `jsmn_parse` and check if return value is `JSON_ERROR_PART`. +periodically call `jsmn_parse` and check if return value is `JSMN_ERROR_PART`. You will get this error until you reach the end of JSON data. Other info diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jsmn-20161012/test/tests.c new/jsmn-20180125/test/tests.c --- old/jsmn-20161012/test/tests.c 2016-10-12 11:09:07.000000000 +0200 +++ new/jsmn-20180125/test/tests.c 2018-01-25 21:49:10.000000000 +0100 @@ -353,6 +353,14 @@ JSMN_PRIMITIVE, "Sep", JSMN_PRIMITIVE, "Year", JSMN_PRIMITIVE, "12")); + + //nested {s don't cause a parse error. + js = "\"key {1\": 1234"; + check(parse(js, 2, 2, + JSMN_STRING, "key {1", 1, + JSMN_PRIMITIVE, "1234")); + + #endif return 0; } @@ -367,8 +375,9 @@ check(parse(js, JSMN_ERROR_INVAL, 3)); js = "\"key 1\"}: 1234"; check(parse(js, JSMN_ERROR_INVAL, 3)); - js = "\"key {1\": 1234"; - check(parse(js, 2, 2, + js = "{\"key {1\": 1234}"; + check(parse(js, 3, 3, + JSMN_OBJECT, 0, 16, 1, JSMN_STRING, "key {1", 1, JSMN_PRIMITIVE, "1234")); js = "{{\"key 1\": 1234}";