Skip to content

Commit f4b29d4

Browse files
committed
Merge branch 'develop'
2 parents 6f160a5 + 4d1e7c3 commit f4b29d4

File tree

16 files changed

+2630
-1544
lines changed

16 files changed

+2630
-1544
lines changed

.travis.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ addons:
1818
- tim.localhost
1919
- nicola.localhost
2020

21+
script:
22+
- npm run standard
23+
- npm run sonar
24+
- npm run nyc
25+
2126
cache:
2227
apt: true
2328
directories:

bin/lib/options.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ module.exports = [
277277
return answers.useEmail
278278
},
279279
validate: (value) => {
280-
if (!value || value === '') {
280+
if (!value) {
281281
return 'You must enter this information'
282282
}
283283
return true
@@ -330,7 +330,7 @@ function validPath (value) {
330330
if (value === 'default') {
331331
return Promise.resolve(true)
332332
}
333-
if (!value || value === '') {
333+
if (!value) {
334334
return Promise.resolve('You must enter a valid path')
335335
}
336336
return new Promise((resolve) => {
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# ACL resource for the well-known folder
2+
@prefix acl: <http://www.w3.org/ns/auth/acl#>.
3+
@prefix foaf: <http://xmlns.com/foaf/0.1/>.
4+
5+
# The owner has all permissions
6+
<#owner>
7+
a acl:Authorization;
8+
acl:agent <{{webId}}>;
9+
acl:accessTo <./>;
10+
acl:defaultForNew <./>;
11+
acl:mode acl:Read, acl:Write, acl:Control.
12+
13+
# The public has read permissions
14+
<#public>
15+
a acl:Authorization;
16+
acl:agentClass foaf:Agent;
17+
acl:accessTo <./>;
18+
acl:defaultForNew <./>;
19+
acl:mode acl:Read.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
User-agent: *
2+
# Allow all crawling (subject to ACLs as usual, of course)
3+
Disallow:
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# ACL for the default robots.txt resource
2+
# Individual users will be able to override it as they wish
3+
# Public-readable
4+
5+
@prefix acl: <http://www.w3.org/ns/auth/acl#>.
6+
@prefix foaf: <http://xmlns.com/foaf/0.1/>.
7+
8+
<#owner>
9+
a acl:Authorization;
10+
11+
acl:agent
12+
<{{webId}}>;
13+
14+
acl:accessTo </robots.txt>;
15+
16+
acl:mode
17+
acl:Read, acl:Write, acl:Control.
18+
19+
<#public>
20+
a acl:Authorization;
21+
22+
acl:agentClass foaf:Agent; # everyone
23+
24+
acl:accessTo </robots.txt>;
25+
26+
acl:mode acl:Read.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# ACL for the default .well-known/ resource
2+
# Server operators will be able to override it as they wish
3+
# Public-readable
4+
5+
@prefix acl: <http://www.w3.org/ns/auth/acl#>.
6+
@prefix foaf: <http://xmlns.com/foaf/0.1/>.
7+
8+
<#public>
9+
a acl:Authorization;
10+
11+
acl:agentClass foaf:Agent; # everyone
12+
13+
acl:accessTo </.well-known/>;
14+
15+
acl:mode acl:Read.
4.19 KB
Binary file not shown.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# ACL for the default favicon.ico resource
2+
# Server operators will be able to override it as they wish
3+
# Public-readable
4+
5+
@prefix acl: <http://www.w3.org/ns/auth/acl#>.
6+
@prefix foaf: <http://xmlns.com/foaf/0.1/>.
7+
8+
<#public>
9+
a acl:Authorization;
10+
11+
acl:agentClass foaf:Agent; # everyone
12+
13+
acl:accessTo </favicon.ico>;
14+
15+
acl:mode acl:Read.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
User-agent: *
2+
# Allow all crawling (subject to ACLs as usual, of course)
3+
Disallow:
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# ACL for the default robots.txt resource
2+
# Server operators will be able to override it as they wish
3+
# Public-readable
4+
5+
@prefix acl: <http://www.w3.org/ns/auth/acl#>.
6+
@prefix foaf: <http://xmlns.com/foaf/0.1/>.
7+
8+
<#public>
9+
a acl:Authorization;
10+
11+
acl:agentClass foaf:Agent; # everyone
12+
13+
acl:accessTo </robots.txt>;
14+
15+
acl:mode acl:Read.

0 commit comments

Comments
 (0)