nit.git
9 years agostring: fix init warnings
Alexandre Terrasa [Wed, 19 Nov 2014 03:54:32 +0000 (22:54 -0500)]
string: fix init warnings

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agomath: add some nitunits
Alexandre Terrasa [Wed, 19 Nov 2014 03:36:43 +0000 (22:36 -0500)]
math: add some nitunits

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agomath: fix missing documentation warnings
Alexandre Terrasa [Wed, 19 Nov 2014 03:33:38 +0000 (22:33 -0500)]
math: fix missing documentation warnings

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agocollection: fix missing documentation warnings
Alexandre Terrasa [Wed, 19 Nov 2014 02:37:55 +0000 (21:37 -0500)]
collection: fix missing documentation warnings

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agohas_collection: fix useless private visibility warnings
Alexandre Terrasa [Wed, 19 Nov 2014 02:36:02 +0000 (21:36 -0500)]
has_collection: fix useless private visibility warnings

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agohash_collection: fix missing documentation warnings
Alexandre Terrasa [Wed, 19 Nov 2014 02:35:48 +0000 (21:35 -0500)]
hash_collection: fix missing documentation warnings

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agoarray: fix missing documentation warnings
Alexandre Terrasa [Wed, 19 Nov 2014 02:33:46 +0000 (21:33 -0500)]
array: fix missing documentation warnings

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agoarray: fix useless private visibility warnings
Alexandre Terrasa [Wed, 19 Nov 2014 02:31:29 +0000 (21:31 -0500)]
array: fix useless private visibility warnings

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agolist: fix missing documentation warnings
Alexandre Terrasa [Wed, 19 Nov 2014 02:28:39 +0000 (21:28 -0500)]
list: fix missing documentation warnings

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agorange: fix the behavior of `length` on empty ranges
Alexandre Terrasa [Wed, 19 Nov 2014 02:26:11 +0000 (21:26 -0500)]
range: fix the behavior of `length` on empty ranges

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agoneo_doxygen: Register tests.
Jean-Christophe Beaupré [Mon, 24 Nov 2014 14:39:24 +0000 (09:39 -0500)]
neo_doxygen: Register tests.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

9 years agoneo_doxygen: Add some integration tests.
Jean-Christophe Beaupré [Tue, 25 Nov 2014 18:19:55 +0000 (13:19 -0500)]
neo_doxygen: Add some integration tests.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

9 years agolib/android: intro the `toast` module
Alexis Laferrière [Thu, 17 Jul 2014 14:51:12 +0000 (10:51 -0400)]
lib/android: intro the `toast` module

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agoneo_doxygen: Add some unit tests.
Jean-Christophe Beaupré [Mon, 24 Nov 2014 14:37:54 +0000 (09:37 -0500)]
neo_doxygen: Add some unit tests.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

9 years agoneo_doxygen: Add generated test data.
Jean-Christophe Beaupré [Mon, 24 Nov 2014 14:35:28 +0000 (09:35 -0500)]
neo_doxygen: Add generated test data.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

9 years agoneo_doxygen: Add dummy projects.
Jean-Christophe Beaupré [Mon, 24 Nov 2014 19:58:21 +0000 (14:58 -0500)]
neo_doxygen: Add dummy projects.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

9 years agoneo_doxygen: Add scripts to generate test data.
Jean-Christophe Beaupré [Mon, 24 Nov 2014 19:28:30 +0000 (14:28 -0500)]
neo_doxygen: Add scripts to generate test data.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

9 years agoneo_doxygen: Add a “README” for `sh-lib`.
Jean-Christophe Beaupré [Mon, 24 Nov 2014 14:54:42 +0000 (09:54 -0500)]
neo_doxygen: Add a “README” for `sh-lib`.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

9 years agoneo_doxygen: Add a “README”.
Jean-Christophe Beaupré [Mon, 24 Nov 2014 19:22:18 +0000 (14:22 -0500)]
neo_doxygen: Add a “README”.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

9 years agoneo_doxygen: Document the actual logic for relationships between compounds.
Jean-Christophe Beaupré [Mon, 24 Nov 2014 19:27:12 +0000 (14:27 -0500)]
neo_doxygen: Document the actual logic for relationships between compounds.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

