mirror of
https://github.com/samsonjs/mit-license.git
synced 2026-04-09 11:55:47 +00:00
fix: move to https
This commit is contained in:
parent
082fbd18e7
commit
7bfccf406a
4 changed files with 22 additions and 15 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -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 . ' <<a href="mailto:' . $user->email . '">' . $user->email . '</a>>';
|
||||
|
||||
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
package.json
10
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"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
22
test.js
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);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue