Module: Pod::GitHub
- Defined in:
- lib/cocoapods-core/github.rb
Overview
Allows to access information about the GitHub repos.
This class is stored in Core because it might be used by web services.
Class Method Summary collapse
-
.branches(url) ⇒ Array
Returns the branches of a repo.
-
.repo(url) ⇒ Hash
Returns the information of a repo.
-
.tags(url) ⇒ Array
Returns the tags of a repo.
-
.user(login) ⇒ Hash
Returns the information of a user.
Class Method Details
.branches(url) ⇒ Array
Returns the branches of a repo.
51 52 53 54 55 |
# File 'lib/cocoapods-core/github.rb', line 51 def self.branches(url) if repo_id = normalized_repo_id(url) peform_request("https://api.github.com/repos/#{repo_id}/branches") end end |
.repo(url) ⇒ Hash
Returns the information of a repo.
27 28 29 30 31 |
# File 'lib/cocoapods-core/github.rb', line 27 def self.repo(url) if repo_id = normalized_repo_id(url) peform_request("https://api.github.com/repos/#{repo_id}") end end |
.tags(url) ⇒ Array
Returns the tags of a repo.
39 40 41 42 43 |
# File 'lib/cocoapods-core/github.rb', line 39 def self.(url) if repo_id = normalized_repo_id(url) peform_request("https://api.github.com/repos/#{repo_id}/tags") end end |
.user(login) ⇒ Hash
Returns the information of a user.
16 17 18 |
# File 'lib/cocoapods-core/github.rb', line 16 def self.user(login) peform_request("https://api.github.com/users/#{login}") end |