lib/octopussy/client.rb in octopussy-0.2.0 vs lib/octopussy/client.rb in octopussy-0.2.1
- old
+ new
@@ -237,10 +237,16 @@
repo = Repo.new(repo)
response = self.class.post("/repos/show/#{repo.username}/#{repo.name}/collaborators", :query => auth_params)
Hashie::Mash.new(response).collaborators
end
+ def contributors(repo)
+ repo = Repo.new(repo)
+ response = self.class.get("/repos/show/#{repo.username}/#{repo.name}/contributors")
+ Hashie::Mash.new(response).contributors
+ end
+
def repo(repo)
repo = Repo.new(repo)
response = self.class.get("/repos/show/#{repo.username}/#{repo.name}")
Hashie::Mash.new(response).repository
end
@@ -280,10 +286,10 @@
Hashie::Mash.new(response).tags
end
def branches(repo)
repo = Repo.new(repo)
- response = self.class.get("/repos/show/#{repo.username}/#{repo.name}/branches")
+ response = self.class.get("/repos/show/#{repo.username}/#{repo.name}/branches", :query => auth_params)
Hashie::Mash.new(response).branches
end
# Network