Skip to content
This repository was archived by the owner on Mar 28, 2022. It is now read-only.

Commit e4d159b

Browse files
authored
Merge pull request #4 from mocks-server/v1.0.2
V1.0.2
2 parents 961ca67 + b5b7e32 commit e4d159b

64 files changed

Lines changed: 615 additions & 44 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.travis.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,25 @@ node_js:
55

66
cache:
77
directories:
8-
- "node_modules"
9-
- "$HOME/.sonar/cache"
8+
- ~/.npm
9+
- node_modules
10+
- ~/.sonar/cache
1011

1112
addons:
1213
sonarcloud:
13-
organization: "javierbrea"
14-
token:
15-
secure: "$SONAR_TOKEN"
14+
organization: "mocks-server"
1615
branch:
1716
name: "$TRAVIS_CURRENT_BRANCH"
1817

1918
script:
2019
- npm run lint
2120
- npm run test-ci
2221
- npm run coveralls
23-
- 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then sonar-scanner; fi'
22+
- sonar-scanner -Dsonar.login=${SONAR_TOKEN}
2423

2524
deploy:
2625
provider: npm
27-
email: "devops@xbyorange.com"
26+
email: "javier.brea@gmail.com"
2827
api_key: "$NPM_TOKEN"
2928
on:
3029
tags: true

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1010
### Fixed
1111
### Removed
1212

13+
## [1.0.2] - 2019-11-08
14+
### Changed
15+
- Project forked from xbyorange/mocks-server. Fixed license. Read NOTICE for further details
16+
17+
### Fixed
18+
- Fix some minor Sonar bugs and code smells.
19+
1320
## [1.0.1] - 2019-06-04
1421
### Fixed
1522
- Upgrade dependencies to fix potential security vulnerability

LICENSE

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -175,27 +175,5 @@
175175

176176
END OF TERMS AND CONDITIONS
177177

178-
APPENDIX: How to apply the Apache License to your work.
179-
180-
To apply the Apache License to your work, attach the following
181-
boilerplate notice, with the fields enclosed by brackets "[]"
182-
replaced with your own identifying information. (Don't include
183-
the brackets!) The text should be enclosed in the appropriate
184-
comment syntax for the file format. We also recommend that a
185-
file or class name and description of purpose be included on the
186-
same "printed page" as the copyright notice for easier
187-
identification within third-party archives.
188-
189-
Copyright [yyyy] [name of copyright owner]
190-
191-
Licensed under the Apache License, Version 2.0 (the "License");
192-
you may not use this file except in compliance with the License.
193-
You may obtain a copy of the License at
194-
195-
http://www.apache.org/licenses/LICENSE-2.0
196-
197-
Unless required by applicable law or agreed to in writing, software
198-
distributed under the License is distributed on an "AS IS" BASIS,
199-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200-
See the License for the specific language governing permissions and
201-
limitations under the License.
178+
Copyright 2019 Javier Brea and contributors
179+
Copyright 2019 XbyOrange

NOTICE

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
mocks-server. Main distribution
2+
Copyright 2019 Javier Brea
3+
4+
Portions of this software were developed at XbyOrange company.
5+
XByOrange npm-file-link v1.0.1, distributed under The Apache Software License, Version 2.0.
6+
Github repository "xbyorange/mocks-server" (https://github.com/XbyOrange/mocks-server), branch master, commit 961ca6702569091ed863679a8e675788c6f4fded. The original project files were wrongly licensed because an error of the main maintainer, Javier Brea, who received instructions from the XbyOrange company about licensing it as Apache2.0, but didn't include the appropiate license header in all repository files by error. The error has been fixed and license headers has been added to all original files, as it was the real intention of the XbyOrange company.

bin/mocks-server

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,13 @@
22
"use strict";
33

44
require("../lib/start").start();
5+
6+
/*
7+
Copyright 2019 XbyOrange
8+
9+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
10+
11+
http://www.apache.org/licenses/LICENSE-2.0
12+
13+
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
14+
*/

index.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
/*
2+
Copyright 2019 XbyOrange
3+
4+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
5+
6+
http://www.apache.org/licenses/LICENSE-2.0
7+
8+
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
9+
*/
10+
111
"use strict";
212

313
const Cli = require("./lib/Cli");

lib/Cli.js

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
/*
2+
Copyright 2019 Javier Brea
3+
Copyright 2019 XbyOrange
4+
5+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
10+
*/
11+
112
"use strict";
213

314
const chalk = require("chalk");
@@ -132,7 +143,9 @@ class Cli {
132143
if (!input || !input.length) {
133144
return Promise.resolve(featuresNames);
134145
}
135-
return Promise.resolve(featuresNames.filter(feature => feature.includes(input)));
146+
return Promise.resolve(
147+
featuresNames.filter(currentFeature => currentFeature.includes(input))
148+
);
136149
}
137150
});
138151
this._features.current = feature;

lib/Server.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
/*
2+
Copyright 2019 XbyOrange
3+
4+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
5+
6+
http://www.apache.org/licenses/LICENSE-2.0
7+
8+
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
9+
*/
10+
111
"use strict";
212

313
const path = require("path");

lib/Settings.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
/*
2+
Copyright 2019 XbyOrange
3+
4+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
5+
6+
http://www.apache.org/licenses/LICENSE-2.0
7+
8+
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
9+
*/
10+
111
"use strict";
212

313
class Settings {

lib/api/Api.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
/*
2+
Copyright 2019 XbyOrange
3+
4+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
5+
6+
http://www.apache.org/licenses/LICENSE-2.0
7+
8+
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
9+
*/
10+
111
"use strict";
212

313
const express = require("express");

0 commit comments

Comments
 (0)