Permalink
Browse files

fix: move to https

  • Loading branch information...
remy committed Apr 20, 2016
1 parent 082fbd1 commit 7bfccf406a0b6f361855948b02a52f00151be2f7
Showing with 22 additions and 15 deletions.
  1. +1 −0 .gitignore
  2. +2 −2 index.php
  3. +8 −2 package.json
  4. +11 −11 test.js
@@ -1,2 +1,3 @@
.DS_Store
.idea
./config.json
@@ -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))) . '" />';
}
}
@@ -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
@@ -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);
}
});

0 comments on commit 7bfccf4

Please sign in to comment.