alexa_hue 1.2.2 → 1.2.3

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: 57a0ac8e1a676ca01553ffd07787129c43dc5a17
4
- data.tar.gz: 48e7ca98535697a5ca4721e954e5346b40678887
3
+ metadata.gz: 2a8279f7243276431c830a00b52f689fc6f2a335
4
+ data.tar.gz: 904de5cd7fb0ca4c6770c614e5c36475a9cb8f3a
5
5
  SHA512:
6
- metadata.gz: 3a7abed1501fb8e48a008a437d81e54cced4358a7270c26bef2aa82385a4d49c297af824f2760bb29f0fea8828d11411766eabd4c58241a28490d2f2f371cb0c
7
- data.tar.gz: f6bc4b6015915cd1fb076269eaea1ce5b73eeb201e48fa744e7056858f2851fb8f2f864320a747a15d06223537c00c2279aa5285e18fcc6f0352067d219857ee
6
+ metadata.gz: 2afeb307b65861a95bfa926393d63bcff6cbcad432240b22c2c02279108e69f242c0d5a2a9dd420a58364c92e60865fa5a506f66051b35409e2122f28a9fb4a3
7
+ data.tar.gz: 041321635e647fcc8b66b12cdc75880d7ac20e933d0ba3ed51c8a6358220ce9d2e268444c3bdc47df0048cdb106939f6b92df5d5aeea45e0886327cc5ed5600a
@@ -31,7 +31,7 @@ module Hue
31
31
  switch.voice @echo_request
32
32
  end
33
33
 
34
- if (@echo_request.slots.lights.nil? && @echo_request.slots.scene.nil? && @echo_request.slots.savescene.nil?) || @echo_request.slots.lights&.scan(/light|lights/).empty?
34
+ if (@echo_request.slots.lights.nil? && @echo_request.slots.scene.nil? && @echo_request.slots.savescene.nil?) || (@echo_request.slots.lights && @echo_request.slots.lights.scan(/light|lights/).empty?)
35
35
  halt AlexaObjects::Response.new(end_session: false, spoken_response: "Please specify which light or lights you'd like to adjust. I'm ready to control the lights.").to_json
36
36
  end
37
37
 
@@ -1,4 +1,4 @@
1
1
  module Hue
2
- VERSION = "1.2.2"
2
+ VERSION = "1.2.3"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alexa_hue
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Lucas