We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ab14e27 + e7bab05 commit 1cb2b65Copy full SHA for 1cb2b65
lib/gist.rb
@@ -200,19 +200,12 @@ def list_all_gists(user = "")
200
url = "#{base_path}"
201
202
if user == ""
203
- access_token = auth_token()
204
- if access_token.to_s != ''
205
- url << "/gists?per_page=100"
206
- get_gist_pages(url, access_token)
207
- else
208
- raise Error, "Not authenticated. Use 'gist --login' to login or 'gist -l username' to view public gists."
209
- end
210
-
+ url << "/gists?per_page=100"
211
else
212
url << "/users/#{user}/gists?per_page=100"
213
- get_gist_pages(url)
214
end
215
+ get_gist_pages(url, auth_token())
216
217
218
def read_gist(id, file_name=nil)
0 commit comments