fcoury / octopi

A Ruby interface to GitHub API v2
http://hasmany.info/2009/4/18/ruby-interface-to-github-api
MIT License
216 stars 47 forks source link

Repository.issues owner typo! #54

Open micahbrich opened 13 years ago

micahbrich commented 13 years ago

I was reading through the code in /lib/octopi/repository.rb, and found a little typo on line #100.

def issues(state = "open")
  IssueSet.new(Octopi::Issue.find_all(:user => owner, :repository => self))
end

as far as I can tell, ought to be:

def issues(state = "open")
  IssueSet.new(Octopi::Issue.find_all(:user => self.owner, :repository => self))
end

My app couldn't find the user, because it didn't know what "user" was, as opposed to "self.user." Thought I'd share my findings!

radar commented 13 years ago

These should be the same thing. Let me know if you are still having issues with the latest gem and then I can fix it. A stacktrace would be helpful if one is provided.