poundie-ffm 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/poundie-ffm.rb +1 -1
- metadata +3 -3
data/lib/poundie-ffm.rb
CHANGED
@@ -3,7 +3,7 @@ class PoundieFfm < Poundie::Plugin
|
|
3
3
|
|
4
4
|
prefix %r/poundie ffm\s+/ do |term|
|
5
5
|
response = JSON.parse(`curl http://farthestfromme.com/api/antipodal_property.js?q=#{term}`)
|
6
|
-
property = response["antipodal_property"]
|
6
|
+
property = response["response"]["antipodal_property"]
|
7
7
|
speak "The antipodal restaurant to #{term} is #{property["name"]} @ #{property["lat"]}, #{property["lng"]}"
|
8
8
|
end
|
9
9
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: poundie-ffm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Michael "Bad Dog" Haddad
|