alexa_hue 1.1.1 → 1.1.2

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: 966f685e91dc2b39bca4fe3460b3e54dcf9ad350
4
- data.tar.gz: 3695c7c36fe1ca51430e386661d54c0ee23e0051
3
+ metadata.gz: 35dbbc5017031c6ae321159a195ede188818dd7b
4
+ data.tar.gz: 41b248ac2861ee43726952c9f60954bd6fb4f9ef
5
5
  SHA512:
6
- metadata.gz: 7c57e8457a958dddf91067cc04adf62f0927180fe9fd82acc02bfa56b6b50ad8ec34243e7f6faf7f0c734fb9235b17d42576ca5f846af3b8643f8cb069d317fc
7
- data.tar.gz: af8afc1312c35e9910965bea816dbc7f57178b7642c59243855c0e811f85ad276d8ac59959b5b6d31b84a2118ca4fa58e750b9ce5851031b30cf5feebac75b79
6
+ metadata.gz: 9bc60369eea4a65eab644a4025cee9ceb606f1827a6453760913d7575725b49df97f12096cc92f02da250a1d1194013c510c3d9f25a1dc8b791247556a9de296
7
+ data.tar.gz: 940ad96b05bc1279c77882b70c8bf6c0cbe14f327fd0712be9d5e3fdf64562506374ceadc250ca019155782df258580616057e61b117845113e6c6a2cba95755
@@ -1,4 +1,4 @@
1
1
  module Hue
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
4
4
 
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].map{|k,v|[k.to_s,t,in_words]}.to_h
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)
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.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Lucas