Jean Privat [Sun, 14 Dec 2014 13:44:05 +0000 (08:44 -0500)]
Merge: Fix misc warnings
For useless empty init and null comparisons
Pull-Request: #1012
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Jean Privat <jean@pryen.org>
Jean Privat [Sun, 14 Dec 2014 13:43:58 +0000 (08:43 -0500)]
Merge: nitdoc: Display the attributes
In many languages, attributes are part of the API like methods. Therefore, NitDoc should display them when needed.
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Pull-Request: #1002
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Jean Privat <jean@pryen.org>
Jean Privat [Sun, 14 Dec 2014 13:43:53 +0000 (08:43 -0500)]
Merge: Detect variance constraints
add detection of definition-site variance constraints of formal parameters in nitmetrics.
Pull-Request: #999
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Sun, 14 Dec 2014 13:43:49 +0000 (08:43 -0500)]
Merge: Fix chomp and read_lines
Implements the POLA behavior of reading lines.
I might have to wait that #932 is merged before integrating this one.
Close #974 and close #975 (see them for details)
Pull-Request: #978
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Sun, 14 Dec 2014 13:43:38 +0000 (08:43 -0500)]
Merge: New path API
As previously discussed with @privat and @R4PaSs, this is a propostion for a new file access API.
It provides new features:
* All file/path related services are to be stored in `Path` instead of `String`. The goal is to store there all the methods previously beginning with `path_` and others like `rmdir` and `files`. The calls to the new API take the form of `"/tmp/somefile.txt".to_path.delete`. You will notice that this PR do not yet move all those services but only a subset as an example, this will be completed if it is appreciated.
* Easy file opening (for read or write) with: `"/tmp/somefile.txt".to_path.open_ro.read_all`
* `Path` stores the concept of full path and filename. Calls to `/etc/somedir/".to_path.files` returns an array of `FilePath` which can be `to_s`ed to get the full path and calling `filename` returns only the file name.
* The native `stat` structure is now renamed to `NativeFileStat` and protected within a Nity finalizable `FileStat`. The new `FileStat` could be implemented differently by platform.
Pull-Request: #831
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Jean Privat [Sat, 13 Dec 2014 15:59:16 +0000 (10:59 -0500)]
Merge ... 'origin/master' to resolve conflicts with #932 (stream)
Conflicts:
lib/standard/stream.nit
lib/standard/string.nit
src/nitls.nit
tests/sav/test_exec.res
Alexis Laferrière [Sat, 13 Dec 2014 19:39:17 +0000 (14:39 -0500)]
nit: remove unused `PrimitiveNativeFile::file_stat`
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sat, 13 Dec 2014 19:35:06 +0000 (14:35 -0500)]
Merge branch 'master' into path
Jean Privat [Sat, 13 Dec 2014 07:52:03 +0000 (02:52 -0500)]
Merge: Fix useless type warnings
And some more... This time for useless type declarations.
Pull-Request: #1010
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Jean Privat [Sat, 13 Dec 2014 07:51:44 +0000 (02:51 -0500)]
Merge: Fix visibility warnings
On continue dans la série... cette fois c'est pour la disparition des derniers warnings sur la visibilité privée.
Pull-Request: #1009
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Jean Privat <jean@pryen.org>
Jean Privat [Sat, 13 Dec 2014 07:51:26 +0000 (02:51 -0500)]
Merge: lib fix warnings (ai)
Some more fixes on warnings.
This time, this is the `ai` project that ends up cleaned of all warnings!
Pull-Request: #1007
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Jean Privat [Sat, 13 Dec 2014 07:50:37 +0000 (02:50 -0500)]
Merge: Nitcorn: parameterized uris
Introduces parameterized uri handling like `/users/:id`.
## Route matching
Route can match variables expression.
~~~
class DummyAction super Action end
var action = new DummyAction
var route = new Route("/users/:id", action)
assert not route.match("/users")
assert route.match("/users/1234")
assert route.match("/users/") # empty id
~~~
Standard comportement still unchanged.
~~~
route = new Route("/users", action)
assert route.match("/users")
assert route.match("/users/1234")
assert not route.match("/issues/1234")
~~~
## Route priority
Priority depends on the order the routes where added to the `Routes` dispatcher.
~~~
var host = new VirtualHost("")
var routes = new Routes(host)
routes.add new Route("/:a/:b/:c", action)
routes.add new Route("/users/:id", action)
routes.add new Route("/:foo", action)
assert routes["/a/b/c"].path == "/:a/:b/:c"
assert routes["/a/b/c/d"].path == "/:a/:b/:c"
assert routes["/users/1234/foo"].path == "/:a/:b/:c"
assert routes["/users/"].path == "/users/:id"
assert routes["users/"].path == "/users/:id"
assert routes["/users/1234"].path == "/users/:id"
assert routes["/users"].path == "/:foo"
assert routes["/"].path == "/:foo"
assert routes[""].path == "/:foo"
~~~
## Accessing uri parameter from Action
Parameters can be accessed by parsing the uri.
~~~
route = new Route("/users/:id", action)
var params = route.parse_params("/users/1234")
assert params.has_key("id")
assert not params.has_key("foo")
assert params["id"] == "1234"
~~~
Or from the `HttpRequest`
~~~
route = new Route("/users/:id", action)
var req = new HttpRequest
req.uri_params = route.parse_params("/users/1234")
assert req.params == ["id"]
assert req.param("id") == "1234"
assert req.param("foo") == null
~~~
Note that in most cases, all this work is automatically done by the nitcorn engine.
Parameters can then be access through the `HttpRequest` given to `Action::answer`.
@xymus et @R4PaSs ça peut vous intéresser.
Pull-Request: #1006
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Sat, 13 Dec 2014 07:50:24 +0000 (02:50 -0500)]
Merge: lib/time: introduces ISODate
I will soon need this.
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Pull-Request: #1005
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Sat, 13 Dec 2014 07:50:17 +0000 (02:50 -0500)]
Merge: Raise nitc from the dead
Raise dead on `nitc`.
It's super effective...
Pull-Request: #1000
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Sat, 13 Dec 2014 07:50:08 +0000 (02:50 -0500)]
Merge: model: register the implicitly injected Bool class in its hierarchy.
The model can inject a primitive a Bool class when required.
It was a hack which was initially introduced by the interpreter that need to manipulate boolean values even if they where not present in the original program.
However, the class was not fully initialized. So fix that.
Maybe a future PR will try to remove this hack (it is not the model's job to inject classes)
Pull-Request: #989
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Sat, 13 Dec 2014 07:49:59 +0000 (02:49 -0500)]
Merge: Github API renaming and group creation
Renamed `github_api` module into `github_curl` (needed the namespace for further work)
Also created the group `github` and added `github_curl` to it.
Finally, added a small nitunit.
Pull-Request: #970
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Sat, 13 Dec 2014 07:49:52 +0000 (02:49 -0500)]
Merge: Better nitester on Turing
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Pull-Request: #910
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Jean Privat <jean@pryen.org>
Jean Privat [Sat, 13 Dec 2014 07:49:28 +0000 (02:49 -0500)]
Merge: Newstreams
Small refactoring of Streams/Files:
- Added a simple error management system
- Removed FDStreams, reified under FStream
Next PR to come: Proposition for renaming of the classes of the stream hierarchy (as requested in #466)
Pull-Request: #932
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Jean Privat <jean@pryen.org>
Alexandre Terrasa [Fri, 12 Dec 2014 02:45:09 +0000 (21:45 -0500)]
lib/nitcorn: updates README
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Fri, 12 Dec 2014 02:43:14 +0000 (21:43 -0500)]
lib/nitcorn: introduces a second action to show uri parameters usage
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Fri, 12 Dec 2014 02:42:27 +0000 (21:42 -0500)]
exemples/nitcorn: rename MyAction class by StaticAction.
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Fri, 12 Dec 2014 02:36:13 +0000 (21:36 -0500)]
lib/nitcorn: handles uri parameters in reactor
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Fri, 12 Dec 2014 02:35:44 +0000 (21:35 -0500)]
llib/nitcorn: fixes documentation warnings.
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Fri, 12 Dec 2014 02:33:24 +0000 (21:33 -0500)]
lib/nitcorn: introduces vararg_routes module
This will allow the creation of parameterized routes like `/users/:id`.
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean-Christophe Beaupré [Thu, 11 Dec 2014 18:50:05 +0000 (13:50 -0500)]
nitdoc: Display attribute types.
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Jean-Christophe Beaupré [Thu, 11 Dec 2014 16:58:58 +0000 (11:58 -0500)]
nitdoc: Add tests with attributes.
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Jean-Christophe Beaupré [Fri, 12 Dec 2014 21:29:30 +0000 (16:29 -0500)]
nitdoc: Update the manpage.
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Jean-Christophe Beaupré [Fri, 12 Dec 2014 21:29:15 +0000 (16:29 -0500)]
nitdoc: Include the attributes by default.
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Alexis Laferrière [Fri, 12 Dec 2014 20:56:35 +0000 (15:56 -0500)]
tests: blacklist longer tests from nitg-g
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Fri, 12 Dec 2014 20:20:19 +0000 (15:20 -0500)]
misc/jenkins: unitrun without --quiet do not use ' for turing
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Fri, 12 Dec 2014 16:11:05 +0000 (11:11 -0500)]
nitester-wrapper: fix set -x
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Fri, 12 Dec 2014 15:59:00 +0000 (10:59 -0500)]
nitester-wrapper: only compile nitg and nitester on the host processor
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Fri, 12 Dec 2014 15:42:21 +0000 (10:42 -0500)]
contrib/nitester: each worker us its own copy of the Nit repository
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Thu, 11 Dec 2014 19:35:32 +0000 (14:35 -0500)]
contrib/nitester: use turing skip list
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexandre Terrasa [Fri, 12 Dec 2014 20:58:31 +0000 (15:58 -0500)]
src/astprinter: fixes useless null comparison
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Fri, 12 Dec 2014 20:58:09 +0000 (15:58 -0500)]
lib/markdown: fixes useless empty init
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Fri, 12 Dec 2014 20:58:00 +0000 (15:58 -0500)]
contrib/pep8analysis: fixes useless empty init
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Fri, 12 Dec 2014 20:57:31 +0000 (15:57 -0500)]
lib/neo4j: fixes useless empty init
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Fri, 12 Dec 2014 20:57:14 +0000 (15:57 -0500)]
lib/nitcorn: fixes useless empty init
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Fri, 12 Dec 2014 20:57:03 +0000 (15:57 -0500)]
src/doc: fixes useless empty init
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Fri, 12 Dec 2014 20:41:47 +0000 (15:41 -0500)]
examples/rosettacode: fixes useless type declaration
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Fri, 12 Dec 2014 20:41:04 +0000 (15:41 -0500)]
lib/sax: fixes useless type declaration
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Fri, 12 Dec 2014 20:39:42 +0000 (15:39 -0500)]
lib/saxophonit: fixes useless type declaration
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Fri, 12 Dec 2014 20:31:04 +0000 (15:31 -0500)]
src/semantize: fixes useless private visibility
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Fri, 12 Dec 2014 20:30:48 +0000 (15:30 -0500)]
src/nitx: fixes useless private visibility
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Fri, 12 Dec 2014 20:30:38 +0000 (15:30 -0500)]
src/frontend: fixes useless private visibility
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Fri, 12 Dec 2014 20:30:27 +0000 (15:30 -0500)]
lib/xdg_basedir: fixes useless private visibility
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Fri, 12 Dec 2014 20:30:20 +0000 (15:30 -0500)]
lib/template: fixes useless private visibility
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Fri, 12 Dec 2014 20:30:07 +0000 (15:30 -0500)]
lib/linux: fixes useless private visibility
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Fri, 12 Dec 2014 20:29:56 +0000 (15:29 -0500)]
lib/html: fixes useless private visibility
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Fri, 12 Dec 2014 19:27:29 +0000 (14:27 -0500)]
lib/ai: fixes unused local variables
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Fri, 12 Dec 2014 19:27:14 +0000 (14:27 -0500)]
lib/trees: fixes old init
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Fri, 12 Dec 2014 19:27:02 +0000 (14:27 -0500)]
lib/trees: fixes documentation warnings
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Fri, 12 Dec 2014 20:19:44 +0000 (15:19 -0500)]
lib/realtime: fixes documentation warnings
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Fri, 12 Dec 2014 20:18:52 +0000 (15:18 -0500)]
lib/realtime: remove useless method Timespec::destroy
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexis Laferrière [Fri, 12 Dec 2014 19:55:35 +0000 (14:55 -0500)]
contrib/nitester: each Processor know its rank
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Fri, 12 Dec 2014 19:33:56 +0000 (14:33 -0500)]
tests: describe turing.skip in README.md
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Wed, 10 Dec 2014 19:29:00 +0000 (14:29 -0500)]
tests: add a skip list for testing on the Turing cluster
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexandre Terrasa [Fri, 12 Dec 2014 19:26:18 +0000 (14:26 -0500)]
lib/ai: fixes documentation warnings
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexis Laferrière [Thu, 11 Dec 2014 13:39:03 +0000 (08:39 -0500)]
nitester-wrapper: test if the target hash is valid
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Wed, 10 Dec 2014 20:12:09 +0000 (15:12 -0500)]
nitester-wrapper: update script to follow the config of jenkins on pratchett
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Wed, 10 Dec 2014 14:26:47 +0000 (09:26 -0500)]
tests: sqlite3 tests expecting an error is undefined as it changes per version
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Wed, 10 Dec 2014 13:20:22 +0000 (08:20 -0500)]
tests: support Java on Turing worker nodes too
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Thu, 11 Dec 2014 20:34:44 +0000 (15:34 -0500)]
lib/string: chomp do not try to chomp empty strings
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Fri, 12 Dec 2014 16:05:05 +0000 (11:05 -0500)]
man: add --detect-variance-constraints in nitmetrics.md
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 11 Dec 2014 16:47:24 +0000 (11:47 -0500)]
tests: add nitmetrics test for --detect-covar
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 11 Dec 2014 01:52:50 +0000 (20:52 -0500)]
nitmetrics: add --detect-covar
Signed-off-by: Jean Privat <jean@pryen.org>
Lucas Bajolet [Thu, 11 Dec 2014 21:52:34 +0000 (16:52 -0500)]
lib: Fixed signature for poll in PNaCl
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>
Jean Privat [Fri, 12 Dec 2014 04:06:19 +0000 (23:06 -0500)]
tests: add base_empty_module2.nit
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 12 Dec 2014 04:03:49 +0000 (23:03 -0500)]
niti: do not create `true` and `false` if Bool does not exists
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Wed, 10 Dec 2014 19:45:35 +0000 (14:45 -0500)]
model: register the implicitly injected Bool class in its hierarchy.
Signed-off-by: Jean Privat <jean@pryen.org>
Alexandre Terrasa [Fri, 12 Dec 2014 03:46:51 +0000 (22:46 -0500)]
lib/time: introduces ISODate
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Fri, 5 Dec 2014 00:21:07 +0000 (19:21 -0500)]
lib/github: add test suite for github_curl
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Fri, 5 Dec 2014 00:14:51 +0000 (19:14 -0500)]
lib: introduce github group
* rename github_api in github_curl
* move github_curl to github group
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Tue, 9 Dec 2014 16:53:07 +0000 (11:53 -0500)]
lib/github: fixes whitespaces in `github_curl`
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Fri, 12 Dec 2014 01:38:05 +0000 (20:38 -0500)]
lib/nitcorn: makes Routes::routes protected.
Also renamed it since it's now in the module API.
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Fri, 12 Dec 2014 01:36:54 +0000 (20:36 -0500)]
lib/nitcorn: fixes old inits warning
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Fri, 12 Dec 2014 01:33:28 +0000 (20:33 -0500)]
lib/nitcorn: fix a typo
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Fri, 12 Dec 2014 01:14:47 +0000 (20:14 -0500)]
Merge: nitcc: remove warnings and improve doc
Pull-Request: #998
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Fri, 12 Dec 2014 01:14:39 +0000 (20:14 -0500)]
Merge: mnit_simple: assets_and_resources give non null things.
remove 3 real warnings (not advices)
Pull-Request: #997
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Frédéric Vachon <fredvac@gmail.com>
Jean Privat [Fri, 12 Dec 2014 01:14:36 +0000 (20:14 -0500)]
Merge: nitunit: compile test-suite only once
Thanks to this PR, all the test-cases in a test-suite are compiled in one file.
Nitunit then uses an argument to select which test-case to execute.
This allows a BIG gain of performances for large test-suites.
Special thanks @privat for the idea.
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Pull-Request: #996
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Jean Privat <jean@pryen.org>
Jean Privat [Fri, 12 Dec 2014 01:14:11 +0000 (20:14 -0500)]
Merge: Lib fix warnings
Fixes some warnings in lib/
Changes
* missing documentation
* useless private declarations
* old inits
* unused local vars (@R4PaSs ;))
Ping:
@xymus: a_star, mpi, mpd, json, bucketed_game
@R4PaSs: buffered_ropes, base64, crypto
@privat: c, combinations, console, dummy_array
Pas mal sur que ça va pas passer les tests à cause des signatures de init magiques qui vont changer...
Pull-Request: #990
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Fri, 12 Dec 2014 01:13:40 +0000 (20:13 -0500)]
Merge: Objective-C FFI with basic wrapper for the Cocoa, AppKit and Foundation kits/frameworks
Notes:
* Tweaks to `tests.sh` enables testing some programs on OS X only.
* This is the foundation for more PRs.
* Most cocoa tests are UNDEFINED because they use log. I'll add more tests with simple strings in the future.
* More tests for the FFI are needed.
Pull-Request: #986
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Jean Privat [Thu, 11 Dec 2014 20:47:34 +0000 (15:47 -0500)]
nitcc: remove warnings and improve doc
Signed-off-by: Jean Privat <jean@pryen.org>
Jean-Christophe Beaupré [Thu, 11 Dec 2014 16:50:31 +0000 (11:50 -0500)]
nitdoc: Factorize filtering logic.
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Jean-Christophe Beaupré [Thu, 11 Dec 2014 16:56:21 +0000 (11:56 -0500)]
nitdoc: Add a property group for attributes.
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Jean-Christophe Beaupré [Thu, 11 Dec 2014 16:54:34 +0000 (11:54 -0500)]
nitdoc: Factorize property grouping logic.
Signed-off-by: Jean-Christophe Beaupré <jcbrinfo@users.noreply.github.com>
Jean Privat [Thu, 11 Dec 2014 03:39:22 +0000 (22:39 -0500)]
bash_completion: switch nitg and nitc
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 11 Dec 2014 03:30:08 +0000 (22:30 -0500)]
benchmarks: use nitc instead of nitg
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 11 Dec 2014 03:25:10 +0000 (22:25 -0500)]
contrib&examples: Makefiles use nitc instead of nitg
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 11 Dec 2014 03:21:54 +0000 (22:21 -0500)]
bin: add compatibility shell script for nitg
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 11 Dec 2014 02:51:40 +0000 (21:51 -0500)]
src: update mkcsrc
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 11 Dec 2014 02:49:26 +0000 (21:49 -0500)]
man: rename nitg to nitc
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 11 Dec 2014 02:44:58 +0000 (21:44 -0500)]
tests: update testing of nitc.nit
Signed-off-by: Jean Privat <jean@pryen.org>
squash-test-rename
Jean Privat [Thu, 11 Dec 2014 02:41:08 +0000 (21:41 -0500)]
tests: use binary nitc
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 11 Dec 2014 02:34:58 +0000 (21:34 -0500)]
Make: build nitc instead of nitg
Signed-off-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 11 Dec 2014 10:10:53 +0000 (05:10 -0500)]
Merge: Removes deprecated uses of `MModule::in_nesting`
Fixes #721
Waiting for jenkins to display demos...
Pull-Request: #995
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 11 Dec 2014 10:10:51 +0000 (05:10 -0500)]
Merge: nitdoc: displays full namespace in MModule::tpl_declaration.
Fixes #693
Pull-Request: #994
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Jean Privat [Thu, 11 Dec 2014 10:10:36 +0000 (05:10 -0500)]
Merge: Split nitpretty
Split the nitpretty module into lib and tool
Fixes #836
Pull-Request: #993
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Jean Privat <jean@pryen.org>
Jean Privat [Thu, 11 Dec 2014 10:10:33 +0000 (05:10 -0500)]
Merge: nitdoc: displays introduction module in property page.
Fixes #667
Les démos seront dipsonibles quand Jenkins sortira de sa stupeur:
* Démo sur stdlib: <http://gresil.org/jenkins/job/CI-nitdoc/ws/doc/stdlib/index.html>
* Démo sur nitc: <http://gresil.org/jenkins/job/CI-nitdoc/ws/doc/nitc/index.html>
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Pull-Request: #992
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>
Reviewed-by: Jean Privat <jean@pryen.org>