lita-onewheel-forecast-io 1.3.3 → 1.3.4
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 -1
- 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: 56c2bbc2464303d7a16011ef0baa36f1c01cb84a
|
4
|
+
data.tar.gz: 6c5483e957461879122ed66bae796523c4b2faf6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ebf730d28023fd988e5ea67a83e5667db9f2793a14a9b218807d4c1945b6e4274cccdf8dcf0c69c3b01ae58e9f2956be061310837ecb36eafd8f21946c06aa90
|
7
|
+
data.tar.gz: 5ddee7aec74a2ea7e5654fd7bda1f132fc6937d98e47f4fd2118cd2fcb6238fb64058c2d0a138e675bbcc60451432dcd6812a29bdcc1677fae492ea47f22cd2f
|
@@ -461,11 +461,12 @@ module ForecastIo
|
|
461
461
|
# Check for the time of day when it will hit 72F.
|
462
462
|
def do_the_windows_thing(forecast)
|
463
463
|
time_to_close_the_windows = nil
|
464
|
-
forecast['hourly']['data'].
|
464
|
+
forecast['hourly']['data'].each_with_index do |hour, index|
|
465
465
|
puts "#{hour['time']} - #{hour['temperature']}"
|
466
466
|
if hour['temperature'].to_i >= 72
|
467
467
|
time_to_close_the_windows = hour['time']
|
468
468
|
end
|
469
|
+
break if index > 12
|
469
470
|
end
|
470
471
|
|
471
472
|
# Return some meta here and let the caller decide the text.
|