lita-onewheel-forecast-io 1.4.12 → 1.4.13

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: bf1fbe563345fdf7b6c7cda182d12288bb66928d
4
- data.tar.gz: f7ab8db809d9a73376a11e9954fb936998610ce5
3
+ metadata.gz: 428d747fc23c1c69558f33a57566795d322deb4f
4
+ data.tar.gz: 9545d9c3bfa54cc0b0e5813c07d5afc1306bb930
5
5
  SHA512:
6
- metadata.gz: b1a9af2e0660516208c1a888d89f9a8a9a2c884ddb603b5ac229d177f2920fc820074415e1419457027078781a5dc341f2f3ebac0481060a5e2e98868830fa89
7
- data.tar.gz: 698e37efa2717ab9a04950ff98d67f6be2ba99321b901e2c3fea10a17de6231eba4aa808dc2eb58ecab67c78de514a0dc7c083d6e6e9f1969f3e36b5647582a1
6
+ metadata.gz: c2bd9b306c0c395676224832483dddbd5ff595e144706a99fc2b9afbac59eb16e5d2f803872ece599767afb1903a5ea8fe2a50f29aee655a6e060009ad77f41e
7
+ data.tar.gz: 1fe5cd613eee8983b3c8fcec986408d74cf2f1f053b65e7cf14df225f451437ba1d58068064e239002662481977f0ebdabbffe3b2ab5231b176495c8963abbe3
@@ -74,6 +74,7 @@ module Lita
74
74
  help: { '!tomorrow' => 'Give me tomorrow\'s forecast as it relates to today.'})
75
75
  route(/^today/i, :handle_irc_today, command: true,
76
76
  help: { '!today' => 'Give me today\'s forecast as it relates to yesterday.'})
77
+ route(/^Good morning./, :handle_irc_windows) # Easter egg alert. Thank you, zrobo and donpdonp.
77
78
  route(/^windows/i, :handle_irc_windows, command: true)
78
79
  route(/^windows\s+(.+)/i, :handle_irc_windows, command: true,
79
80
  help: { '!windows' => 'Tell me when to close my windows as it\'s warmer outside than in.'})
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'lita-onewheel-forecast-io'
3
- spec.version = '1.4.12'
3
+ spec.version = '1.4.13'
4
4
  spec.authors = ['Andrew Kreps']
5
5
  spec.email = ['andrew.kreps@gmail.com']
6
6
  spec.description = <<-EOS
@@ -522,6 +522,18 @@ describe Lita::Handlers::OnewheelForecastIo, lita_handler: true do
522
522
  expect(replies.last).to eq("Portland, OR 48 hr rains |\u000302▁_▁\u000306▃▃▃\u000310▅\u000302▁_▁▁\u000306▃\u000302▁\u000310▃\u000306▃\u000310▅\u000306▃\u000302▁▁▁▁▁▁__________________________\u0003| max 28%")
523
523
  end
524
524
 
525
+ it 'will return windows for good morning' do
526
+ mock_up 'windows'
527
+ send_message 'Good morning.'
528
+ 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.')
529
+ end
530
+
531
+ it 'will return windows for good morning' do
532
+ mock_up 'windows'
533
+ send_message 'good morning!'
534
+ expect(replies.last).to eq(nil)
535
+ end
536
+
525
537
  # it 'will summarize !today in relation to yesterday' do
526
538
  # send_command 'today'
527
539
  # expect(replies.last).to eq('Today will be whatever')
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.12
4
+ version: 1.4.13
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-07-27 00:00:00.000000000 Z
11
+ date: 2016-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lita