fix: move to https

This commit is contained in:
Remy Sharp 2016-04-20 11:00:37 +01:00
parent 082fbd18e7
commit 7bfccf406a
4 changed files with 22 additions and 15 deletions

1
.gitignore vendored
View file

@ -1,2 +1,3 @@
.DS_Store
.idea
./config.json

View file

@ -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 . ' &lt;<a href="mailto:' . $user->email . '">' . $user->email . '</a>&gt;';
if(property_exists($user, 'gravatar') && $user->gravatar === true){
$gravatar = '<img id="gravatar" src="http://www.gravatar.com/avatar/' . md5(strtolower(trim($user->email))) . '" />';
$gravatar = '<img id="gravatar" src="https://www.gravatar.com/avatar/' . md5(strtolower(trim($user->email))) . '" />';
}
}

View file

@ -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"
}
}

22
test.js
View file

@ -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);
}
}
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);
}
});