lita-onewheel-aqi 2.0.3 → 2.0.4
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 +1 -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: aa79592be595af62de9c9f3062ebfbe48389cd9d
|
4
|
+
data.tar.gz: f79024ce2882e35659ca4430e42eea8fbb408bbf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4322f930f5f08ff86c83e5ddfe5a59b040caf6dd912eab824ab237d4eb0c39e03aa6a269af266a38b350466a86654ecb7a77946de7de7deffe702d3e26f608fd
|
7
|
+
data.tar.gz: ea079e6c6e56a29ac9e9637c462cf73798cc480ba60ad6dfb49176bc308756ef7bb48e9237db6e2f66d4f1bfb05640fe69df7012cfc639d76e49f45733801c3b
|
@@ -106,12 +106,12 @@ module Lita
|
|
106
106
|
reply = "AQI for #{loc[:name]}, "
|
107
107
|
|
108
108
|
Lita.logger.debug "Config mode: #{config.mode.inspect}"
|
109
|
+
|
109
110
|
if config.mode == :irc
|
110
111
|
reply += color_str_with_value(range_str: aqi_range_labels, range_value: aqi['data']['iaqi']['pm25']['v'].to_s)
|
111
112
|
banner_str = "\x03#{colors[:grey]}#{banner_str}\x03"
|
112
113
|
elsif config.mode == :slack
|
113
114
|
reply += color_str_with_value(range_str: aqi_range_labels, range_value: aqi['data']['iaqi']['pm25']['v'].to_s)
|
114
|
-
banner_str = "\x03#{colors[:grey]}#{banner_str}\x03"
|
115
115
|
end
|
116
116
|
|
117
117
|
if aqi['data']['iaqi']['pm10']
|
data/lita-onewheel-aqi.gemspec
CHANGED