Rebased #63 onto next since tests weren't passing on master.
This came up when I was debugging defunkt/gist.el#74
Calling gist-mode-write-file from a git-mode buffer or
gist-edit-current-description from
the github:gists (i.e. git-list) buffer was returning the following
error: byte-code: Invalid slot type: gh-gist-gist, id, string, nil.
This error was because the GitHub v3 API does not allow null "content"
properties. This functions were setting this slot to nil to delete the
file. The GitHub v3 API requires a null object associated with the
filename to delete a gist file (see
https://developer.github.com/v3/gists/#edit-a-gist).
To fix this, gh-gist-gist-file-to-obj was updated to return length one
lists containing the filename when the :content slot is nil.
Rebased #63 onto next since tests weren't passing on master.
This came up when I was debugging defunkt/gist.el#74
Calling
gist-mode-write-file
from a git-mode buffer orgist-edit-current-description
from the github:gists (i.e.git-list
) buffer was returning the following error:byte-code: Invalid slot type: gh-gist-gist, id, string, nil
.This error was because the GitHub v3 API does not allow null "content" properties. This functions were setting this slot to nil to delete the file. The GitHub v3 API requires a null object associated with the filename to delete a gist file (see https://developer.github.com/v3/gists/#edit-a-gist).
To fix this,
gh-gist-gist-file-to-obj
was updated to return length one lists containing the filename when the :content slot is nil.