Permalink
Browse files

fixed display problem on exact matches

  • Loading branch information...
1 parent d3d0985 commit 5f6e52fe5c263742ddabdf8619cba6f6b7c710e8 @daveheitzman committed Mar 18, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/gemqs.rb
View
5 lib/gemqs.rb
@@ -50,10 +50,13 @@ def get_page
rpage=html_page
ritems = rpage.css('div.gems.border>ol>li')
ritems.each do |rli|
+#puts rli.css("a>strong").text
+
self.results << [
rli.children[1].text.split(" ").first.gsub(",","").to_i,
rli.children[3].text.split("\n")[1],
- rli.children[3].text.split("\n")[2],
+ # rli.children[3].text.split("\n")[2],
+ rli.css("a>strong").text,
rli.children[1].text.split(" ").first
]
end

0 comments on commit 5f6e52f

Please sign in to comment.