lita-livenation 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/lita/behaviors/lunch_finder.rb +1 -1
- data/lib/lita/handlers/livenation.rb +2 -2
- data/lita-livenation.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d1a6ef43dac4f3caf8f1e5cab61db2bc2b2ebe47
|
4
|
+
data.tar.gz: 4d9480dd1c70ec9edd44d3364caf3ede497f111d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10d70d9f34809501300a5eeea9c38f4af0842261f006dd25be64b50d6eafe466c3043a10ec18d00127775ae578a5c328a0d8921dd9a797bd16b1ce36c722c101
|
7
|
+
data.tar.gz: 247defc65dc59bb9cae450b1aec92f0b3f8c27477e8b5e5a32833a6351de6106e42e4877833d2eb64a4258758bd21c09ac39570cda98dc8b2cc648ede7b631f4
|
data/Gemfile.lock
CHANGED
@@ -21,7 +21,7 @@ class LunchFinder
|
|
21
21
|
results = []
|
22
22
|
|
23
23
|
response.businesses.each do |business|
|
24
|
-
results << "#{business.name} - #{business.distance.meters.to.miles} mi - #{business.rating} Stars"
|
24
|
+
results << "#{business.name} - #{business.distance.meters.to.miles.round(2)} mi - #{business.rating} Stars"
|
25
25
|
end
|
26
26
|
|
27
27
|
results
|
@@ -12,9 +12,9 @@ module Lita
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def lunch(response)
|
15
|
-
local = !!(response.args[
|
15
|
+
local = !!(response.args[1] == "local")
|
16
16
|
|
17
|
-
lunch_spots = LunchFinder.search(response.args[
|
17
|
+
lunch_spots = LunchFinder.search(response.args[0], local)
|
18
18
|
# lunch_spots = ['Shin Ya', "Hoy's Wok", 'Fresh n Easy', 'Baja Fresh', "Zankou's Chicken", 'Mendocino Farms', 'Chipotle', 'Jersey Mike\'s', 'In N Out', 'El Compadre', 'Te\'kila', 'Veggie Grill', '25 Degrees', 'Loteria', 'Subway', 'Buffalo Wild Wings', 'Hooters', 'El Pollo Loco', 'Le Mandarette']
|
19
19
|
response.reply "Here's a list of #{local ? 'local' : 'non-local'} places to eat."
|
20
20
|
lunch_spots.each do |spot|
|
data/lita-livenation.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = "lita-livenation"
|
3
|
-
spec.version = "0.0.
|
3
|
+
spec.version = "0.0.11"
|
4
4
|
spec.authors = ["Peter Tran"]
|
5
5
|
spec.email = ["peter@livenationlabs.com"]
|
6
6
|
spec.description = %q{Plugin for Lita that responds to standup with a zoom link.}
|