9 years agoneo_doxygen: Trim whitespace and empty descriptions.
Jean-Christophe Beaupré [Mon, 24 Nov 2014 14:22:19 +0000 (09:22 -0500)]
neo_doxygen: Trim whitespace and empty descriptions.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

9 years agoneo_doxygen: Force the standard output to flush.
Jean-Christophe Beaupré [Mon, 24 Nov 2014 01:41:37 +0000 (20:41 -0500)]
neo_doxygen: Force the standard output to flush.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

9 years agopthreads: delete `NativePthread::attr` as it is not portable and unused
Alexis Laferrière [Tue, 25 Nov 2014 16:57:30 +0000 (11:57 -0500)]
pthreads: delete `NativePthread::attr` as it is not portable and unused

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agopthreads: fix `NativePthread::equal`
Alexis Laferrière [Tue, 25 Nov 2014 16:54:42 +0000 (11:54 -0500)]
pthreads: fix `NativePthread::equal`

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agopthreads: use pkgconfig to locate gc.h
Alexis Laferrière [Tue, 25 Nov 2014 16:51:51 +0000 (11:51 -0500)]
pthreads: use pkgconfig to locate gc.h

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agoneo_doxygen: Isolate Neo4j’s services.
Jean-Christophe Beaupré [Tue, 25 Nov 2014 16:51:11 +0000 (11:51 -0500)]
neo_doxygen: Isolate Neo4j’s services.

This will permit to test the program without requiring a Neo4j server.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

9 years agoMerge: git: ignore nitunit.xml files
Jean Privat [Tue, 25 Nov 2014 04:05:36 +0000 (23:05 -0500)]
Merge: git: ignore nitunit.xml files

These nasty files start swarming all over my Nit folder...

Ignore!

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

Pull-Request: #929
Reviewed-by: Jean Privat <jean@pryen.org>

9 years agoMerge: Nitiwiki: a quick wiki builder based on markdown files
Jean Privat [Tue, 25 Nov 2014 01:05:56 +0000 (20:05 -0500)]
Merge: Nitiwiki: a quick wiki builder based on markdown files

Introduces `nitiwiki` a contrib tool that generate an html wiki structure based on markdown files.
Behavior is very similar to ikiwiki (but simplified).

Features:

* automatic wiki structure from folders hierarchy
* automatic site menu
* automatic sitemap
* automatic summaries
* easy and rapid templating
* customizable section templates and menus
* rsync synchronization
* git synchronization

See http://moz-code.org/nitiwiki/ for online documentation. This is actually the `README.md` file rendered by nitiwiki. The full wiki can be found in `contrib/examples/nitiwiki`

Another example can be found at http://moz-code.org/uqam/. This is my TA site, entirely based on nitiwiki.

Pull-Request: #765
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>

9 years agoMerge: Markdown Extended
Jean Privat [Tue, 25 Nov 2014 01:04:59 +0000 (20:04 -0500)]
Merge: Markdown Extended

Added extrended mode to the markdown parser.

Features:
* fences and meta
* super span
* strike span

Pull-Request: #784
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agoMerge: SELF type
Jean Privat [Tue, 25 Nov 2014 01:04:13 +0000 (20:04 -0500)]
Merge: SELF type

If Object defines a virtual type SELF, redefines it automatically in all subclasses. Also checks for some conditions on the declaration of SELF: it must be public, it must not be fixed and it must be declared on Object (or not declared at all). These conditions ensures that its refinements are valid.

The error messages when trying to redefining SELF could be improved. Maybe adding a special case preventing any redef of SELF?

Pull-Request: #902
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Etienne M. Gagnon <egagnon@j-meg.com>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agoMerge: Prepare for the android UI module
Jean Privat [Tue, 25 Nov 2014 01:02:21 +0000 (20:02 -0500)]
Merge: Prepare for the android UI module

* Not all pthreads features are supported on Android, thus the changes.
* Changing the `data_store` signature is enough to support nulls because the APIs of both underlying implementations already supported them.
* Declaring the lines for <activity> in the modules allows for non-fullscreen and non-orientation-locked apps!

