lita-onewheel-forecast-io 1.4.13 → 1.4.14
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f67aa8f33540b1afc6dc97703d02ad78314a5565
|
4
|
+
data.tar.gz: 6ea990602362b89f7893eb6e8969b2d813f57fab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66a19eac88e862d6602a25f2b6e59171c0b1df86f51f0b151201b4bb5e22ce6e2e2588ab85ba0738d22db3a37af939a33098efcc5af81f11be4dad3b6b69ad5a
|
7
|
+
data.tar.gz: 082d56cd95ceac044a7d508f0efbec910da464d8be0198ee4b9a4d00c127bd277f2264a3b213d4b8b7e23e52ef08703c912c19bdde0f4a1b05becdd87811ebce
|
@@ -497,12 +497,12 @@ module ForecastIo
|
|
497
497
|
time_at = Time.at(time_to_close_the_windows).to_datetime
|
498
498
|
local_time = timezone.utc_to_local(time_at)
|
499
499
|
|
500
|
-
output = "Close the windows at #{local_time.strftime('%k:%M')}, it will be #{window_close_temp}
|
500
|
+
output = "Close the windows at #{local_time.strftime('%k:%M')}, it will be #{get_temperature window_close_temp}. "
|
501
501
|
if time_to_open_the_windows
|
502
502
|
open_time = timezone.utc_to_local(Time.at(time_to_open_the_windows).to_datetime)
|
503
503
|
output += "Open them back up at #{open_time.strftime('%k:%M')}. "
|
504
504
|
end
|
505
|
-
output += "The high today will be #{high_temp}
|
505
|
+
output += "The high today will be #{get_temperature high_temp}."
|
506
506
|
end
|
507
507
|
end
|
508
508
|
end
|
@@ -516,6 +516,13 @@ describe Lita::Handlers::OnewheelForecastIo, lita_handler: true do
|
|
516
516
|
expect(replies.last).to eq('Close the windows at 16:00, it will be 72°F. Open them back up at 17:00. The high today will be 72°F.')
|
517
517
|
end
|
518
518
|
|
519
|
+
it '!windows in c' do
|
520
|
+
mock_up 'windows'
|
521
|
+
send_command 'set scale c'
|
522
|
+
send_command 'windows'
|
523
|
+
expect(replies.last).to eq('Close the windows at 16:00, it will be 22.22°C. Open them back up at 17:00. The high today will be 22.22°C.')
|
524
|
+
end
|
525
|
+
|
519
526
|
it 'will not say a 28.000000000000004% chance of rain' do
|
520
527
|
mock_up '28000000000004percent'
|
521
528
|
send_command 'dailyrain'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lita-onewheel-forecast-io
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kreps
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lita
|