poundie-ffm 0.0.2

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/poundie-ffm.rb +11 -0
  2. metadata +80 -0
@@ -0,0 +1,11 @@
1
+ class PoundieFfm < Poundie::Plugin
2
+ register :poundie_ffm
3
+
4
+ prefix %r/poundie ffm\s+/ do |term|
5
+ response = JSON.parse(`curl http://farthestfromme.com/api/antipodal_property.js?q=#{term}`)
6
+ property = response["antipodal_property"]
7
+ speak "The antipodal restaurant to #{term} is #{property["name"]} @ #{property["lat"]}, #{property["lng"]}"
8
+ end
9
+ end
10
+
11
+ Poundie.use :poundie_ffm
metadata ADDED
@@ -0,0 +1,80 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: poundie-ffm
3
+ version: !ruby/object:Gem::Version
4
+ hash: 27
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 2
10
+ version: 0.0.2
11
+ platform: ruby
12
+ authors:
13
+ - Michael "Bad Dog" Haddad
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-05-18 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: poundie
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ hash: 25
29
+ segments:
30
+ - 0
31
+ - 0
32
+ - 3
33
+ version: 0.0.3
34
+ type: :runtime
35
+ version_requirements: *id001
36
+ description: A Poundie plugin for discovering the antipodal restaurant for the provided location.
37
+ email:
38
+ executables: []
39
+
40
+ extensions: []
41
+
42
+ extra_rdoc_files: []
43
+
44
+ files:
45
+ - lib/poundie-ffm.rb
46
+ homepage:
47
+ licenses: []
48
+
49
+ post_install_message:
50
+ rdoc_options: []
51
+
52
+ require_paths:
53
+ - lib
54
+ required_ruby_version: !ruby/object:Gem::Requirement
55
+ none: false
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ hash: 3
60
+ segments:
61
+ - 0
62
+ version: "0"
63
+ required_rubygems_version: !ruby/object:Gem::Requirement
64
+ none: false
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ hash: 3
69
+ segments:
70
+ - 0
71
+ version: "0"
72
+ requirements: []
73
+
74
+ rubyforge_project:
75
+ rubygems_version: 1.8.2
76
+ signing_key:
77
+ specification_version: 3
78
+ summary: A Poundie plugin for discovering the antipodal restaurant for the provided location.
79
+ test_files: []
80
+