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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dd4ac54281b5e8db22121fc19d40df2a2f8c171c
4
- data.tar.gz: b9794e2b5b4816427745329abd16a0085b93176f
3
+ metadata.gz: df4b6ea8d128af9d6ee01890b5e34c0b07d11c9a
4
+ data.tar.gz: 3857e57efb0641ebb2cb5251245d903527cff509
5
5
  SHA512:
6
- metadata.gz: ababca6f15fb1875f354acc352bfab32082b634ae1e7b8e9ad8b79550fda24cd782fd913a6f76e49c04c6663065801ddef9794b4b1d98b599d14e1876add48d6
7
- data.tar.gz: c0e39cdda54a706b1d800f0f6d587c2fcb59425dc312b3666674bf5b0c94be487a7c8ee122e29d2682015877dba511e772568b888d8ae6c6972276d72946fd91
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: #{forecast['daily']['data'][0]['temperatureMax']} - #{yesterday['daily']['data'][0]['temperatureMax']}"
447
- temp_diff = forecast['daily']['data'][0]['temperatureMax'] - yesterday['daily']['data'][0]['temperatureMax']
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
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'lita-onewheel-forecast-io'
3
- spec.version = '1.6.5'
3
+ spec.version = '1.6.6'
4
4
  spec.authors = ['Andrew Kreps']
5
5
  spec.email = ['andrew.kreps@gmail.com']
6
6
  spec.description = <<-EOS
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-onewheel-forecast-io
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.5
4
+ version: 1.6.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kreps