lita-onewheel-aqi 0.0.1 → 0.0.3

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: b9f40bb6b3d63e5dd25919dd7bfd5770052aac8c
4
- data.tar.gz: 725bee5a2a642025b06ed8d912b8dde7366b5240
3
+ metadata.gz: d0d80267c353ce4831edfc750e68e2ccb1ce30ff
4
+ data.tar.gz: 1faf7c6023d57180fa951b2cbdcd8991866df1ff
5
5
  SHA512:
6
- metadata.gz: e3cccff727cb17131e0251f2c8a0be98024fa739af5ed54ac8387810fd0b7f6cf90e617092bcb4049cbb663767038d38cf783e291579c7601542f6d3cddcbb36
7
- data.tar.gz: 580f974336f3ce7d1f84cbefb1c1469375f170738cea44faf83c9a0283283b360fb21c29b1f70878a253eed323f990b60e0a03a819f42660013194143ae30dd2
6
+ metadata.gz: 87514ea9a298ecd247d6bfb360af43dfe03fd488f0044aeae800c56792447aab0084293961df85390a1d27e84d2b05fb50a0941d6d50de94543540e39b9c9528
7
+ data.tar.gz: 80daeb767adee4894728e5edea962ba0931cdf12c07c1fcd9841b6c239ab4a036e0ea136a970c37a6883f8e1f9fd4f499c450585d1a11251bdb9df0a5b7b1098
@@ -7,13 +7,13 @@ module Lita
7
7
  config :api_key
8
8
  config :distance
9
9
 
10
- route /^aqi (.*)/i,
10
+ route /^aqi(.*)$/i,
11
11
  :get_aqi,
12
12
  command: true,
13
- help: '!aqi [location] gives you available data for air quality (PM2.5) forecast and latest observation.'
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])
16
+ loc = geo_lookup(response.matches[0][0].to_s.strip)
17
17
  puts loc.inspect
18
18
 
19
19
  parameters = {
@@ -75,6 +75,7 @@ module Lita
75
75
  end
76
76
 
77
77
  def geo_lookup(query)
78
+ puts query.inspect
78
79
  geocoded = optimistic_geo_wrapper query
79
80
 
80
81
  if (query.nil? or query.empty?) and geocoded.nil?
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'lita-onewheel-aqi'
3
- spec.version = '0.0.1'
3
+ spec.version = '0.0.3'
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,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-onewheel-aqi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kreps
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-26 00:00:00.000000000 Z
11
+ date: 2016-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lita