lita-onewheel-aqi 0.1.0 → 0.1.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 04cbae7b6f020997a8c7d3aed7f8f7af5202d224
4
- data.tar.gz: cd9205102e10bdf64f5f0181c408421a103bcc9d
3
+ metadata.gz: 962268641dbc71b1917c527f84ce964036e05fe7
4
+ data.tar.gz: 8732274479aebcd409280695a1b077ee5742f17c
5
5
  SHA512:
6
- metadata.gz: 4b4e287e98fcac797ebc5737895752b8964b59149fbe47a0ec45e47ca4f964451a72be4ae1dc5954fac458b8bbf56e9dda71f696e8956edd87983ada6eecd2b4
7
- data.tar.gz: cad2555a9dc531ec0f150ecb48aab87b6354700552655603160fadeba423e8146f9736c3b515a4d80d6a4ce3819e0d24ecaa160f71062bec989ac813415bf7c6
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
- loc = geo_lookup(response.matches[0][0].to_s.strip)
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 = {
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'lita-onewheel-aqi'
3
- spec.version = '0.1.0'
3
+ spec.version = '0.1.1'
4
4
  spec.authors = ['Andrew Kreps']
5
5
  spec.email = ['andrew.kreps@gmail.com']
6
6
  spec.description = 'AQI data retrival bot'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-onewheel-aqi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kreps