goog 0.0.9 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/goog +1 -1
- data/lib/goog.rb +1 -1
- metadata +1 -1
data/bin/goog
CHANGED
@@ -64,7 +64,7 @@ end
|
|
64
64
|
next unless li.at('h3 a')
|
65
65
|
href = li.at('h3 a')['href']
|
66
66
|
link = ((h = href[/^\/url\?q=([^&]+)/, 1]) && URI.unescape(h)) || href
|
67
|
-
if link !~ /^
|
67
|
+
if link !~ /^https?:/
|
68
68
|
link = "http://google.com#{link}"
|
69
69
|
end
|
70
70
|
title = li.at('h3 a').inner_text
|
data/lib/goog.rb
CHANGED