Pull-Request: #927
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Jean Privat <jean@pryen.org>

9 years agosrc: rename old `markdown` module in `docdown` to avoid merge conflicts
Alexandre Terrasa [Mon, 24 Nov 2014 22:25:02 +0000 (17:25 -0500)]
src: rename old `markdown` module in `docdown` to avoid merge conflicts

The old markdown module will disappear in a further PR.

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agonitiwiki: add nitiwiki to listfull.sh
Alexandre Terrasa [Mon, 24 Nov 2014 17:01:33 +0000 (12:01 -0500)]
nitiwiki: add nitiwiki to listfull.sh

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agonitiwiki: add out/ directories to gitignore list
Alexandre Terrasa [Mon, 24 Nov 2014 16:31:29 +0000 (11:31 -0500)]
nitiwiki: add out/ directories to gitignore list

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agonitiwiki: add nitiwiki help page as example
Alexandre Terrasa [Tue, 23 Sep 2014 02:26:41 +0000 (22:26 -0400)]
nitiwiki: add nitiwiki help page as example

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agonitiwiki: added default skeletton
Alexandre Terrasa [Tue, 23 Sep 2014 02:15:04 +0000 (22:15 -0400)]
nitiwiki: added default skeletton

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agonitiwiki: add Makefile
Alexandre Terrasa [Tue, 23 Sep 2014 00:13:54 +0000 (20:13 -0400)]
nitiwiki: add Makefile

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agonitiwiki: add README
Alexandre Terrasa [Tue, 23 Sep 2014 00:13:45 +0000 (20:13 -0400)]
nitiwiki: add README

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agonitiwiki: nitiwiki is now tested by nit/tests/tests.sh
Alexandre Terrasa [Tue, 23 Sep 2014 00:13:38 +0000 (20:13 -0400)]
nitiwiki: nitiwiki is now tested by nit/tests/tests.sh

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agonitiwiki: add custom tests
Alexandre Terrasa [Tue, 23 Sep 2014 00:13:02 +0000 (20:13 -0400)]
nitiwiki: add custom tests

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agonitiwiki: add a test wiki for basic testing
Alexandre Terrasa [Tue, 23 Sep 2014 00:12:43 +0000 (20:12 -0400)]
nitiwiki: add a test wiki for basic testing

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agoneo4j: Accept URLs ending with a slash.
Jean-Christophe Beaupré [Mon, 24 Nov 2014 18:38:00 +0000 (13:38 -0500)]
neo4j: Accept URLs ending with a slash.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

9 years agoneo4j: Avoid injections.
Jean-Christophe Beaupré [Mon, 24 Nov 2014 21:58:18 +0000 (16:58 -0500)]
neo4j: Avoid injections.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

9 years agonitiwiki: add the main executable
Alexandre Terrasa [Tue, 23 Sep 2014 00:11:00 +0000 (20:11 -0400)]
nitiwiki: add the main executable

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agonitiwiki: implements html generation.
Alexandre Terrasa [Tue, 23 Sep 2014 00:10:41 +0000 (20:10 -0400)]
nitiwiki: implements html generation.

nitiwiki can now render wiki in html

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agocontrib: Introduce nitiwiki
Alexandre Terrasa [Tue, 23 Sep 2014 00:10:07 +0000 (20:10 -0400)]
contrib: Introduce nitiwiki

INtroduce nitiwiki base concepts.

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agogit: ignore nitunit.xml files
Alexandre Terrasa [Mon, 24 Nov 2014 18:32:38 +0000 (13:32 -0500)]
git: ignore nitunit.xml files

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agomarkdown: set extended mode as default
Alexandre Terrasa [Mon, 24 Nov 2014 16:22:03 +0000 (11:22 -0500)]
markdown: set extended mode as default

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agotests: update line numbers in sav file of `error_class_glob`
Alexis Laferrière [Mon, 24 Nov 2014 15:59:10 +0000 (10:59 -0500)]
tests: update line numbers in sav file of `error_class_glob`

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agoneo_doxygen: Make `ProjectGraph.put_edges` overwriting the old edges.
Jean-Christophe Beaupré [Mon, 17 Nov 2014 22:13:04 +0000 (17:13 -0500)]
neo_doxygen: Make `ProjectGraph.put_edges` overwriting the old edges.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

