lita-onewheel-aqi 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lita/handlers/onewheel_aqi.rb +4 -1
- data/lita-onewheel-aqi.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: 962268641dbc71b1917c527f84ce964036e05fe7
|
4
|
+
data.tar.gz: 8732274479aebcd409280695a1b077ee5742f17c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad9e35de0343715ac044d2bf9c43ee5c328f3ab303f8a66fca26583a3fa6554f9a91d7543e1dd5c1fa43291dfb555d3bcc96fca6c6faef1a813171d603199aba
|
7
|
+
data.tar.gz: dffa7d0decc1c9336349ff1950067375031aead9cca1ea3e7d8629ee41e56f040aa33ef326ac20be10ab9306276255e27e6751d2bc42ff2a01cbd1d9e6f70dfd
|
@@ -13,7 +13,10 @@ module Lita
|
|
13
13
|
help: {'!aqi [location]' => 'Gives you available data for air quality (PM2.5) forecast and latest observation.'}
|
14
14
|
|
15
15
|
def get_aqi(response)
|
16
|
-
|
16
|
+
location = response.matches[0][0].to_s.strip
|
17
|
+
location = 'Portland, OR' unless location
|
18
|
+
|
19
|
+
loc = geo_lookup(location)
|
17
20
|
puts loc.inspect
|
18
21
|
|
19
22
|
parameters = {
|
data/lita-onewheel-aqi.gemspec
CHANGED