lita-onewheel-forecast-io 1.4.13 → 1.4.14

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: 428d747fc23c1c69558f33a57566795d322deb4f
4
- data.tar.gz: 9545d9c3bfa54cc0b0e5813c07d5afc1306bb930
3
+ metadata.gz: f67aa8f33540b1afc6dc97703d02ad78314a5565
4
+ data.tar.gz: 6ea990602362b89f7893eb6e8969b2d813f57fab
5
5
  SHA512:
6
- metadata.gz: c2bd9b306c0c395676224832483dddbd5ff595e144706a99fc2b9afbac59eb16e5d2f803872ece599767afb1903a5ea8fe2a50f29aee655a6e060009ad77f41e
7
- data.tar.gz: 1fe5cd613eee8983b3c8fcec986408d74cf2f1f053b65e7cf14df225f451437ba1d58068064e239002662481977f0ebdabbffe3b2ab5231b176495c8963abbe3
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}°F. "
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}°F."
505
+ output += "The high today will be #{get_temperature high_temp}."
506
506
  end
507
507
  end
508
508
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'lita-onewheel-forecast-io'
3
- spec.version = '1.4.13'
3
+ spec.version = '1.4.14'
4
4
  spec.authors = ['Andrew Kreps']
5
5
  spec.email = ['andrew.kreps@gmail.com']
6
6
  spec.description = <<-EOS
@@ -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.13
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-04 00:00:00.000000000 Z
11
+ date: 2016-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lita