diff --git a/.gitignore b/.gitignore
index 4befed30..4e9ba1e5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
.DS_Store
.idea
+./config.json
diff --git a/index.php b/index.php
index 7b5a8133..5c4eae03 100644
--- a/index.php
+++ b/index.php
@@ -40,7 +40,7 @@
exec('cd /WWW/mit-license && /usr/bin/git push origin master -v 2>&1', $out, $r);
//print_r($out); echo "\n"; print_r($r); echo "\n";
- echo '>>> MIT license page created: http://' . $_SERVER['HTTP_HOST'] . "\n\n";
+ echo '>>> MIT license page created: https://' . $_SERVER['HTTP_HOST'] . "\n\n";
} catch (Exception $e) {
echo $e->getMessage() . "\n\n";
}
@@ -61,7 +61,7 @@
$holder = $holder . ' <' . $user->email . '>';
if(property_exists($user, 'gravatar') && $user->gravatar === true){
- $gravatar = '
';
+ $gravatar = '
';
}
}
diff --git a/package.json b/package.json
index d465cbed..c49153a6 100644
--- a/package.json
+++ b/package.json
@@ -10,6 +10,12 @@
"scripts": {
"test": "node test.js"
},
- "bugs": { "url": "https://github.com/remy/mit-license/issues" },
- "license" : "SEE LICENSE IN LICENSE"
+ "bugs": {
+ "url": "https://github.com/remy/mit-license/issues"
+ },
+ "license": "SEE LICENSE IN LICENSE",
+ "dependencies": {
+ "nconf": "^0.8.4",
+ "request": "^2.72.0"
+ }
}
diff --git a/test.js b/test.js
index b8ba7aaa..852c2c96 100644
--- a/test.js
+++ b/test.js
@@ -1,13 +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);
- }
-}
\ No newline at end of file
+var users = fs.readdirSync('users');
+users.forEach(function (user) {
+ try {
+ var content = fs.readFileSync('users/' + user).toString();
+ JSON.parse(content);
+ } catch (e) {
+ console.error('Invalid JSON in file: ' + user);
+ process.exit(1);
+ }
+});