Alexis Laferrière [Mon, 5 Jan 2015 17:42:23 +0000 (12:42 -0500)]
contrib/friendz: use `app:data_store` to keep best scores
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Mon, 5 Jan 2015 16:31:04 +0000 (11:31 -0500)]
contrib/friendz: gitignore and clean the res folder
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sat, 3 Jan 2015 18:15:12 +0000 (13:15 -0500)]
mnit: completely remove `mnit_zoom`
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sat, 3 Jan 2015 18:04:46 +0000 (13:04 -0500)]
contrib/friendz: manage zoom at the application level
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sat, 3 Jan 2015 17:45:49 +0000 (12:45 -0500)]
mnit: update all clients of `mnit_android` with custom orientations
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sat, 3 Jan 2015 17:44:41 +0000 (12:44 -0500)]
android: extract landscape and portrait configs from `android_app`
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sat, 3 Jan 2015 16:49:55 +0000 (11:49 -0500)]
contrib/friends: add icon for Android
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sat, 3 Jan 2015 16:49:34 +0000 (11:49 -0500)]
contrib/friendz: give credit to Sam Hocevar for the artwork
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sat, 3 Jan 2015 16:49:07 +0000 (11:49 -0500)]
android: add `AndroidPointerEvent::just_went_down` for `friendz`
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sat, 3 Jan 2015 01:04:54 +0000 (20:04 -0500)]
android: add doc and fix warnings in `input_events`
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Tue, 30 Dec 2014 02:23:17 +0000 (21:23 -0500)]
android: update style of `input_events`
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Fri, 19 Dec 2014 01:06:37 +0000 (20:06 -0500)]
android: extract Android input events from `mnit_android`
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Mon, 29 Dec 2014 01:20:17 +0000 (20:20 -0500)]
Merge: Minor Modifications to GTK3
Pull-Request: #1068
Reviewed-by: Jean Privat <jean@pryen.org>
Jean Privat [Sun, 28 Dec 2014 14:48:16 +0000 (09:48 -0500)]
Merge: Optimize `Array::add_all`
Calls to `Array::add_all` were a noticable bottleneck in gammit, so I optimized it. The opimization is even more efficient when adding Arrays to Arrays, compared to adding Sequences to Arrays. It is general enough that it could be useful in the standard library (but I could also keep it in gammit if you prefer).
Speeds up the benchmark program by about 60%, with even better effects when adding larger arrays.
We could probably optimize this further at the NativeArray level but it looked more error prone.
Pull-Request: #1067
Reviewed-by: Jean Privat <jean@pryen.org>
Alexis Laferrière [Sat, 27 Dec 2014 23:04:04 +0000 (18:04 -0500)]
tests: update line number in sav file of `test_new_native_alt1`
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Tue, 23 Dec 2014 03:35:51 +0000 (22:35 -0500)]
lib/standard: optimize `Array::add_all`
The number of instructions to run `bench_add_all` was at 42 mIr, and
after optimization at 17 mIr.
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Tue, 23 Dec 2014 03:33:22 +0000 (22:33 -0500)]
tests: intro a bench test for Array::add_all
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Mon, 22 Dec 2014 06:58:22 +0000 (01:58 -0500)]
lib/gtk: fix import from `GtkEntry::text`
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sat, 27 Dec 2014 17:50:11 +0000 (12:50 -0500)]
lib/gtk: add `GtkWidget::destroy|show|hide` and avoid conflicts
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sun, 21 Dec 2014 15:45:52 +0000 (10:45 -0500)]
lib/gtk: add `GtkBox` to containers hierarchy
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Thu, 25 Dec 2014 02:42:46 +0000 (21:42 -0500)]
Merge: neo_doxygen: Enhance description handling
* Document the implicit nodes.
* Prepare `DocListener` for translation of the Doxygen’s markup. #1059 must be fixed before we do anything else.
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Pull-Request: #1060
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Wed, 24 Dec 2014 01:22:16 +0000 (20:22 -0500)]
Merge: lib/socket: fix, update style and intro features
This is a pretty big update to the `socket` module. It appeared to be broken. Did someone test it since the last modifications to streams and read_line?
* Update and cleanup the style in the first 3 or 4 commits.
* Fix (some of) what was broken.
* Revamp the API with a distinction between listening sockets and stream sockets (making it closer to Ruby and C#). This is the most important commit "lib/socket: distinguish `TCPServer` from `TCPStream`".
* Intro additionnal features used by Mineit: non-blocking `TCPServer` sockets and `TCPStream::flush`.
Still to do:
* Add `Error` support to the API.
* Rename `socket_c` to `native_socket`.
* Fix `SocketObserver` and underlying C implementation.
Pull-Request: #1063
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Alexis Laferrière [Mon, 22 Dec 2014 16:27:38 +0000 (11:27 -0500)]
lib/socket: update socket clients
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Mon, 22 Dec 2014 04:40:04 +0000 (23:40 -0500)]
lib/socket: add an easier server example
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Mon, 22 Dec 2014 03:38:18 +0000 (22:38 -0500)]
lib/socket: update examples to the latest API
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Mon, 22 Dec 2014 03:37:50 +0000 (22:37 -0500)]
lib/socket: minimal update to `SocketObserver` API and note some problems
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Mon, 22 Dec 2014 02:42:32 +0000 (21:42 -0500)]
lib/socket: intro `flush` and `blocking=`
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Mon, 22 Dec 2014 02:42:10 +0000 (21:42 -0500)]
lib/socket: distinguish `TCPServer` from `TCPStream`
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Tue, 23 Dec 2014 02:39:46 +0000 (21:39 -0500)]
Merge: neo_doxygen: location does not need noe4j
Found this while investigating #936 with @xymus
Pull-Request: #1061
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Tue, 23 Dec 2014 02:39:40 +0000 (21:39 -0500)]
Merge: More no warning
* process no_wargning before analysing classes
* test_suites are automatically no_warning("missing-doc")
* add no_warning in generated files
Pull-Request: #1058
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexis Laferrière [Mon, 22 Dec 2014 02:38:14 +0000 (21:38 -0500)]
lib/socket: intro `NativeSocket::non_blocking` and `tcp_nodelay`
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Mon, 22 Dec 2014 02:36:28 +0000 (21:36 -0500)]
lib/socket: clean up `native_accept` to better manage failed accept
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Mon, 22 Dec 2014 02:33:43 +0000 (21:33 -0500)]
lib/socket: replace `NativeSocketAcceptResult` by a Nit class
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sun, 21 Dec 2014 16:04:36 +0000 (11:04 -0500)]
lib/socket: rename prefix `FF` to `Native` per latest best practices
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sun, 21 Dec 2014 15:57:26 +0000 (10:57 -0500)]
lib/socket: update style of the native module & move comments to doc
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sun, 21 Dec 2014 15:47:03 +0000 (10:47 -0500)]
lib/socket: use standard type names instead of local typedefs
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean-Christophe Beaupré [Fri, 19 Dec 2014 16:25:32 +0000 (11:25 -0500)]
neo_doxygen: Add an API to process description markup.
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Jean-Christophe Beaupré [Sat, 20 Dec 2014 23:54:03 +0000 (18:54 -0500)]
html: Add missing documentation.
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Jean-Christophe Beaupré [Thu, 18 Dec 2014 15:51:37 +0000 (10:51 -0500)]
neo_doxygen: Add a section about brief descriptions in the `README`.
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Jean-Christophe Beaupré [Sat, 20 Dec 2014 23:52:59 +0000 (18:52 -0500)]
neo_doxygen: Add a class to manage brief descriptions.
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Jean-Christophe Beaupré [Fri, 19 Dec 2014 00:01:41 +0000 (19:01 -0500)]
neo_doxygen: Enable `JAVADOC_AUTOBRIEF` on Java tests.
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Jean-Christophe Beaupré [Thu, 18 Dec 2014 20:51:47 +0000 (15:51 -0500)]
neo_doxygen: Rename the `doc` module.
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Jean-Christophe Beaupré [Sat, 20 Dec 2014 17:31:31 +0000 (12:31 -0500)]
neo_doxygen: Document implicit classes.
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Jean-Christophe Beaupré [Sun, 21 Dec 2014 03:44:08 +0000 (22:44 -0500)]
neo_doxygen: Document modules.
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Jean Privat [Sat, 20 Dec 2014 20:35:40 +0000 (15:35 -0500)]
neo_doxygen: location does not need noe4j
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Sat, 20 Dec 2014 14:24:31 +0000 (09:24 -0500)]
json: regenerate with new `no_warning`
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Sat, 20 Dec 2014 14:24:08 +0000 (09:24 -0500)]
ffi: fix phase dependencies
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Sat, 20 Dec 2014 14:11:33 +0000 (09:11 -0500)]
nitcc: add `no_warning` when generating files
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Sat, 20 Dec 2014 13:51:58 +0000 (08:51 -0500)]
pep8analysis: add `no_warning` to generated files
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Sat, 20 Dec 2014 13:46:55 +0000 (08:46 -0500)]
no_warning: automatically disable `missing-doc` on test_suites
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Sat, 20 Dec 2014 13:46:05 +0000 (08:46 -0500)]
frontend: handle no-warnings before starting a modelize phase
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Sat, 20 Dec 2014 03:24:45 +0000 (22:24 -0500)]
Merge: lib/json: introduces collection management in JsonStore.
Also improve the documentation.
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Pull-Request: #1055
Reviewed-by: Jean Privat <jean@pryen.org>
Jean Privat [Sat, 20 Dec 2014 03:24:39 +0000 (22:24 -0500)]
Merge: GitHub API: handles branches and commits
Github API learns to retrieve commits and branches.
Pull-Request: #1054
Reviewed-by: Jean Privat <jean@pryen.org>
Jean Privat [Sat, 20 Dec 2014 03:24:28 +0000 (22:24 -0500)]
Merge: More documentation in src
A lot a documentation, especially in the AST
Pull-Request: #1050
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Sat, 20 Dec 2014 01:24:39 +0000 (20:24 -0500)]
Merge: nitdoc: Always escape
Finally fix #891.
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Pull-Request: #1053
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Sat, 20 Dec 2014 01:24:37 +0000 (20:24 -0500)]
Merge: nitdoc: Always use `mdoc_or_fallback`.
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Pull-Request: #1052
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Sat, 20 Dec 2014 01:24:32 +0000 (20:24 -0500)]
Merge: Activate VM
Add option `--vm` to `nit` that allows users (and jenkins) to run the VM from bin/
@jpages c'est pour toi!
Pull-Request: #1051
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Sat, 20 Dec 2014 01:24:27 +0000 (20:24 -0500)]
Merge: Locally disable warnings
The new annotation `no_warning`, used in module, will disable specific (or all) warnings in the module.
~~~
module lexer is no_warning("missing-doc")
module parser is no_warning("missing-doc", "unread-variable")
module toto is no_warning("all")
~~~
Note: Now there is less noise, a future PR (currently in writing) will remove a lot of warnings in the `src/` directory.
Close #774
Pull-Request: #1048
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Jean Privat [Sat, 20 Dec 2014 01:24:23 +0000 (20:24 -0500)]
Merge: neo_doxygen: Add some pythonic stuff
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Pull-Request: #1043
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Fri, 19 Dec 2014 18:50:48 +0000 (13:50 -0500)]
lib/github: handles commits
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Fri, 19 Dec 2014 18:15:27 +0000 (13:15 -0500)]
lib/github: handles branches
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Sat, 20 Dec 2014 01:20:13 +0000 (20:20 -0500)]
src: finish documenting some module
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 19 Dec 2014 02:19:52 +0000 (21:19 -0500)]
parser: document all properties of `parser_nodes`
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 19 Dec 2014 02:19:24 +0000 (21:19 -0500)]
parser: add some factorization classes in `parser_nodes`
Signed-off-by: Jean Privat <jean@pryen.org>
Alexandre Terrasa [Sat, 20 Dec 2014 01:07:57 +0000 (20:07 -0500)]
lib/json: introduces collection management in JsonStore.
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Fri, 19 Dec 2014 18:44:20 +0000 (13:44 -0500)]
lib/github: fixes GithubAPI::get documentation
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean-Christophe Beaupré [Fri, 12 Dec 2014 19:40:09 +0000 (14:40 -0500)]
nitdoc: Always escape names.
Fix #891.
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Jean-Christophe Beaupré [Fri, 12 Dec 2014 19:33:53 +0000 (14:33 -0500)]
nitdoc: Escape modifiers.
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Jean-Christophe Beaupré [Fri, 12 Dec 2014 19:22:29 +0000 (14:22 -0500)]
nitdoc: Escape links’ attributes.
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Jean-Christophe Beaupré [Fri, 12 Dec 2014 19:21:06 +0000 (14:21 -0500)]
nitdoc: Escape page title.
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Jean-Christophe Beaupré [Fri, 12 Dec 2014 19:34:58 +0000 (14:34 -0500)]
nitdoc: Factorize `nitdoc_name`.
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Jean-Christophe Beaupré [Fri, 12 Dec 2014 19:32:24 +0000 (14:32 -0500)]
nitdoc: Always use `mdoc_or_fallback`.
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Jean-Christophe Beaupré [Wed, 17 Dec 2014 20:24:16 +0000 (15:24 -0500)]
neo_doxygen: Include a tip for Python in the `README`.
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Jean-Christophe Beaupré [Wed, 17 Dec 2014 20:18:24 +0000 (15:18 -0500)]
neo_doxygen: Add an option to remove the `def` keyword of Python.
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Jean Privat [Fri, 19 Dec 2014 14:40:15 +0000 (09:40 -0500)]
tests: add nitvm to testall.sh
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 19 Dec 2014 03:48:43 +0000 (22:48 -0500)]
man: add `--vm` to `nit.md`
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 19 Dec 2014 03:45:34 +0000 (22:45 -0500)]
tests: use `nit --vm` (thus available in bin/) for the engine `nitvm`
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 19 Dec 2014 03:42:41 +0000 (22:42 -0500)]
tests: update nitvm.skip file
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 19 Dec 2014 03:42:00 +0000 (22:42 -0500)]
nit: new experimental `--vm` option to run the vm
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 19 Dec 2014 03:41:27 +0000 (22:41 -0500)]
vm: rename `run_naive_interpreter` as `run_virtual_machine`.
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 19 Dec 2014 03:08:28 +0000 (22:08 -0500)]
Merge: tests: `grep` in skip os is now silent
Pull-Request: #1046
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Fri, 19 Dec 2014 03:08:18 +0000 (22:08 -0500)]
Merge: neo4j: Remove the old `jsonable` library.
That library is useless since PR #907.
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Pull-Request: #1045
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Fri, 19 Dec 2014 03:07:20 +0000 (22:07 -0500)]
Merge: Arrays comprehension
Implements and closes #896
Was not as hard as expected, not bad for less than 12 hours of thinking, coding and sleeping.
Pull-Request: #1042
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Jean Privat [Thu, 18 Dec 2014 20:34:41 +0000 (15:34 -0500)]
parser: add `no_warning` in generated files to disable some warnings
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 18 Dec 2014 20:12:13 +0000 (15:12 -0500)]
frontend: new phase and annotation `no_warning` to disable warning per module
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 18 Dec 2014 20:10:17 +0000 (15:10 -0500)]
toolcontext: enable blacklisting of warnings by source-file.
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 18 Dec 2014 20:02:25 +0000 (15:02 -0500)]
parser: promote `collect_X` from `parser_util`
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 18 Dec 2014 20:01:43 +0000 (15:01 -0500)]
parser_nodes: promote `get_annotation` and `AAnnotation::name` from `annotation`
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 18 Dec 2014 20:00:23 +0000 (15:00 -0500)]
literal: promote `as_X` from annotation
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 18 Dec 2014 17:40:16 +0000 (12:40 -0500)]
tests: `grep` in skip os is now silent
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 18 Dec 2014 16:40:55 +0000 (11:40 -0500)]
Merge: Nitcorn: fixes crash on bufferized inputs
So... I'm not proud of this patch but it works so better this than nothing.
Partially fixes #1027 waiting for better.
Ping
@jpcaissy
@xymus
Pull-Request: #1031
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Jean-Philippe Caissy <jpcaissy@piji.ca>
Reviewed-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 18 Dec 2014 16:40:51 +0000 (11:40 -0500)]
Merge: lib/json: introduces json store a simple json data storage system.
Store and load json data.
This simple system can be used to store and retrieve json data.
## Usage
Create a new JsonStore or reuse an existing one.
~~~
var store = new JsonStore("store_dir")
~~~
JsonStore can store json of type JsonObject and JsonArray.
~~~
var color = "red"
var obj = new JsonObject
obj["color"] = name
obj["code"] = "FF0000"
~~~
Data are stored under a key.
~~~
var key = "colors/{name}"
~~~
Store the object.
~~~
store.store_object(key, obj)
assert store.has_key(key)
~~~
Load the object.
~~~
assert store.has_key(key)
var red = store.load_object(key)
assert res["name"] == name
~~~
Clear all stored data.
~~~
store.clear
~~~
*Copied from module documentation.*
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Pull-Request: #1019
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 18 Dec 2014 16:40:46 +0000 (11:40 -0500)]
Merge: nitdoc: Fix IDs
Fix Nitdoc’s IDs to make them more robust and less redundant.
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Pull-Request: #1011
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 18 Dec 2014 14:28:31 +0000 (09:28 -0500)]
Merge: GitHub api
Première PR d'une pas si longue série.
Juste histoire de montrer un aperçu du fonctionnement.
Please review only the last two commits.
Pull-Request: #1016
Reviewed-by: Jean Privat <jean@pryen.org>
Jean-Christophe Beaupré [Fri, 12 Dec 2014 19:40:38 +0000 (14:40 -0500)]
nitdoc: Avoid HTML ID collisions.
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Jean-Christophe Beaupré [Tue, 16 Dec 2014 16:13:58 +0000 (11:13 -0500)]
nitdoc: Shorten redundant IDs.
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Jean-Christophe Beaupré [Tue, 16 Dec 2014 16:12:56 +0000 (11:12 -0500)]
nitdoc: Remove the project’s name from the groups’ IDs.
A project is only a wrapper on a group.
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Jean-Christophe Beaupré [Fri, 12 Dec 2014 20:40:39 +0000 (15:40 -0500)]
nitdoc: Mangle names in IDs.
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Jean-Christophe Beaupré [Fri, 12 Dec 2014 19:07:15 +0000 (14:07 -0500)]
nitdoc: Document constraints on `nitdoc_id`.
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Jean-Christophe Beaupré [Tue, 16 Dec 2014 16:11:00 +0000 (11:11 -0500)]
nitdoc: Use a fully qualified ID for classes.
Avoid conflict when two modules define two different classes with the
same name. This also permits to support classes generated implicitly by
`neo_doxygen`.
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>