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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ad30fb52aba106a7ece5773561ade61c12712a69
4
- data.tar.gz: a2d60e4682cfbb0491d08364a2006a3edeb69623
3
+ metadata.gz: 65ce2c33357d54fe1348c4b4db7507df55254ba6
4
+ data.tar.gz: 8459ad66f0d90613af6cfab793e8c18806620d72
5
5
  SHA512:
6
- metadata.gz: eb56015813ff18e597c48580dd5d4b12aac23b2afcb6e820fabe3d65e399ebbd2df1937d5b6647b616cb5bfc8f36154bbc4140677f6198dca007d7c30c2bcbe5
7
- data.tar.gz: a65cd8b0816fa0bdf5661e334848c2ff0a949b1dc56a97e53aaed92e741151b8cd560bf89b4d96a8e00d416f9ec2c6eef592f32dfa33d3e4967f081df486fe57
6
+ metadata.gz: b20d899493710a591573b66d71fec74b89a92b79548503e0d23f3908d4985ae2133d6d3b7c72ca016a4c77332d6a273e87d35e338ce57c95bbbab53d4b55863f
7
+ data.tar.gz: ec0d362d349048b5f9807be080b3e1afb629718d4d398b483557aa2d0dd529b4655a0bf5808f6e1201b4490d339fa7578f715b221b3b201b405e6d259f6970e6
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Domoticz
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
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.1
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-13 00:00:00.000000000 Z
11
+ date: 2015-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler