minor changes

This commit is contained in:
coderaiser 2012-11-25 05:15:23 -05:00
parent 1e019376d2
commit 633f8535bc
3 changed files with 37 additions and 4 deletions

View file

@ -69,7 +69,7 @@
function appCacheProcessing(){
var lAppCache = srv.AppCache,
lFiles = [
{'//themes.googleusercontent.com/static/fonts/droidsansmono/v4/ns-m2xQYezAtqh7ai59hJUYuTAAIFFn5GTWtryCmBQ4.woff' : './font/DroidSansMono.woff'},
{'//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js' : './lib/client/jquery.js'}];

View file

@ -73,7 +73,7 @@ var CloudCommander, Util, DOM, $, Github, cb;
};
GithubStore.Login = function(pToken){
cloudcmd.Storage.Github = GithubLocal = new Github({
cloudcmd.Storage.Github = Github = GithubLocal = new Github({
token : pToken,
auth : 'oauth'
});

View file

@ -81,8 +81,8 @@
this.show = function(username, cb) {
var command = username ? "/users/"+username : "/user";
_request("GET", command, null, function(err, res) {
_request("GET", "/users/"+username, null, function(err, res) {
cb(err, res);
});
};
@ -113,6 +113,24 @@
cb(err, res);
});
};
// Follow user
// -------
this.follow = function(username, cb) {
_request("PUT", "/user/following/"+username, null, function(err, res) {
cb(err, res);
});
};
// Unfollow user
// -------
this.unfollow = function(username, cb) {
_request("DELETE", "/user/following/"+username, null, function(err, res) {
cb(err, res);
});
};
};
@ -419,6 +437,21 @@
});
};
// Create the gist
// --------
// {
// "description": "the description for this gist",
// "public": true,
// "files": {
// "file1.txt": {
// "content": "String file contents"
// }
// }
// }
this.create = function(options, cb){
_request("POST", "/gists", options, cb);
};
// Delete the gist
// --------