9 years agoneo_doxygen: Use the constants in the `Makefile`.
Jean-Christophe Beaupré [Thu, 20 Nov 2014 18:20:12 +0000 (13:20 -0500)]
neo_doxygen: Use the constants in the `Makefile`.

`NITG` and `NITG_FLAGS` was unused.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

9 years agoneo_doxygen: Remove dead code from `gen-all.sh`.
Jean-Christophe Beaupré [Wed, 19 Nov 2014 20:06:29 +0000 (15:06 -0500)]
neo_doxygen: Remove dead code from `gen-all.sh`.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

9 years agoneo_doxygen: Remove an old TODO.
Jean-Christophe Beaupré [Wed, 19 Nov 2014 20:17:44 +0000 (15:17 -0500)]
neo_doxygen: Remove an old TODO.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

9 years agoneo_doxygen: Sort options alphabetically.
Jean-Christophe Beaupré [Wed, 19 Nov 2014 20:32:19 +0000 (15:32 -0500)]
neo_doxygen: Sort options alphabetically.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

9 years agoneo_doxygen: Remove unreliable terminal-related features.
Jean-Christophe Beaupré [Wed, 19 Nov 2014 20:28:52 +0000 (15:28 -0500)]
neo_doxygen: Remove unreliable terminal-related features.

Only use Restore Cursor Position when it is unlikely that the screen scrolls
down.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

9 years agoneo_doxygen: Do not override the `abstract` attribute to `false`.
Jean-Christophe Beaupré [Mon, 24 Nov 2014 14:24:14 +0000 (09:24 -0500)]
neo_doxygen: Do not override the `abstract` attribute to `false`.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

9 years agosaxophonit: Add a test for mixed content.
Jean-Christophe Beaupré [Mon, 24 Nov 2014 14:39:55 +0000 (09:39 -0500)]
saxophonit: Add a test for mixed content.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

9 years agopthreads: do not include `gc.h` on Android
Alexis Laferrière [Sat, 22 Nov 2014 02:37:56 +0000 (21:37 -0500)]
pthreads: do not include `gc.h` on Android

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agopthreads: move `NativePthreadBarrier` to `pthreads::extra`
Alexis Laferrière [Sat, 22 Nov 2014 02:33:22 +0000 (21:33 -0500)]
pthreads: move `NativePthreadBarrier` to `pthreads::extra`

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agopthreads: reimplement `Barrier` to be more portable
Alexis Laferrière [Sat, 22 Nov 2014 02:32:33 +0000 (21:32 -0500)]
pthreads: reimplement `Barrier` to be more portable

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agopthreads: move `cancel` related services to a new `extra` module
Alexis Laferrière [Sat, 22 Nov 2014 02:31:14 +0000 (21:31 -0500)]
pthreads: move `cancel` related services to a new `extra` module

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agolib/data_store: allow storing null
Alexis Laferrière [Tue, 30 Sep 2014 19:23:45 +0000 (15:23 -0400)]
lib/data_store: allow storing null

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agonitg&mnit_android: move mnit specific activity attributes to mnit modules
Alexis Laferrière [Sat, 22 Nov 2014 01:48:12 +0000 (20:48 -0500)]
nitg&mnit_android: move mnit specific activity attributes to mnit modules

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agonitg&android: add the android_manifest_activity annotation
Alexis Laferrière [Sat, 22 Nov 2014 01:47:09 +0000 (20:47 -0500)]
nitg&android: add the android_manifest_activity annotation

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agoandroid: add missing annotation "android_manifest_application"
Alexis Laferrière [Sat, 9 Aug 2014 21:12:51 +0000 (17:12 -0400)]
android: add missing annotation "android_manifest_application"

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agoandroid: fix name of extern lib in manifest
Alexis Laferrière [Thu, 7 Aug 2014 11:47:30 +0000 (07:47 -0400)]
android: fix name of extern lib in manifest

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agoandroid: fix use extra_java_files from all modules
Alexis Laferrière [Thu, 11 Sep 2014 01:52:46 +0000 (21:52 -0400)]
android: fix use extra_java_files from all modules

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agoMerge: lib/standard/math: Added round method to floats
Jean Privat [Fri, 21 Nov 2014 02:25:20 +0000 (21:25 -0500)]
Merge: lib/standard/math: Added round method to floats

Yes, I know, it can be done right now using a simple trick like `1.34.to_i.to_f`, but it seems counter-intuitive to me, why not have a round method in Float (besides, it should be a bit faster) ?

I leave it to you, is it worth it to add this to standard ?

If it is, well +1 and let's merge this :)

Pull-Request: #924
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agoMerge: lib: add Float::is_approx to compare floats
Jean Privat [Fri, 21 Nov 2014 02:25:15 +0000 (21:25 -0500)]
Merge: lib: add Float::is_approx to compare floats

Pull-Request: #922
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agolib/standard/math: Added round method to floats
Lucas Bajolet [Thu, 20 Nov 2014 19:53:12 +0000 (14:53 -0500)]
lib/standard/math: Added round method to floats

Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>

9 years agotests: fix expected output of `base_gen_reassign` with nitg-e
Alexis Laferrière [Thu, 20 Nov 2014 18:05:47 +0000 (13:05 -0500)]
tests: fix expected output of `base_gen_reassign` with nitg-e

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agotests: update because changes in kernel
Jean Privat [Thu, 20 Nov 2014 14:05:59 +0000 (09:05 -0500)]
tests: update because changes in kernel

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agolib: add Float::is_approx to compare floats
Jean Privat [Thu, 20 Nov 2014 14:02:44 +0000 (09:02 -0500)]
lib: add Float::is_approx to compare floats

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agolib/markdown: add fence meta delcaration to ext mode.
Alexandre Terrasa [Thu, 25 Sep 2014 03:17:29 +0000 (23:17 -0400)]
lib/markdown: add fence meta delcaration to ext mode.

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agolib/markdown: add strike markup to extended mode.
Alexandre Terrasa [Thu, 20 Nov 2014 03:15:15 +0000 (22:15 -0500)]
lib/markdown: add strike markup to extended mode.

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agolib/markdown: introduce extended mode
Alexandre Terrasa [Thu, 20 Nov 2014 02:41:11 +0000 (21:41 -0500)]
lib/markdown: introduce extended mode

Allow to distinguish standard markdown features from extended one.

Already moved some features from standard to extended mode like:

* end paragraph block with list or code blocks
* underscore in the middle of words are ignored
* fences are recognized

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agolib/markdown: suppress super notation with `^`.
Alexandre Terrasa [Thu, 20 Nov 2014 02:55:26 +0000 (21:55 -0500)]
lib/markdown: suppress super notation with `^`.

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agorange: add some nitunit and examples
Alexandre Terrasa [Thu, 20 Nov 2014 02:20:26 +0000 (21:20 -0500)]
range: add some nitunit and examples

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agorange: fix Range::init documentation
Alexandre Terrasa [Thu, 20 Nov 2014 02:19:56 +0000 (21:19 -0500)]
range: fix Range::init documentation

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agorange: fix init warnings
Alexandre Terrasa [Thu, 20 Nov 2014 02:19:24 +0000 (21:19 -0500)]
range: fix init warnings

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agoMerge: lib: some cleanup in *Capable and HashCollections
Jean Privat [Wed, 19 Nov 2014 15:37:25 +0000 (10:37 -0500)]
Merge: lib: some cleanup in *Capable and HashCollections

Remove ArrayCapable, StringCapable and use virtual type instead of generics for HashCollection::N

Pull-Request: #919
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>

9 years agoMerge: nitdoc: Do not overwrite search results.
Jean Privat [Wed, 19 Nov 2014 15:37:21 +0000 (10:37 -0500)]
Merge: nitdoc: Do not overwrite search results.

Fix the main problem of #882 by avoiding the overwriting of a search
entry when 2 entities has the same name.

TODO: Make the presentation of duplicates less ambiguous.

Note: This PR concerns only the last commit. Others come from PR #907.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

Pull-Request: #911
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agoMerge: Markdown clean
Jean Privat [Wed, 19 Nov 2014 15:37:17 +0000 (10:37 -0500)]
Merge: Markdown clean

