gotascii-crags 1.2.5 → 1.2.6
Sign up to get free protection for your applications and to get access to all the features.
- data/crags.gemspec +1 -1
- data/lib/crags/searcher.rb +5 -1
- data/lib/crags.rb +1 -1
- metadata +1 -1
data/crags.gemspec
CHANGED
data/lib/crags/searcher.rb
CHANGED
@@ -48,8 +48,12 @@ module Crags
|
|
48
48
|
{:title => title, :url => url, :date => date}
|
49
49
|
end
|
50
50
|
|
51
|
+
def search_location_link(keyword, loc, category = 'sss')
|
52
|
+
"http://#{loc}/search/#{category}?query=#{keyword}"
|
53
|
+
end
|
54
|
+
|
51
55
|
def search_location(keyword, loc, category = 'sss', &block)
|
52
|
-
doc = fetch_doc("
|
56
|
+
doc = fetch_doc("#{search_location_link(keyword, loc, category)}&format=rss")
|
53
57
|
items(doc).collect do |item|
|
54
58
|
yield item if block_given?
|
55
59
|
item
|
data/lib/crags.rb
CHANGED