Merge pull request #36 from StephaneBour/master

fix path option for wn:ressources
This commit is contained in:
Amine Ben hammou 2017-05-08 02:15:09 +02:00 committed by GitHub
commit 874e793594
5 changed files with 59 additions and 50 deletions

92
composer.lock generated
View File

@ -123,16 +123,16 @@
},
{
"name": "illuminate/console",
"version": "v5.4.0",
"version": "v5.4.19",
"source": {
"type": "git",
"url": "https://github.com/illuminate/console.git",
"reference": "7b4bbbcf4b45e009fc6b8af2a100ca35ee01ca94"
"reference": "8ea19d470cdc0d6ab88269b1841dfd234cf308b8"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/illuminate/console/zipball/7b4bbbcf4b45e009fc6b8af2a100ca35ee01ca94",
"reference": "7b4bbbcf4b45e009fc6b8af2a100ca35ee01ca94",
"url": "https://api.github.com/repos/illuminate/console/zipball/8ea19d470cdc0d6ab88269b1841dfd234cf308b8",
"reference": "8ea19d470cdc0d6ab88269b1841dfd234cf308b8",
"shasum": ""
},
"require": {
@ -170,20 +170,20 @@
],
"description": "The Illuminate Console package.",
"homepage": "https://laravel.com",
"time": "2017-01-19T18:42:00+00:00"
"time": "2017-03-23T15:59:01+00:00"
},
{
"name": "illuminate/contracts",
"version": "v5.4.0",
"version": "v5.4.19",
"source": {
"type": "git",
"url": "https://github.com/illuminate/contracts.git",
"reference": "4ec919d294aca396d172e644b243b49885cd2cc7"
"reference": "ab2825726bee46a67c8cc66789852189dbef74a9"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/illuminate/contracts/zipball/4ec919d294aca396d172e644b243b49885cd2cc7",
"reference": "4ec919d294aca396d172e644b243b49885cd2cc7",
"url": "https://api.github.com/repos/illuminate/contracts/zipball/ab2825726bee46a67c8cc66789852189dbef74a9",
"reference": "ab2825726bee46a67c8cc66789852189dbef74a9",
"shasum": ""
},
"require": {
@ -212,20 +212,20 @@
],
"description": "The Illuminate Contracts package.",
"homepage": "https://laravel.com",
"time": "2017-01-18T20:23:54+00:00"
"time": "2017-03-29T13:17:47+00:00"
},
{
"name": "illuminate/filesystem",
"version": "v5.4.0",
"version": "v5.4.19",
"source": {
"type": "git",
"url": "https://github.com/illuminate/filesystem.git",
"reference": "9e74fd5bef124640852da3ec71ec6365408de417"
"reference": "7f656e3421b94d759627e891567380b50586f045"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/illuminate/filesystem/zipball/9e74fd5bef124640852da3ec71ec6365408de417",
"reference": "9e74fd5bef124640852da3ec71ec6365408de417",
"url": "https://api.github.com/repos/illuminate/filesystem/zipball/7f656e3421b94d759627e891567380b50586f045",
"reference": "7f656e3421b94d759627e891567380b50586f045",
"shasum": ""
},
"require": {
@ -262,20 +262,20 @@
],
"description": "The Illuminate Filesystem package.",
"homepage": "https://laravel.com",
"time": "2017-01-03T14:19:43+00:00"
"time": "2017-04-07T19:38:05+00:00"
},
{
"name": "illuminate/support",
"version": "v5.4.0",
"version": "v5.4.19",
"source": {
"type": "git",
"url": "https://github.com/illuminate/support.git",
"reference": "7abd69eb3f83004664ab40f8e9c6914935c30752"
"reference": "b8cb37e15331c59da51c8ee5838038baa22d7955"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/illuminate/support/zipball/7abd69eb3f83004664ab40f8e9c6914935c30752",
"reference": "7abd69eb3f83004664ab40f8e9c6914935c30752",
"url": "https://api.github.com/repos/illuminate/support/zipball/b8cb37e15331c59da51c8ee5838038baa22d7955",
"reference": "b8cb37e15331c59da51c8ee5838038baa22d7955",
"shasum": ""
},
"require": {
@ -319,7 +319,7 @@
],
"description": "The Illuminate Support package.",
"homepage": "https://laravel.com",
"time": "2017-01-24T13:12:44+00:00"
"time": "2017-04-09T14:34:57+00:00"
},
{
"name": "nesbot/carbon",
@ -376,16 +376,16 @@
},
{
"name": "paragonie/random_compat",
"version": "v2.0.4",
"version": "v2.0.10",
"source": {
"type": "git",
"url": "https://github.com/paragonie/random_compat.git",
"reference": "a9b97968bcde1c4de2a5ec6cbd06a0f6c919b46e"
"reference": "634bae8e911eefa89c1abfbf1b66da679ac8f54d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/paragonie/random_compat/zipball/a9b97968bcde1c4de2a5ec6cbd06a0f6c919b46e",
"reference": "a9b97968bcde1c4de2a5ec6cbd06a0f6c919b46e",
"url": "https://api.github.com/repos/paragonie/random_compat/zipball/634bae8e911eefa89c1abfbf1b66da679ac8f54d",
"reference": "634bae8e911eefa89c1abfbf1b66da679ac8f54d",
"shasum": ""
},
"require": {
@ -420,7 +420,7 @@
"pseudorandom",
"random"
],
"time": "2016-11-07T23:38:38+00:00"
"time": "2017-03-13T16:27:32+00:00"
},
{
"name": "psr/log",
@ -471,16 +471,16 @@
},
{
"name": "symfony/console",
"version": "v3.2.2",
"version": "v3.2.8",
"source": {
"type": "git",
"url": "https://github.com/symfony/console.git",
"reference": "4f9e449e76996adf310498a8ca955c6deebe29dd"
"reference": "a7a17e0c6c3c4d70a211f80782e4b90ddadeaa38"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/console/zipball/4f9e449e76996adf310498a8ca955c6deebe29dd",
"reference": "4f9e449e76996adf310498a8ca955c6deebe29dd",
"url": "https://api.github.com/repos/symfony/console/zipball/a7a17e0c6c3c4d70a211f80782e4b90ddadeaa38",
"reference": "a7a17e0c6c3c4d70a211f80782e4b90ddadeaa38",
"shasum": ""
},
"require": {
@ -530,20 +530,20 @@
],
"description": "Symfony Console Component",
"homepage": "https://symfony.com",
"time": "2017-01-08T20:47:33+00:00"
"time": "2017-04-26T01:39:17+00:00"
},
{
"name": "symfony/debug",
"version": "v3.2.2",
"version": "v3.2.8",
"source": {
"type": "git",
"url": "https://github.com/symfony/debug.git",
"reference": "810ba5c1c5352a4ddb15d4719e8936751dff0b05"
"reference": "fd6eeee656a5a7b384d56f1072243fe1c0e81686"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/debug/zipball/810ba5c1c5352a4ddb15d4719e8936751dff0b05",
"reference": "810ba5c1c5352a4ddb15d4719e8936751dff0b05",
"url": "https://api.github.com/repos/symfony/debug/zipball/fd6eeee656a5a7b384d56f1072243fe1c0e81686",
"reference": "fd6eeee656a5a7b384d56f1072243fe1c0e81686",
"shasum": ""
},
"require": {
@ -587,20 +587,20 @@
],
"description": "Symfony Debug Component",
"homepage": "https://symfony.com",
"time": "2017-01-02T20:32:22+00:00"
"time": "2017-04-19T20:17:50+00:00"
},
{
"name": "symfony/finder",
"version": "v3.2.2",
"version": "v3.2.8",
"source": {
"type": "git",
"url": "https://github.com/symfony/finder.git",
"reference": "8c71141cae8e2957946b403cc71a67213c0380d6"
"reference": "9cf076f8f492f4b1ffac40aae9c2d287b4ca6930"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/finder/zipball/8c71141cae8e2957946b403cc71a67213c0380d6",
"reference": "8c71141cae8e2957946b403cc71a67213c0380d6",
"url": "https://api.github.com/repos/symfony/finder/zipball/9cf076f8f492f4b1ffac40aae9c2d287b4ca6930",
"reference": "9cf076f8f492f4b1ffac40aae9c2d287b4ca6930",
"shasum": ""
},
"require": {
@ -636,7 +636,7 @@
],
"description": "Symfony Finder Component",
"homepage": "https://symfony.com",
"time": "2017-01-02T20:32:22+00:00"
"time": "2017-04-12T14:13:17+00:00"
},
{
"name": "symfony/polyfill-mbstring",
@ -699,16 +699,16 @@
},
{
"name": "symfony/translation",
"version": "v3.2.2",
"version": "v3.2.8",
"source": {
"type": "git",
"url": "https://github.com/symfony/translation.git",
"reference": "6520f3d4cce604d9dd1e86cac7af954984dd9bda"
"reference": "f4a04d2df710f81515df576b2de06bdeee518b83"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/translation/zipball/6520f3d4cce604d9dd1e86cac7af954984dd9bda",
"reference": "6520f3d4cce604d9dd1e86cac7af954984dd9bda",
"url": "https://api.github.com/repos/symfony/translation/zipball/f4a04d2df710f81515df576b2de06bdeee518b83",
"reference": "f4a04d2df710f81515df576b2de06bdeee518b83",
"shasum": ""
},
"require": {
@ -721,7 +721,7 @@
"require-dev": {
"psr/log": "~1.0",
"symfony/config": "~2.8|~3.0",
"symfony/intl": "~2.8|~3.0",
"symfony/intl": "^2.8.18|^3.2.5",
"symfony/yaml": "~2.8|~3.0"
},
"suggest": {
@ -759,7 +759,7 @@
],
"description": "Symfony Translation Component",
"homepage": "https://symfony.com",
"time": "2017-01-02T20:32:22+00:00"
"time": "2017-04-12T14:13:17+00:00"
}
],
"packages-dev": [],

View File

@ -5,6 +5,7 @@ paths:
data: tests/_data
support: tests/_support
envs: tests/_envs
helpers: nil
settings:
bootstrap: _bootstrap.php
colors: false

View File

@ -13,7 +13,7 @@
"phpunit/phpunit": "~4.0",
"fzaninotto/faker": "~1.0",
"phpspec/phpspec": "2.0.0",
"codeception/codeception": "2.0.0"
"codeception/codeception": "^2.2"
},
"autoload": {
"psr-4": {

View File

@ -105,6 +105,9 @@ class ResourcesCommand extends BaseCommand {
$name = $field['name'];
$schema = $this->convertArray(str_replace(':', '.', $field['schema']), ' ', ':');
$rules = (isset($field['rules'])) ? trim($field['rules']) : '';
// Replace space by comma
$rules = str_replace(' ', ',', $rules);
$tags = $this->convertArray($field['tags'], ' ', ',');
$string = "{$name};{$schema};{$rules};{$tags}";

View File

@ -1,4 +1,9 @@
#!/usr/bin/env bash
# Runing tests for Lumen
cd lumen-test
cd lumen-test || return
if [ ! -f codecept.phar ]; then
wget http://codeception.com/codecept.phar
fi
php codecept.phar run