Some cleaning for the markdown library.

The moved method `token_at` will be used in a further PR.

Pull-Request: #920
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>

9 years agoMerge: lib/counter: add some docunits
Jean Privat [Wed, 19 Nov 2014 15:37:15 +0000 (10:37 -0500)]
Merge: lib/counter: add some docunits

Pull-Request: #918
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agorange: fix useless private visibility warnings
Alexandre Terrasa [Wed, 19 Nov 2014 02:22:42 +0000 (21:22 -0500)]
range: fix useless private visibility warnings

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agoabstract_collection: fix missing documentation warning
Alexandre Terrasa [Wed, 19 Nov 2014 02:01:05 +0000 (21:01 -0500)]
abstract_collection: fix missing documentation warning

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agoabstract_collection: fix useless private visibility warnings
Alexandre Terrasa [Wed, 19 Nov 2014 02:00:32 +0000 (21:00 -0500)]
abstract_collection: fix useless private visibility warnings

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agokernel: fix missing documentation warning
Alexandre Terrasa [Wed, 19 Nov 2014 04:51:33 +0000 (23:51 -0500)]
kernel: fix missing documentation warning

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agotests: update sav because line changes in std/array.nit
Jean Privat [Wed, 19 Nov 2014 02:08:50 +0000 (21:08 -0500)]
tests: update sav because line changes in std/array.nit

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agocompiler: resolve types when doing new NativeArray
Jean Privat [Wed, 19 Nov 2014 02:08:03 +0000 (21:08 -0500)]
compiler: resolve types when doing new NativeArray

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agoexamples/rosettacode: update ab to not crash on tests
Jean Privat [Wed, 19 Nov 2014 02:05:21 +0000 (21:05 -0500)]
examples/rosettacode: update ab to not crash on tests

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agolib/hash: HashCollection::N become a virtual type
Jean Privat [Tue, 18 Nov 2014 21:24:22 +0000 (16:24 -0500)]
lib/hash: HashCollection::N become a virtual type

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agomarkdown: clean some warnings
Alexandre Terrasa [Wed, 19 Nov 2014 01:44:57 +0000 (20:44 -0500)]
markdown: clean some warnings

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agomarkdown: move token detection from `Text` to `MarkdownProcessor`
Alexandre Terrasa [Wed, 19 Nov 2014 01:40:30 +0000 (20:40 -0500)]
markdown: move token detection from `Text` to `MarkdownProcessor`

Makes it easier to redef the standard behavior by subclassing the processor.

Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agolib: remove class StringCapable
Jean Privat [Tue, 18 Nov 2014 18:37:19 +0000 (13:37 -0500)]
lib: remove class StringCapable

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agolib: kill the class ArrayCapable
Jean Privat [Tue, 18 Nov 2014 17:10:31 +0000 (12:10 -0500)]
lib: kill the class ArrayCapable

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agolib/counter: add some docunits
Jean Privat [Tue, 18 Nov 2014 14:09:55 +0000 (09:09 -0500)]
lib/counter: add some docunits

Signed-off-by: Jean Privat <jean@pryen.org>

9 years agoMerge: json: Refactor the APIs
Jean Privat [Mon, 17 Nov 2014 22:55:57 +0000 (17:55 -0500)]
Merge: json: Refactor the APIs

Refactor the `json` library taking feedback of @privat, @Morriar and @xymus into account. Also, correct some bugs related to JSON encoding/decoding and remove ad hoc escaping routines.

TODO: Support Unicode escaping.

Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>

Pull-Request: #907
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>

9 years agoMerge: Srand by default
Jean Privat [Mon, 17 Nov 2014 22:55:32 +0000 (17:55 -0500)]
Merge: Srand by default

Some people found that it is not KISS nor POLA to have `rand` that is not random by default.

So let's just call `srand` during the init of Sys.

Pull-Request: #916
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>

9 years agoMerge: Misc fixes and improvements from WBTW
Jean Privat [Mon, 17 Nov 2014 22:55:29 +0000 (17:55 -0500)]
Merge: Misc fixes and improvements from WBTW

Pull-Request: #915
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>