alexa_hue 1.1.8 → 1.1.9

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: 5b81dca95a4ed67e57f04de4bee4de9ae59603d1
4
- data.tar.gz: 76ea44efc50e65ab7f93c1daefc13ca2871851f0
3
+ metadata.gz: 8030fd3599afd03b7a36dc1d2332543ac093f1d0
4
+ data.tar.gz: 6edabcd9960392315447a371a5a1f1a14dacf7a4
5
5
  SHA512:
6
- metadata.gz: 959f7b76db699568bfce0035736ab97e07b9afc8219e4781a3596963ea187d0561c1c96f9c50f972ddf7a942b0287ae700dcad7f1f3d7a52813d69dfde2c22c9
7
- data.tar.gz: a0b74296d1c190c7ea5ade6fcf5256ab849fca21ff9cae78ca7b1e49b58df7511430ffc393ca7cd51d2edc4b08a812871a4324cf27ffa2a2cd1f7faaa0cdadd0
6
+ metadata.gz: fddc1858c8bb644fe63785d55764b0ce11839e31dafdc54e5f1a08c1a43132e957cb5ea7f24c207a20ad59bc6403fd14e39fee8aa02ade79ca6813ab72e7130a
7
+ data.tar.gz: de9d792688ddc0fd4bcaa2a0d9bcb4906c14019f8420c21344c3fc96e3ee14631ee3da987e9c88c2bca9d8e5d205f19f31c05a78ffa1adb3dd043966b605ef2b
data/lib/alexa_hue.rb CHANGED
@@ -21,13 +21,7 @@ module Hue
21
21
 
22
22
  helpers do
23
23
  def switch
24
- begin
25
- @switch ||= Hue::VoiceParser.new
26
- rescue RuntimeError
27
- halt AlexaObjects::Response.new(spoken_response: "Hello. Before using Hue lighting, you'll need to give me access to your Hue bridge. Please press the link button on your bridge and launch the skill again within ten seconds.").to_json
28
- end
29
-
30
- @switch
24
+ Hue::VoiceParser.instance
31
25
  end
32
26
 
33
27
  def control_lights
@@ -5,6 +5,7 @@ require 'alexa_hue/hue/helpers'
5
5
  module Hue
6
6
  class VoiceParser
7
7
  include Hue::Helpers
8
+ include Singleton
8
9
  attr_accessor :client
9
10
 
10
11
  def initialize(options={})
@@ -1,4 +1,4 @@
1
1
  module Hue
2
- VERSION = "1.1.8"
2
+ VERSION = "1.1.9"
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.1.8
4
+ version: 1.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Lucas