lita-onewheel-forecast-io 1.3.8 → 1.3.9

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: 35a5283b84b36ad962b9a0537486ff0b1056c1d6
4
- data.tar.gz: 6ca1e7906fa126062041d0dbb5375f0f9bff64b0
3
+ metadata.gz: b9ae64e2201ac6f35cd55fec3e1412134c54a008
4
+ data.tar.gz: 5830ae1315b25f1d2a29c2250e33b582d838d7c9
5
5
  SHA512:
6
- metadata.gz: 99f07dc8324c928428c9228ceb3a4ccdeaf2259565f53c93377559a835aecb82cef7c89ebc0ee5607ab1d7ffeef70bf14c917554ac03582bb81a924b4612eb7b
7
- data.tar.gz: a204cbfb03fbc8e22d87f097eea9f85112090275f40cd87e19bc227105d0fb9877194b08c221ed0e399fe0025b1a67ccb9b9304d2f24bc61872782ee48adbb93
6
+ metadata.gz: 8a20033de9cb62f05a407deff420a1321548602cc9cf513b07afcd4f4c47c603dd8705431afbf23c3cea9fb0f2f95ce6e67498efde5b32e7cc15cbe88dff684f
7
+ data.tar.gz: e123e7adbf8470005d5880267347e5c752b96fd87325a3f6398b4002f0220b3be312ccb75b27c297a27b4c9c40f320a26de413a155076af1df5d2d2731939cf4
@@ -471,7 +471,7 @@ module ForecastIo
471
471
  tm = Time.at(hour['time']).to_datetime.strftime('%k:%M')
472
472
  puts "#{hour['time']} - #{tm} - #{hour['temperature']}"
473
473
 
474
- if hour['temperature'].to_i > high_temp
474
+ if hour['temperature'] > high_temp
475
475
  high_temp = hour['temperature'].to_i
476
476
  end
477
477
 
@@ -491,6 +491,7 @@ module ForecastIo
491
491
  if time_to_close_the_windows.nil?
492
492
  "Leave 'em open, no excess heat today(#{high_temp}°F)."
493
493
  else
494
+ # Todo: base timezone on requested location.
494
495
  timezone = TZInfo::Timezone.get('America/Los_Angeles')
495
496
  time_at = Time.at(time_to_close_the_windows).to_datetime
496
497
  local_time = timezone.utc_to_local(time_at)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'lita-onewheel-forecast-io'
3
- spec.version = '1.3.8'
3
+ spec.version = '1.3.9'
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.3.8
4
+ version: 1.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kreps