poundie-ffm 0.0.3 → 0.0.4

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