mirror of
https://github.com/samsonjs/mit-license.git
synced 2026-04-27 15:07:42 +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
|
.DS_Store
|
||||||
.idea
|
.idea
|
||||||
|
./config.json
|
||||||
|
|
|
||||||
|
|
@ -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 . ' <<a href="mailto:' . $user->email . '">' . $user->email . '</a>>';
|
$holder = $holder . ' <<a href="mailto:' . $user->email . '">' . $user->email . '</a>>';
|
||||||
|
|
||||||
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))) . '" />';
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
10
package.json
10
package.json
|
|
@ -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
22
test.js
|
|
@ -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);
|
}
|
||||||
}
|
});
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue