laximo 0.6.4 → 0.6.5
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.
- checksums.yaml +4 -4
- data/lib/laximo/errors.rb +7 -6
- data/lib/laximo/respond.rb +4 -4
- data/lib/laximo/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: '04328c3579fc345d48d07a41aa479bc926a8103a'
|
|
4
|
+
data.tar.gz: 10fa708e6e45ce1622d6d2dcaaf0bfb7a251d189
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 79016338c2c63e5e98376fdd54f479a0a1f1842ee0d5a47a69845c91cba26e1213ad631890218a2ac130b814ce0f60a10bf333b6db0b8f6d1bcbadd1314b3bc6
|
|
7
|
+
data.tar.gz: d677c0c5202e12753b9b72ab3e3790f89802b492e32c7e08e42095f8e6a0f01754c66a34e7218fd98d447190237f1839ae6a48d7e50355ced9b936bfb1f0e2fc
|
data/lib/laximo/errors.rb
CHANGED
|
@@ -22,12 +22,13 @@ module Laximo
|
|
|
22
22
|
class SoapGroupIsNotSearchableError < ::Laximo::Error; end
|
|
23
23
|
|
|
24
24
|
ERRORS = {
|
|
25
|
-
|
|
26
|
-
'
|
|
27
|
-
'
|
|
28
|
-
'
|
|
29
|
-
'
|
|
30
|
-
'
|
|
25
|
+
|
|
26
|
+
'E_CATALOGNOTEXISTS' => SoapCatalogNotExistsError,
|
|
27
|
+
'E_INVALIDPARAMETER' => SoapInvalidParameterError,
|
|
28
|
+
'E_INVALIDREQUEST' => SoapInvalidRequestError,
|
|
29
|
+
'E_UNKNOWNCOMMAND' => SoapUnknownCommandError,
|
|
30
|
+
'E_ACCESSDENIED' => SoapAccessDeniedError,
|
|
31
|
+
'E_NOTSUPPORTED' => SoapNotSupportedError,
|
|
31
32
|
'E_GROUP_IS_NOT_SEARCHABLE' => SoapGroupIsNotSearchableError
|
|
32
33
|
|
|
33
34
|
}.freeze
|
data/lib/laximo/respond.rb
CHANGED
|
@@ -101,7 +101,7 @@ module Laximo
|
|
|
101
101
|
@result = []
|
|
102
102
|
|
|
103
103
|
if http.is_a?(::Net::HTTPBadRequest)
|
|
104
|
-
@error = ::Laximo::SslCertificateError.new('SSL cetificate
|
|
104
|
+
@error = ::Laximo::SslCertificateError.new('SSL cetificate doesn`t found or invalidate')
|
|
105
105
|
else
|
|
106
106
|
|
|
107
107
|
begin
|
|
@@ -115,7 +115,7 @@ module Laximo
|
|
|
115
115
|
@error = soap_errors(res.text)
|
|
116
116
|
end
|
|
117
117
|
|
|
118
|
-
rescue => ex
|
|
118
|
+
rescue ::Exception => ex
|
|
119
119
|
@error = ex
|
|
120
120
|
end
|
|
121
121
|
|
|
@@ -138,10 +138,10 @@ module Laximo
|
|
|
138
138
|
|
|
139
139
|
@error = nil
|
|
140
140
|
@result = parsing_result(
|
|
141
|
-
|
|
141
|
+
::Nokogiri::XML(unescape(res))
|
|
142
142
|
) || []
|
|
143
143
|
|
|
144
|
-
rescue => ex
|
|
144
|
+
rescue ::Exception => ex
|
|
145
145
|
|
|
146
146
|
@result = []
|
|
147
147
|
@error = ex
|
data/lib/laximo/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: laximo
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ivan Pilyaev
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-06-
|
|
11
|
+
date: 2017-06-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: nokogiri
|