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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 09aa3855438506b5ecf88375c99a586c7534be36
4
- data.tar.gz: fdef51aab0e90a45192f3805fd11475cd9c845fd
3
+ metadata.gz: d1a6ef43dac4f3caf8f1e5cab61db2bc2b2ebe47
4
+ data.tar.gz: 4d9480dd1c70ec9edd44d3364caf3ede497f111d
5
5
  SHA512:
6
- metadata.gz: 244d523262bc75fb5f95a969c9d4322f974abdce94572efb39653b91ec7592903f5a09a7a518d0ff11c89602a5fce5ba8a61443ef64158556edd53fb0d873eed
7
- data.tar.gz: 0b40b7dfc9547dd3be2aa8373913a1fc562390c35d4eabd3ee2505b070063f5f268f241a1a56783f5cdc572b06af4764e8f161c58175cb7a25522ce7e95ae999
6
+ metadata.gz: 10d70d9f34809501300a5eeea9c38f4af0842261f006dd25be64b50d6eafe466c3043a10ec18d00127775ae578a5c328a0d8921dd9a797bd16b1ce36c722c101
7
+ data.tar.gz: 247defc65dc59bb9cae450b1aec92f0b3f8c27477e8b5e5a32833a6351de6106e42e4877833d2eb64a4258758bd21c09ac39570cda98dc8b2cc648ede7b631f4
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lita-livenation (0.0.10)
4
+ lita-livenation (0.0.11)
5
5
  alchemist
6
6
  i18n
7
7
  lita (>= 2.7)
@@ -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[2] == "local")
15
+ local = !!(response.args[1] == "local")
16
16
 
17
- lunch_spots = LunchFinder.search(response.args[1], local)
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|
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "lita-livenation"
3
- spec.version = "0.0.10"
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.}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-livenation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Tran