lib/jkl.rb in jakal-0.1.9 vs lib/jkl.rb in jakal-0.1.91

- old
+ new

@@ -25,10 +25,11 @@ text = Jkl::Text::sanitize(Jkl::get_from(link)) Jkl::Extraction::tags(key, text) end def trends - url = YAML::load_file('config/config.yml')['twitter'] + url = YAML::load_file('config/config.yml')['twitter'] || + "http://search.twitter.com/trends.json" JSON.parse(Jkl::get_from(url))["trends"].map{|t| t["name"]} end end end