wialon 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wialon.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c3d5ec50fad386caa2f8de9d35bf4f6452c26e4cc3529ef018690c0f28bdedb8
|
4
|
+
data.tar.gz: 61ee68c3db23dea9cd582e809ba7fcd96171cb27e3b2db4dac10cd900acd1580
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7176573fb5b6753518f7751f301416f3401e50c087226281a974ee5669c30cc245d2703db6b9ec26c2e57fabcdf86fb1bc1fd4989881ff9aa3b58eb6ed13d7f0
|
7
|
+
data.tar.gz: eafac38bf1944e260c180c9f8e83aa00499068e01f73b7180c80f5cd4e8ac47f7924fbcf6cd5e543a38d9d646b7006aea8ea7c8cf6a39ad4ced7fdfe38e67e78
|
data/lib/wialon.rb
CHANGED
@@ -24,7 +24,7 @@ class Wialon
|
|
24
24
|
end
|
25
25
|
uri = URI.parse('https://geocode-maps.wialon.com/' + self.host + '/gis_geocode?coords=[' + JSON.generate({"lon": lon,"lat": lat}) + ']&flags=' + flags.to_s + '&uid=' + self.uid.to_s)
|
26
26
|
request = Net::HTTP::Post.new(uri)
|
27
|
-
req_options = { use_ssl: uri.scheme ==
|
27
|
+
req_options = { use_ssl: (uri.scheme == "https") }
|
28
28
|
response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http|
|
29
29
|
http.request(request)
|
30
30
|
end
|
@@ -39,7 +39,7 @@ class Wialon
|
|
39
39
|
|
40
40
|
uri = URI.parse('https://search-maps.wialon.com/' + self.host + '/gis_searchintelli?phrase=' + string + '&count=1&indexFrom=0&uid=' + self.uid.to_s)
|
41
41
|
request = Net::HTTP::Post.new(uri)
|
42
|
-
req_options = { use_ssl: uri.scheme ==
|
42
|
+
req_options = { use_ssl: (uri.scheme == "https") }
|
43
43
|
response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http|
|
44
44
|
http.request(request)
|
45
45
|
end
|
@@ -76,7 +76,7 @@ class Wialon
|
|
76
76
|
"sid" => self.sid
|
77
77
|
)
|
78
78
|
|
79
|
-
req_options = { use_ssl: uri.scheme ==
|
79
|
+
req_options = { use_ssl: (uri.scheme == "https") }
|
80
80
|
|
81
81
|
response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http|
|
82
82
|
http.request(request)
|
@@ -119,7 +119,7 @@ class Wialon
|
|
119
119
|
"sid" => self.sid
|
120
120
|
)
|
121
121
|
|
122
|
-
req_options = { use_ssl: uri.scheme ==
|
122
|
+
req_options = { use_ssl: (uri.scheme == "https") }
|
123
123
|
|
124
124
|
response = Net::HTTP.start(uri.hostname, uri.port, req_options) do |http|
|
125
125
|
http.request(request)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wialon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Golden M
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-08-
|
11
|
+
date: 2018-08-28 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Wialon gem wrapper for Remote API
|
14
14
|
email: developments@goldenmcorp.com
|