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 .DS_Store
.idea .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); 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"; //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) { } catch (Exception $e) {
echo $e->getMessage() . "\n\n"; echo $e->getMessage() . "\n\n";
} }
@ -61,7 +61,7 @@
$holder = $holder . ' &lt;<a href="mailto:' . $user->email . '">' . $user->email . '</a>&gt;'; $holder = $holder . ' &lt;<a href="mailto:' . $user->email . '">' . $user->email . '</a>&gt;';
if(property_exists($user, 'gravatar') && $user->gravatar === true){ 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": { "scripts": {
"test": "node test.js" "test": "node test.js"
}, },
"bugs": { "url": "https://github.com/remy/mit-license/issues" }, "bugs": {
"license" : "SEE LICENSE IN LICENSE" "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 #!/bin/env node
var fs = require('fs'); var fs = require('fs');
var users = fs.readdirSync("users"); var users = fs.readdirSync('users');
for(i in users){ users.forEach(function (user) {
try{ try {
var content = fs.readFileSync("users/"+users[i]).toString(); var content = fs.readFileSync('users/' + user).toString();
JSON.parse(content); JSON.parse(content);
} } catch (e) {
catch(e){ console.error('Invalid JSON in file: ' + user);
console.error("Invalid JSON in file: " + users[i]); process.exit(1);
process.exit(1); }
} });
}