lib/octopi/repository.rb in octopi-0.3.0 vs lib/octopi/repository.rb in octopi-0.4.0

- old
+ new

@@ -42,11 +42,11 @@ # Returns all the comments for a Repository def comments # We have to specify xmlns as a prefix as the document is namespaced. # Be wary! - path = "http#{'s' if private}://github.com/#{owner}/#{name}/comments.atom" - xml = Nokogiri::XML(Net::HTTP.get(URI.parse(path))) + path = "https://github.com/#{owner}/#{name}/comments.atom" + xml = Nokogiri::XML(open(URI.parse(path))) entries = xml.xpath("//xmlns:entry") comments = [] for entry in entries content = entry.xpath("xmlns:content").text.gsub("&lt;", "<").gsub("&gt;", ">") comments << Comment.new(