wialon 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/wialon.rb +4 -4
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 30c50f56873525a2ee854a329c861d1c56790180d5c6623c745521768817600f
4
- data.tar.gz: 53545f86e7ab11db73c2ced29cb914e9c1c042d4ac7d5eef965ea1024e31b555
3
+ metadata.gz: c3d5ec50fad386caa2f8de9d35bf4f6452c26e4cc3529ef018690c0f28bdedb8
4
+ data.tar.gz: 61ee68c3db23dea9cd582e809ba7fcd96171cb27e3b2db4dac10cd900acd1580
5
5
  SHA512:
6
- metadata.gz: eedf7a8898144cf14817d717c53d3f73be7f81975b8422337b3f5e25568b121dc135e11ab909ac39d7b0ab4239771c867727d2c007043361bcdb930ffbd54248
7
- data.tar.gz: 83ea5a408bd411b2b110e4832c2f23a50338c2b3a98988f31d0e6d70d2121bc493b5dfed760cb43c7160acde113d16e09987f2efb702f33162609bb669b63d67
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 == self.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 == self.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 == self.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 == self.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.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-26 00:00:00.000000000 Z
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