huebot 0.3.0 → 0.4.0

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
  SHA256:
3
- metadata.gz: 7d761b227b5739c696762eb62db2e1e1d4592978133cf66ff2cd6d929bb83a95
4
- data.tar.gz: 9451071e823fbda241f5bba7b9095d29d2dff1b82a8004fdd8fca8a673f47082
3
+ metadata.gz: 267bb3cc14e143785af2250a762b365f513bb18a3630b68edf10d3df3748de2a
4
+ data.tar.gz: 7afa69b3aa54a936deebbcea75b409f2411fa5482554b22cd29aff088ce351b6
5
5
  SHA512:
6
- metadata.gz: d64695ec9ceb5813563974d0dd0c9dd4c3b7c18e29cee89482badec64cfc39bafc9db1dfdf87ecf8a54e8fcc090a51099645cf211d3314d2bf9b28f568a4982b
7
- data.tar.gz: 6ce32ed34982a8d1e6478d4a305176c8bf5afa707033cde9f754d1a264383b169bddc4d5171fc97f139b8f012a85b463aca7abf231b544a16aef7938a5374692
6
+ metadata.gz: 442d3fb05c7f1e6610437ff5fc2f92d25694e2e9342ff9b16217ba80b7982538d48f807304e487fd583385864e9f4cf86491e33d2c66ba663b22449867ba780c
7
+ data.tar.gz: '01908c65fb9c472271904973e313bc080eb96d91b557ef2e8bb3902a5ea054f7fb71b3b37bf6f51f356bf742c5ab32a336e4c013059a0a537dc3a538955dfc97'
data/lib/hue/client.rb CHANGED
@@ -34,7 +34,7 @@ module Hue
34
34
  # Patched by Jordan Hollinger to remove use of "curb" gem
35
35
  # TODO handle redirects? That's what curb was used for.
36
36
  def bridges
37
- req = Net::HTTP::Get.new(URI("https://www.meethue.com/api/nupnp"))
37
+ req = Net::HTTP::Get.new(URI(ENV["HUE_DISCOVERY_API"] || "https://discovery.meethue.com/"))
38
38
  resp = Net::HTTP.start req.uri.host, req.uri.port, {use_ssl: true} do |http|
39
39
  http.request req
40
40
  end
@@ -1,4 +1,4 @@
1
1
  module Huebot
2
2
  # Gem version
3
- VERSION = '0.3.0'
3
+ VERSION = '0.4.0'
4
4
  end
data/lib/huebot.rb CHANGED
@@ -23,7 +23,7 @@ module Huebot
23
23
  LightInput = Struct.new(:val)
24
24
 
25
25
  #
26
- # Struct for specifying a Gropu input (id or name)
26
+ # Struct for specifying a Group input (id or name)
27
27
  #
28
28
  # @attr val [Integer|String] id or name
29
29
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: huebot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordan Hollinger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-22 00:00:00.000000000 Z
11
+ date: 2021-12-17 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Declare and run YAML programs for Philips Hue devices
14
14
  email: jordan.hollinger@gmail.com
@@ -56,8 +56,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
56
56
  - !ruby/object:Gem::Version
57
57
  version: '0'
58
58
  requirements: []
59
- rubyforge_project:
60
- rubygems_version: 2.7.6.2
59
+ rubygems_version: 3.0.3.1
61
60
  signing_key:
62
61
  specification_version: 4
63
62
  summary: Orchestration for Hue devices