wialon 1.1.4 → 1.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- metadata +6 -8
- data/lib/wialon_error.rb +0 -39
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4da5835632cc7ac20057ad826d70c7e4b5860428bf8a25891d6c0ead434163a7
|
4
|
+
data.tar.gz: 1257f9505ad63d04b6df62a59897508576eca997a0b1596c321b518bf858af49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cf784c01254952113cd669c3c54eefd9ff8344e159030434a6a6a20836fb99cb99cbed2f73c30c6b7707446d06f177181d4a440968b1ea148695d630ad515ed7
|
7
|
+
data.tar.gz: c3e6a616051dce45e3496cd56f2548bccd07e745054902b57735c6dc0542a84456ed7800ef1f472ea90763b84224e9362c8cd6b7c5df43de8f5c2f956bafad33
|
metadata
CHANGED
@@ -1,26 +1,25 @@
|
|
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.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Golden M
|
7
|
+
- Golden M Software
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Wialon gem wrapper for Remote API
|
14
|
-
email:
|
14
|
+
email: software@goldenmcorp.com
|
15
15
|
executables: []
|
16
16
|
extensions: []
|
17
17
|
extra_rdoc_files: []
|
18
18
|
files:
|
19
19
|
- lib/wialon.rb
|
20
|
-
- lib/wialon_error.rb
|
21
20
|
homepage: http://rubygems.org/gems/wialon
|
22
21
|
licenses:
|
23
|
-
-
|
22
|
+
- MIT
|
24
23
|
metadata: {}
|
25
24
|
post_install_message:
|
26
25
|
rdoc_options: []
|
@@ -37,8 +36,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
37
36
|
- !ruby/object:Gem::Version
|
38
37
|
version: '0'
|
39
38
|
requirements: []
|
40
|
-
|
41
|
-
rubygems_version: 2.7.7
|
39
|
+
rubygems_version: 3.0.2
|
42
40
|
signing_key:
|
43
41
|
specification_version: 4
|
44
42
|
summary: Wialon gem wrapper for Remote API
|
data/lib/wialon_error.rb
DELETED
@@ -1,39 +0,0 @@
|
|
1
|
-
class WialonError
|
2
|
-
attr_accessor :error
|
3
|
-
def initialize(error)
|
4
|
-
self.error = error
|
5
|
-
end
|
6
|
-
|
7
|
-
def message
|
8
|
-
@errors = {
|
9
|
-
'1' => "Invalid session",
|
10
|
-
'2' => "Invalid service name",
|
11
|
-
'3' => "Invalid result",
|
12
|
-
'4' => "Invalid input",
|
13
|
-
'5' => "Error performing request",
|
14
|
-
'6' => "Unknown error",
|
15
|
-
'7' => "Access denied",
|
16
|
-
'8' => "Invalid user name or password",
|
17
|
-
'9' => "Authorization server is unavailable",
|
18
|
-
'10' => "Reached limit of concurrent requests",
|
19
|
-
'11' => "Password reset error",
|
20
|
-
'14' => "Billing error",
|
21
|
-
'1001' => "No messages for selected interval",
|
22
|
-
'1002' => "Item with such unique property already exists or Item cannot be created according to billing restrictions",
|
23
|
-
'1003' => "Only one request is allowed at the moment",
|
24
|
-
'1004' => "Limit of messages has been exceeded",
|
25
|
-
'1005' => "Execution time has exceeded the limit",
|
26
|
-
'1006' => "Exceeding the limit of attempts to enter a two-factor authorization code",
|
27
|
-
'1011' => "Your IP has changed or session has expired",
|
28
|
-
'2014' => "Selected user is a creator for some system objects, thus this user cannot be bound to a new account",
|
29
|
-
'2015' => "Sensor deleting is forbidden because of using in another sensor or advanced properties of the unit"
|
30
|
-
}
|
31
|
-
|
32
|
-
response = {
|
33
|
-
original_message: self.error,
|
34
|
-
message: @errors[self.error['error'].to_s]
|
35
|
-
}
|
36
|
-
|
37
|
-
return response
|
38
|
-
end
|
39
|
-
end
|