Created
February 2, 2013 18:57
-
-
Save kmiyake/4698797 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # vendor/bundle/ruby/1.9.1/gems/github_api-0.8.9/lib/github_api/repos.rb | |
| 327 response = if (user_name = params.delete("user")) | |
| 328 get_request("/users/#{user_name}/repos", params) | |
| 329 elsif (org_name = params.delete("org")) | |
| 330 get_request("/orgs/#{org_name}/repos", params) | |
| 331 # elsif authenticated? # コメントアウト | |
| 332 # # For authenticated user # コメントアウト | |
| 333 # get_request("/user/repos", params) # コメントアウト | |
| 334 else | |
| 335 get_request("/repositories", params) | |
| 336 end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment