lita-onewheel-forecast-io 1.6.5 → 1.6.6
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 +4 -4
- data/lib/lita/handlers/forecasts.rb +2 -2
- data/lib/lita/handlers/irc_handlers.rb +2 -0
- data/lita-onewheel-forecast-io.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: df4b6ea8d128af9d6ee01890b5e34c0b07d11c9a
|
4
|
+
data.tar.gz: 3857e57efb0641ebb2cb5251245d903527cff509
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1565f881b1edd3af072d19a83e097fac67ad0f89a4ac8469527d0dd558a23f00cc16754cd3f96a7dd2ed67bd5ed0f84c3ca71fa68bece71fd541a23943a4465
|
7
|
+
data.tar.gz: e679f3a135ce50d56371cd23337c3efea88f03f4d27b988ee88c527f8615126f9bc042146c00bf62c4e3e4733da76fdc9587dab6fce2d49105a1ee953f0221a0
|
@@ -443,8 +443,8 @@ module ForecastIo
|
|
443
443
|
end
|
444
444
|
|
445
445
|
def do_the_today_thing(forecast, yesterday)
|
446
|
-
Lita.logger.info "Basing today on today - yesterday: #{
|
447
|
-
temp_diff =
|
446
|
+
Lita.logger.info "Basing today on today - yesterday: #{yesterday['daily']['data'][0]['temperatureMax']} - #{forecast['daily']['data'][0]['temperatureMax']}"
|
447
|
+
temp_diff = yesterday['daily']['data'][0]['temperatureMax'] - forecast['daily']['data'][0]['temperatureMax']
|
448
448
|
get_daily_comparison_text(temp_diff, forecast['daily']['data'][0]['temperatureMax'])
|
449
449
|
end
|
450
450
|
|
@@ -209,6 +209,7 @@ module ForecastIo
|
|
209
209
|
location = geo_lookup(response.user, response.match_data[1])
|
210
210
|
forecast = get_forecast_io_results(response.user, location)
|
211
211
|
tomorrow_will_be = do_the_tomorrow_thing(forecast)
|
212
|
+
Lita.logger.info "Response: Tomorrow will be #{tomorrow_will_be} today."
|
212
213
|
response.reply "Tomorrow will be #{tomorrow_will_be} today."
|
213
214
|
end
|
214
215
|
|
@@ -217,6 +218,7 @@ module ForecastIo
|
|
217
218
|
forecast = get_forecast_io_results(response.user, location, Date.today.to_s + 'T00:00:00-0700')
|
218
219
|
yesterday_weather = get_forecast_io_results(response.user, location, Date.today.prev_day.to_s + 'T00:00:00-0700')
|
219
220
|
today_will_be = do_the_today_thing(forecast, yesterday_weather)
|
221
|
+
Lita.logger.info "Response: Today will be #{today_will_be} yesterday."
|
220
222
|
response.reply "Today will be #{today_will_be} yesterday."
|
221
223
|
end
|
222
224
|
|