Alexis Laferrière [Sun, 25 Sep 2016 23:11:07 +0000 (19:11 -0400)]
benitlux: classify views in simple classes as variation points
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sun, 25 Sep 2016 23:14:24 +0000 (19:14 -0400)]
benitlux server: don't suggest current friends
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sun, 25 Sep 2016 23:13:53 +0000 (19:13 -0400)]
benitlux: make BeerView labels public attributes so they are variation points
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sun, 25 Sep 2016 23:12:33 +0000 (19:12 -0400)]
benitlux: refresh home window on receiving an invalid token error
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sun, 25 Sep 2016 23:10:18 +0000 (19:10 -0400)]
benitlux: don't endlessly recheck token if its invalid
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sun, 25 Sep 2016 23:09:07 +0000 (19:09 -0400)]
benitlux: fix size and alignment of Star & Follow Button
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sat, 24 Sep 2016 12:23:24 +0000 (08:23 -0400)]
benitlux: flatten icon text to path
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Fri, 23 Sep 2016 14:59:46 +0000 (10:59 -0400)]
benitlux: expect that native objects will be freed between log ins and outs
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Fri, 23 Sep 2016 02:59:06 +0000 (22:59 -0400)]
benitlux: disable autocorrect and autocapital.. on user name input text field
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Fri, 23 Sep 2016 02:58:36 +0000 (22:58 -0400)]
benitlux: disable star buttons when not logged in
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Fri, 23 Sep 2016 02:27:14 +0000 (22:27 -0400)]
benitlux: drop the custom ellipsizing
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Fri, 30 Dec 2016 20:27:40 +0000 (15:27 -0500)]
Merge: calculator: bug fix and small tweaks to the iOS adaptation
Fix a bug where numbers would be limited to a single digit after some operations.
Improve the look of the calculator under iOS.
Pull-Request: #2351
Jean Privat [Fri, 30 Dec 2016 20:27:32 +0000 (15:27 -0500)]
Merge: lib/graph: Fix `to_dot`
The `Graph::to_dot` function seldom produced bad dot when used on objects with special formatting in their `to_s` method.
This PR changes that by overriding the ID of a node by an Int.
There is still the concern that the new implementation might explode when used on a very large graph, there might be a better way to generate it or to escape the node's ids, but I can't find another one at the moment.
Poke @ablondin, this might interest you
Pull-Request: #2349
Reviewed-by: Alexandre Blondin Massé <alexandre.blondin.masse@gmail.com>
Jean Privat [Fri, 30 Dec 2016 20:27:19 +0000 (15:27 -0500)]
Merge: Rename the extern class `NativeString` to `CString`
`NativeString` used to be mainly implemented by the engines, but in the last few years it became gradually a normal extern class. As such, its instances are now C strings (`char *`). Most of its methods are extern and implemented in the library instead of the engines. It is also widely used by extern methods implemented in C as `char *`, the type appears 300+ times in the general lib and 67 times in `lib/core/text`.
This PR renames `NativeString` to `CString`. This change makes it clear to beginner programmers that its instances are pointers to C strings and how they are passed to C code. Plus, it fits better next to `CppString`, `JavaString` and `NSString`.
The only remaining engine not using it as a C string is the Java compiler, which implements it as a Java string. This still works and as long as it behaves like a C string there is no problem.
This PR also updates the related doc and attempts to update all indirect references to the new `CString`.
As discussed with @privat and @R4PaSs.
Pull-Request: #2347
Reviewed-by: Jean Privat <jean@pryen.org>
Alexis Laferrière [Fri, 9 Sep 2016 12:32:10 +0000 (08:32 -0400)]
calculator: improve iOS variation
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Fri, 9 Sep 2016 14:40:42 +0000 (10:40 -0400)]
calculator: update language in variations doc
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Fri, 9 Sep 2016 12:32:49 +0000 (08:32 -0400)]
calculator: rename the module `ios_calculator` to `ios`
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Wed, 14 Sep 2016 19:59:04 +0000 (15:59 -0400)]
calculator: fix numbers limited to a single digit after a clean
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Lucas Bajolet [Mon, 19 Dec 2016 20:45:13 +0000 (15:45 -0500)]
lib/graph: Fix `to_dot` that could produce invalid dot when making arcs between invalid names.
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>
Alexis Laferrière [Tue, 13 Dec 2016 03:54:46 +0000 (22:54 -0500)]
c_src: update with CString
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Thu, 8 Dec 2016 20:25:41 +0000 (15:25 -0500)]
update all indirect references to native strings
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Tue, 13 Dec 2016 04:02:45 +0000 (23:02 -0500)]
tests: update to use `CString`
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Thu, 8 Dec 2016 20:15:49 +0000 (15:15 -0500)]
core: update doc of `CString`
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Thu, 8 Dec 2016 20:12:51 +0000 (15:12 -0500)]
rename `NativeString` to `CString`
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Jean Privat [Thu, 8 Dec 2016 21:58:38 +0000 (16:58 -0500)]
Merge: lib/counter: Added pack function
Added Counter::pack to separate values by occurence into a final 2D array of values
Pull-Request: #2346
Jean Privat [Thu, 8 Dec 2016 21:58:34 +0000 (16:58 -0500)]
Merge: lib/for_abuse: Fix typos in documentation
Simple fix of a few misuses of `trough` instead of `through`
Pull-Request: #2345
Reviewed-by: Jean-Christophe Beaupré <jcbrinfo.public@gmail.com>
Jean Privat [Thu, 8 Dec 2016 21:58:32 +0000 (16:58 -0500)]
Merge: nitweb: misc fixes
Some cleaning and fixes for nitweb:
* Clean api_auth and login module
* Clean html (extract directives, add menu icons, clean markup)
* Uniformize card headers
Pull-Request: #2344
Jean Privat [Thu, 8 Dec 2016 21:58:29 +0000 (16:58 -0500)]
Merge: tests: use NIT_TESTING_ID in neo4j tests
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Pull-Request: #2343
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Jean-Christophe Beaupré <jcbrinfo.public@gmail.com>
Jean Privat [Thu, 8 Dec 2016 21:58:25 +0000 (16:58 -0500)]
Merge: nitweb: add READMEs summaries
Automatically add a summary extracted from the README / doc contents
![image](https://cloud.githubusercontent.com/assets/583144/
20892633/
fef2fd4a-badc-11e6-89f5-
5de007981914.png)
Also add anchors to the content of the README, so you can make links like:
http://nitweb.moz-code.org/doc/core#Methods-Implicitly-Defined-in-Sys
Pull-Request: #2342
Jean Privat [Thu, 8 Dec 2016 21:58:18 +0000 (16:58 -0500)]
Merge: lib/text: do not replace undecoded `%` by `?`
Change the specification of `from_percent_encoding` so undecoded `%` are not replaced by `?`.
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Pull-Request: #2337
Lucas Bajolet [Wed, 7 Dec 2016 00:07:16 +0000 (19:07 -0500)]
lib/counter: Added pack function
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>
Lucas Bajolet [Wed, 7 Dec 2016 00:00:07 +0000 (19:00 -0500)]
lib/for_abuse: Fix typos in documentation
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>
Alexandre Terrasa [Tue, 6 Dec 2016 19:56:01 +0000 (14:56 -0500)]
nitweb: fix card headers
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Tue, 6 Dec 2016 19:54:43 +0000 (14:54 -0500)]
nitweb: clean scripts import
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Mon, 28 Nov 2016 22:50:14 +0000 (17:50 -0500)]
nitweb: add some icons in menus
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Wed, 31 Aug 2016 14:42:23 +0000 (10:42 -0400)]
nitweb: extract user sidebar directive
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Wed, 31 Aug 2016 14:32:28 +0000 (10:32 -0400)]
nitweb: move github login configuration to its own module
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Mon, 5 Dec 2016 15:47:22 +0000 (10:47 -0500)]
lib/core: more tests for percent_encoding
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Mon, 28 Nov 2016 22:24:54 +0000 (17:24 -0500)]
lib/text: do not replace undecoded `%` by `?`
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Tue, 6 Dec 2016 18:36:33 +0000 (13:36 -0500)]
tests: update test for nitcatalog
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Tue, 6 Dec 2016 18:33:27 +0000 (13:33 -0500)]
tests: test_neo use NIT_TESTING_ID
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Tue, 6 Dec 2016 18:23:45 +0000 (13:23 -0500)]
tests: use NIT_TESTING_ID for postgresql tests
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Tue, 6 Dec 2016 18:23:23 +0000 (13:23 -0500)]
lib/postgres: use NIT_TESTING_ID in table names
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Tue, 6 Dec 2016 18:22:50 +0000 (13:22 -0500)]
lib/postgres: remove documentation warnings
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Tue, 6 Dec 2016 17:49:36 +0000 (12:49 -0500)]
lib/mongo: use NIT_TESTING_ID
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Mon, 5 Dec 2016 20:53:37 +0000 (15:53 -0500)]
Merge: nitweb: rewritte stars
Upgrade the feedback stars form.
More stars and more details:
![image](https://cloud.githubusercontent.com/assets/583144/
20892546/
b0155e34-badc-11e6-8f89-
726959021e5f.png)
Demo here: http://nitweb.moz-code.org/
Pull-Request: #2341
Jean Privat [Mon, 5 Dec 2016 20:53:36 +0000 (15:53 -0500)]
Merge: nitweb: misc fixes
Should fix more points from #2177
* Sort list by alphabetical order
* Remove useless links on doc location
* Remove useless code tabs when the code linearization tab exists
Demo here: http://nitweb.moz-code.org/
Pull-Request: #2340
Jean Privat [Mon, 5 Dec 2016 20:53:32 +0000 (15:53 -0500)]
Merge: proposal: lib/config
We often need basic option handling in our app.
Here a minimalist proposal that covers the basics:
* options holder
* default values
* loading options from ini file
Extract from doc:
# Configuration options for nit tools and apps
This module provides basic services for options handling in your nit programs.
## Basic configuration holder
The `Config` class can be used as a simple option holder and processor:
~~~nit
import config
# Create a new config option
var opt_my = new OptionString("My option", "--my")
# Create the config and add the option
var config = new Config
config.add_option(opt_my)
# Parse the program arguments, usually `args`
config.parse_options(["--my", "myOption", "arg1", "arg2"])
# Access the options and args
assert opt_my.value == "myOption"
assert config.args == ["arg1", "arg2"]
~~~
## Custom configuration class
Instead of using basic `Config` instances, it is better to define new sublcasses
to store options and define custom services.
~~~nit
import config
class MyConfig
super Config
var opt_my = new OptionString("My option", "--my")
init do
super
tool_description = "Usage: MyExample [OPTION]... [ARGS]..."
add_option(opt_my)
end
fun my: String do return opt_my.value or else "Default value"
end
var config = new MyConfig
config.parse_options(["--my", "myOption", "arg1", "arg2"])
assert config.my == "myOption"
assert config.args == ["arg1", "arg2"]
~~~
We define the `my` method to provide an elegant shortcut to `opt_my.value`
and define the default value if the option was not set by the user.
The `tool_description` attribute is used to set the `usage` header printed when
the user request the `help` message.
~~~nit
config.parse_options(["-h"])
if config.help then
config.usage
exit 0
end
~~~
This will display the tool usage like this:
~~~raw
Usage: MyExample [OPTION]... [ARGS]...
-h, --help Show this help message
--my My option
~~~
## Configuration with `ini` file
The `IniConfig` class provides an easy way to link your configuration to an ini
file.
~~~nit
class MyIniConfig
super IniConfig
var opt_my = new OptionString("My option", "--my")
init do
super
tool_description = "Usage: MyExample [OPTION]... [ARGS]..."
opts.add_option(opt_my)
end
fun my: String do return opt_my.value or else ini["my"] or else "Default"
end
~~~
This time, we define the `my` method to return the option value or the ini
if no option was passed. Finally, if no ini value can be found, we return the
default value.
By default, `IniConfig` looks at a `config.ini` file in the execution directory.
This can be overrided in multiple ways.
First by the app user by setting the `--config` option:
~~~nit
var config = new MyIniConfig
config.parse_options(["--config", "my_config.ini"])
assert config.config_file == "my_config.ini"
~~~
Default config file can also be changed by the library client through the
`default_config_file` attribute:
~~~nit
config = new MyIniConfig
config.default_config_file = "my_config.ini"
config.parse_options(["arg"])
assert config.config_file == "my_config.ini"
~~~
Or by the library developper in the custom config class:
~~~nit
class MyCustomIniConfig
super IniConfig
redef var default_config_file = "my_config.ini"
end
var config = new MyCustomIniConfig
config.parse_options(["arg"])
assert config.config_file == "my_config.ini"
~~~
Pull-Request: #2339
Reviewed-by: Jean Privat <jean@pryen.org>
Jean Privat [Mon, 5 Dec 2016 20:53:28 +0000 (15:53 -0500)]
Merge: nitweb: encode URIs
Closes #2164
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Pull-Request: #2338
Reviewed-by: Jean-Christophe Beaupré <jcbrinfo.public@gmail.com>
Alexandre Terrasa [Mon, 5 Dec 2016 18:36:51 +0000 (13:36 -0500)]
catalog: fix double H1 display from package page
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Mon, 5 Dec 2016 18:23:09 +0000 (13:23 -0500)]
tests: fix model_json output with alphabetical order
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Mon, 5 Dec 2016 18:01:46 +0000 (13:01 -0500)]
tests: use NIT_TESTING_ID in neo4j tests
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Mon, 5 Dec 2016 15:42:05 +0000 (10:42 -0500)]
tests: fix nitrpg tests
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Sat, 3 Dec 2016 04:15:51 +0000 (23:15 -0500)]
nitweb: migrate to config
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Sat, 3 Dec 2016 04:15:30 +0000 (23:15 -0500)]
popcorn: pop_repos use config
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Sat, 3 Dec 2016 04:14:58 +0000 (23:14 -0500)]
popcorn: pop_config use config
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Sat, 3 Dec 2016 03:45:03 +0000 (22:45 -0500)]
lib: introduce basic config classes
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Sat, 3 Dec 2016 02:10:38 +0000 (21:10 -0500)]
nitweb: add sumaries to doc pages
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Sat, 3 Dec 2016 02:10:25 +0000 (21:10 -0500)]
doc_down: render synopsis as `h1`
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Thu, 25 Aug 2016 20:36:52 +0000 (16:36 -0400)]
nitweb: remove useless links on locations
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Thu, 25 Aug 2016 20:34:28 +0000 (16:34 -0400)]
nitweb: remove useless code tabs for propdefs and classdefs
Since the code is already loaded in the linearization list
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Thu, 25 Aug 2016 20:33:11 +0000 (16:33 -0400)]
nitweb: sort mentities list by name
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Thu, 25 Aug 2016 20:20:04 +0000 (16:20 -0400)]
nitweb: clean defs list rendering
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Mon, 28 Nov 2016 21:49:28 +0000 (16:49 -0500)]
nitweb: show grade overview in specific page
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Thu, 4 Aug 2016 18:48:52 +0000 (14:48 -0400)]
nitweb: show grades in user page
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Thu, 4 Aug 2016 18:48:03 +0000 (14:48 -0400)]
nitweb: rewrite stars display
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Sun, 14 Aug 2016 21:46:13 +0000 (17:46 -0400)]
nitweb: rewrite ratings to allow dimensions (like code, feature, examples...)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Thu, 18 Aug 2016 02:08:30 +0000 (22:08 -0400)]
nitweb: avoid linearization errors
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Mon, 5 Dec 2016 15:54:12 +0000 (10:54 -0500)]
nitweb: encode URIs
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Sat, 3 Dec 2016 13:11:30 +0000 (08:11 -0500)]
Merge: Fix model_json and nitweb
Was broken since #2312
* Migrate `model_json` to new serialization API
* Add tests to `model_json` to ensure this doesn't happen anymore
* Migrate `web` package and `nitweb` to new API
@xymus a lot of serialization for you. Note: for each entity, I needed two deserialization version `full` and no full. Wasn't sure on how to handle this concern properly with your API
Pull-Request: #2327
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexandre Terrasa [Fri, 4 Nov 2016 00:39:07 +0000 (20:39 -0400)]
nitweb: migrate to new json serialization API
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Wed, 23 Nov 2016 21:32:08 +0000 (16:32 -0500)]
model: add nitunit for model_json
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Thu, 3 Nov 2016 23:02:23 +0000 (19:02 -0400)]
model: migrate model_json to new serialization API
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Fri, 18 Nov 2016 18:35:54 +0000 (13:35 -0500)]
opts: fix weird indent
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Fri, 2 Dec 2016 15:13:46 +0000 (10:13 -0500)]
Merge: mongo: More queries
* Fix query prefixes
* Add Array related queries
Pull-Request: #2336
Jean Privat [Fri, 2 Dec 2016 15:13:45 +0000 (10:13 -0500)]
Merge: nitweb: /random apply limit after random
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Pull-Request: #2335
Jean Privat [Fri, 2 Dec 2016 15:13:43 +0000 (10:13 -0500)]
Merge: src/model: collect package modules
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Pull-Request: #2334
Jean Privat [Fri, 2 Dec 2016 15:13:42 +0000 (10:13 -0500)]
Merge: lib/github: load more user data
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Pull-Request: #2333
Jean Privat [Fri, 2 Dec 2016 15:13:40 +0000 (10:13 -0500)]
Merge: lib/math: fix some nitunits
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Pull-Request: #2332
Jean Privat [Fri, 2 Dec 2016 15:13:38 +0000 (10:13 -0500)]
Merge: nitunit: set NIT_TESTING_PATH
When working with test suites, one can now use `NIT_TESTING_PATH` to retrieve the test suite path.
It can be used to access files based on the current test suite location:
~~~nit
class MyTest
super TestSuite
fun test_suite_path do
assert "NIT_TESTING_PATH".environ.basename == "my_test_suite.nit"
end
end
~~~
Useful for test suites based on model loading like in #2327.
Pull-Request: #2331
Alexandre Terrasa [Mon, 28 Nov 2016 22:30:42 +0000 (17:30 -0500)]
mongo: add array related queries
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Mon, 28 Nov 2016 22:30:19 +0000 (17:30 -0500)]
mongo: fix query prefixes
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Wed, 31 Aug 2016 14:27:05 +0000 (10:27 -0400)]
nitweb: /random apply limit after random
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Wed, 31 Aug 2016 14:26:29 +0000 (10:26 -0400)]
src/model: collect package modules
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Mon, 28 Nov 2016 22:10:43 +0000 (17:10 -0500)]
lib/github: load more user data
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Wed, 31 Aug 2016 14:03:24 +0000 (10:03 -0400)]
lib/math: fix some nitunits
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Mon, 28 Nov 2016 21:11:59 +0000 (16:11 -0500)]
man: document `NIT_TESTING_PATH`
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Mon, 28 Nov 2016 21:11:38 +0000 (16:11 -0500)]
tests: test nitunit `NIT_TESTING_PATH`
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Mon, 28 Nov 2016 21:11:16 +0000 (16:11 -0500)]
nitunit: set NIT_TESTING_PATH before running a test suite
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Mon, 28 Nov 2016 21:10:47 +0000 (16:10 -0500)]
nitunit: remove warnings from testing_suite (and uniformize the style)
Haters gonna hate.
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Mon, 28 Nov 2016 21:09:55 +0000 (16:09 -0500)]
nitunit: toolcontext set `NIT_TESTING_PATH`
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Alexandre Terrasa [Mon, 28 Nov 2016 21:09:15 +0000 (16:09 -0500)]
nitunit: remove warnings from testing_base
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
Jean Privat [Thu, 24 Nov 2016 19:21:56 +0000 (14:21 -0500)]
Merge: Updates some tests and the tests.sh script for compatibility with Windows
This is part of the ongoing effort to make Nit work under Windows using msys2 / mingw64, this time we look at tests and support tools.
* Tweak tests.sh to work correctly on Windows: diff ignore CR, don't use -s on hostname from coreutils and don't use the $tmp variable as it overwrites an environment variable.
* Make the very badly named test a bit less bad so its path is valid on Windows.
* Fix the pkg-config annotation behavior on multiple arguments and fix its broken tests. (This is not directly related to Windows support, but valid tests will help to debug.)
* As a bonus, fix the repeated typo *boostrap*.
Pull-Request: #2330
Reviewed-by: Jean-Christophe Beaupré <jcbrinfo.public@gmail.com>
Reviewed-by: Romain Chanoir <romain.chanoir@viacesi.fr>
Alexis Laferrière [Sat, 19 Nov 2016 18:31:39 +0000 (13:31 -0500)]
src: fix the scary typo boostrap
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Thu, 17 Nov 2016 14:22:25 +0000 (09:22 -0500)]
tests: fix test_annot_pkgconfig.nit so it actually works
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sat, 19 Nov 2016 00:26:36 +0000 (19:26 -0500)]
pkgconfig annot: try all args before giving up
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Thu, 17 Nov 2016 10:34:47 +0000 (05:34 -0500)]
tests.sh: don't use -s on coreutils hostname
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Thu, 17 Nov 2016 10:19:48 +0000 (05:19 -0500)]
tests.sh: rename $tmp to avoid conflict with the $tmp env var
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Tue, 16 Aug 2016 15:22:02 +0000 (11:22 -0400)]
tests.sh: ignore end of line characters
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Alexis Laferrière [Sat, 19 Nov 2016 00:35:46 +0000 (19:35 -0500)]
tests: make the very bad name test compatible with windows
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>