condemil / gist

Sublime Text plugin for creating new Gists from selected text
MIT License
725 stars 136 forks source link

Using token instead of password gives error about missing password #53

Closed alechko closed 12 years ago

alechko commented 12 years ago

According to documentation, it's possible to use token auth instead of storing plain-text password in a non protected file:

Note you must specifiy either username AND password or token.

so while my ~/.config/sublime-text-2/Packages/User/Gist.sublime-settings file looks like this:

{
    "username": "user",
    "token": "265f8************************************"
}

when trying to create / list gists, message pops up:

Gist: GitHub username or password isn't provided in Gist.sublime-settings file

Also tried without success to use these settings in the ~/.config/sublime-text-2/Packages/Gist/Gist.sublime-settings file. I've looked at the other similar issues, and nothing solves this but using a password and not a token.

ST2 v2.0.1 build 2217 OS CrunchBang Linux statler

skuroda commented 12 years ago

I apologize for the token not working (I'm the author of that particular feature). I think I've tracked down the problem. I will work on a fix and make a pull request with a fix, but I'm not sure when it will get pulled in. You are of course free to use my fork which is available at https://github.com/skuroda/Gist

skuroda commented 12 years ago

Well I fixed it, but decided not to push it to my repo. As it turns out this is already addressed in pull request #52, so you may want to just pull from his repo, or make the appropriate fix if you are comfortable with it.

condemil commented 12 years ago

Now it must work ok, thanks to zemlanin and skuroda!

alechko commented 12 years ago

thanx alot guys, working as charm!!! :)