lib/octopi/repository.rb in fcoury-octopi-0.0.7 vs lib/octopi/repository.rb in fcoury-octopi-0.0.8

- old
+ new

@@ -3,10 +3,14 @@ include Resource set_resource_name "repository", "repositories" find_path "/repos/search/:query" resource_path "/repos/show/:id" + + def branches + Branch.find(self.owner, self.name) + end def tags Tag.find(self.owner, self.name) end @@ -64,7 +68,12 @@ end def issue(number) Issue.find(self, number) end + + def collaborators + property('collaborators', [self.owner,self.name].join('/')).values + end + end end