lita-onewheel-aqi 2.0.10 → 2.0.12

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: 9d04773171d0c0dd5ae10537abfe5d3131a25d54
4
- data.tar.gz: 39d74cd311c6c2fbf1c3bc8870849f7fa793c08d
3
+ metadata.gz: 2bb25daba37a89da7727f14156565d3f0a703619
4
+ data.tar.gz: 9f1d9c790e73bf8f8969cb2db3fbc8e44fa4fbb4
5
5
  SHA512:
6
- metadata.gz: 514b49d9f19dfa4ef1b2321b9f1b207bf9228717bba124d666d6e00532e71192687908e527b32ce74ed5c7093c7596623d72ca05e4b58f6c0b5bce85d1526703
7
- data.tar.gz: da51c6ec10fb801c5c7c2b69955f81f4d393bc4864ab42c48be64359134647129229f8c78f915781ca91f6f577ad93d654d16615467e3f4a3fbae142980456ba
6
+ metadata.gz: 62c9aaa6cefe4671a67cc30628a18431347d36752225d6a6c5acb197bccd427e8297ce96ab5f6b20a52eb71e98b9c9ccc6f1ed83e16c29e49365423c3a0ee27c
7
+ data.tar.gz: 0aa1952f3b2a42dd02587e9a791b103e9c674c63fa53311f0fda8b8fda3200d4237840e521d69a33f033ab75e210304bf6ccbb4dfe81896a4a75cce044e3f4f7
@@ -126,7 +126,7 @@ module Lita
126
126
  if aqi['data']['iaqi']['pm25']
127
127
  reply += 'pm25: ' + color_str(aqi['data']['iaqi']['pm25']['v'].to_s) + ' '
128
128
  ugm3 = pm25_to_ugm3 aqi['data']['iaqi']['pm25']['v'].to_s
129
- reply += "#{ugm3} µgm3(est) "
129
+ reply += "µg/m³(est): #{ugm3} "
130
130
  end
131
131
  if aqi['data']['iaqi']['pm10']
132
132
  reply += 'pm10: ' + color_str(aqi['data']['iaqi']['pm10']['v'].to_s) + ' '
@@ -165,7 +165,7 @@ module Lita
165
165
  if aqi['data']['iaqi']['pm25']
166
166
  reply += 'pm25: ' + color_str(aqi['data']['iaqi']['pm25']['v'].to_s) + ' '
167
167
  ugm3 = pm25_to_ugm3 aqi['data']['iaqi']['pm25']['v']
168
- reply += "#{ugm3} µgm3(est) "
168
+ reply += "µg/m³(est): #{ugm3} "
169
169
  end
170
170
  if aqi['data']['iaqi']['pm10']
171
171
  reply += 'pm10: ' + color_str(aqi['data']['iaqi']['pm10']['v'].to_s) + ' '
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'lita-onewheel-aqi'
3
- spec.version = '2.0.10'
3
+ spec.version = '2.0.12'
4
4
  spec.authors = ['Andrew Kreps']
5
5
  spec.email = ['andrew.kreps@gmail.com']
6
6
  spec.description = 'AQI data retrieval bot'
@@ -34,11 +34,11 @@ describe Lita::Handlers::OnewheelAqi, lita_handler: true do
34
34
 
35
35
  it 'queries the aqi' do
36
36
  send_command 'aqi'
37
- expect(replies.last).to include("AQI for Portland, OR, USA, ⚠️ 08Moderate ⚠️ pm25: 0876 23.99 µgm3(est) pm10: 0340 updated 0860 minutes ago. 14(http://aqicn.org/city/usa/oregon/government-camp-multorpor-visibility/)")
37
+ expect(replies.last).to include("AQI for Portland, OR, USA, ⚠️ 08Moderate ⚠️ pm25: 0876 µg/m³(est): 23.99 pm10: 0340 updated 0860 minutes ago. 14(http://aqicn.org/city/usa/oregon/government-camp-multorpor-visibility/)")
38
38
  end
39
39
 
40
40
  it 'queries the aqideets' do
41
41
  send_command 'aqideets'
42
- expect(replies.last).to eq("AQI for Portland, OR, USA, ⚠️ 08Moderate ⚠️ humidity: 11% pressure: 1014mb pm25: 0876 23.99 µgm3(est) pm10: 0340 temp: 34.65C updated 0860 minutes ago. 14(http://aqicn.org/city/usa/oregon/government-camp-multorpor-visibility/)")
42
+ expect(replies.last).to eq("AQI for Portland, OR, USA, ⚠️ 08Moderate ⚠️ humidity: 11% pressure: 1014mb pm25: 0876 µg/m³(est): 23.99 pm10: 0340 temp: 34.65C updated 0860 minutes ago. 14(http://aqicn.org/city/usa/oregon/government-camp-multorpor-visibility/)")
43
43
  end
44
44
  end
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: 2.0.10
4
+ version: 2.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kreps