domoticz 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/domoticz.rb +1 -1
- data/lib/domoticz/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 65ce2c33357d54fe1348c4b4db7507df55254ba6
|
4
|
+
data.tar.gz: 8459ad66f0d90613af6cfab793e8c18806620d72
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b20d899493710a591573b66d71fec74b89a92b79548503e0d23f3908d4985ae2133d6d3b7c72ca016a4c77332d6a273e87d35e338ce57c95bbbab53d4b55863f
|
7
|
+
data.tar.gz: ec0d362d349048b5f9807be080b3e1afb629718d4d398b483557aa2d0dd529b4655a0bf5808f6e1201b4490d339fa7578f715b221b3b201b405e6d259f6970e6
|
data/lib/domoticz.rb
CHANGED
@@ -23,7 +23,7 @@ module Domoticz
|
|
23
23
|
uri = URI(Domoticz.configuration.server + "json.htm?" + params)
|
24
24
|
request = Net::HTTP::Get.new(uri)
|
25
25
|
request.basic_auth(username, password) if username && password
|
26
|
-
response = Net::HTTP.start(uri.hostname, uri.port) { |http| http.request(request) }
|
26
|
+
response = Net::HTTP.start(uri.hostname, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(request) }
|
27
27
|
|
28
28
|
JSON.parse(response.body)
|
29
29
|
end
|
data/lib/domoticz/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: domoticz
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jankees van Woezik
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|