Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Require user and token. Closes #35

  • Loading branch information...
commit 8a201bd312e69a5190cecbec641af409927645db 1 parent 782c3f8
André Arko indirect authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/gist.rb
6 lib/gist.rb
View
@@ -182,7 +182,11 @@ def auth
user = config("github.user")
token = config("github.token")
- user.to_s.empty? ? {} : { :login => user, :token => token }
+ if user.to_s.empty? || token.to_s.empty?
+ {}
+ else
+ { :login => user, :token => token }
+ end
end
# Returns default values based on settings in your gitconfig. See
Please sign in to comment.
Something went wrong with that request. Please try again.