jakal 0.1.93 → 0.1.94
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/jkl.rb +2 -0
- metadata +2 -2
data/lib/jkl.rb
CHANGED
@@ -20,6 +20,7 @@ module Jkl
|
|
20
20
|
url = YAML::load_file('config/config.yml')['topix'] ||
|
21
21
|
"http://www.topix.net/rss/search/article?q="
|
22
22
|
links("#{url}#{keyphrase}")
|
23
|
+
rescue Errno::ENOENT
|
23
24
|
end
|
24
25
|
|
25
26
|
def tags(key, link)
|
@@ -31,6 +32,7 @@ module Jkl
|
|
31
32
|
url = YAML::load_file('config/config.yml')['twitter'] ||
|
32
33
|
"http://search.twitter.com/trends.json"
|
33
34
|
JSON.parse(Jkl::get_from(url))["trends"].map{|t| t["name"]}
|
35
|
+
rescue Errno::ENOENT
|
34
36
|
end
|
35
37
|
end
|
36
38
|
end
|