Merge branch 'travis' of github.com:captn3m0/mit-license into captn3m0-travis

Conflicts:
	users/dissimile.json
This commit is contained in:
Remy Sharp 2014-06-10 06:58:43 +01:00
commit 75f233d1cf
5 changed files with 35 additions and 15 deletions

3
.travis.yml Normal file
View file

@ -0,0 +1,3 @@
language: node_js
node_js:
- "0.10"

19
package.json Normal file
View file

@ -0,0 +1,19 @@
{
"author": "Remy Sharp <remy@leftlogic.com> (http://remysharp.com/)",
"name": "mit-licence",
"description": "Hosted MIT License with details controlled through this repo",
"version": "1.0.0",
"repository": {
"type": "git",
"url": "git@github.com:remy/mit-license.git"
},
"scripts": {
"test": "node test.js"
},
"bugs": { "url": "https://github.com/remy/mit-license/issues" },
"licenses": [
{ "type": "MIT",
"url": "http://rem.mit-license.org/"
}
]
}

13
test.js Normal file
View file

@ -0,0 +1,13 @@
#!/bin/env node
var fs = require('fs');
var users = fs.readdirSync("users");
for(i in users){
try{
var content = fs.readFileSync("users/"+users[i]).toString();
JSON.parse(content);
}
catch(e){
console.error("Invalid JSON in file: " + users[i]);
process.exit(1);
}
}

View file

@ -1,7 +0,0 @@
{
"copyright": "frisB",
"url": "http://frisB.com",
"email": "play@frisb.com"
"theme": "default",
"gravatar": true
}

View file

@ -1,8 +0,0 @@
{
"copyright": "Omid Gharib, https://github.com/omidgharib",
"url": "http://omidgharib.ir",
"format": "txt",
"email": "omidgharib@yahoo.com",
"gravatar": true,
"theme" : "default"
}s