jakal 0.1.9 → 0.1.91

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/jkl.rb +2 -1
  2. metadata +2 -2
data/lib/jkl.rb CHANGED
@@ -27,7 +27,8 @@ module Jkl
27
27
  end
28
28
 
29
29
  def trends
30
- url = YAML::load_file('config/config.yml')['twitter']
30
+ url = YAML::load_file('config/config.yml')['twitter'] ||
31
+ "http://search.twitter.com/trends.json"
31
32
  JSON.parse(Jkl::get_from(url))["trends"].map{|t| t["name"]}
32
33
  end
33
34
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 9
9
- version: 0.1.9
8
+ - 91
9
+ version: 0.1.91
10
10
  platform: ruby
11
11
  authors:
12
12
  - sshingler