alexa_hue 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/alexa_hue/version.rb +1 -1
- data/lib/alexa_hue.rb +2 -2
- 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: 35dbbc5017031c6ae321159a195ede188818dd7b
|
4
|
+
data.tar.gz: 41b248ac2861ee43726952c9f60954bd6fb4f9ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9bc60369eea4a65eab644a4025cee9ceb606f1827a6453760913d7575725b49df97f12096cc92f02da250a1d1194013c510c3d9f25a1dc8b791247556a9de296
|
7
|
+
data.tar.gz: 940ad96b05bc1279c77882b70c8bf6c0cbe14f327fd0712be9d5e3fdf64562506374ceadc250ca019155782df258580616057e61b117845113e6c6a2cba95755
|
data/lib/alexa_hue/version.rb
CHANGED
data/lib/alexa_hue.rb
CHANGED
@@ -16,8 +16,8 @@ module Hue
|
|
16
16
|
extend Sinatra::Extension
|
17
17
|
|
18
18
|
helpers do
|
19
|
-
LEVELS = [*1..10].
|
20
|
-
|
19
|
+
LEVELS = {} ; [*1..10].each { |t| LEVELS[t.to_s ] = t.in_words }
|
20
|
+
|
21
21
|
def control_lights
|
22
22
|
[:brightness, :satruation].each do |attribute|
|
23
23
|
if @echo_request.slots.send(attribute)
|