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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 11c12a1020396bc25b832ca745a603242e5d3225
4
- data.tar.gz: c9cef37d250ce66d59587d41ff89257580b97ca8
3
+ metadata.gz: '04328c3579fc345d48d07a41aa479bc926a8103a'
4
+ data.tar.gz: 10fa708e6e45ce1622d6d2dcaaf0bfb7a251d189
5
5
  SHA512:
6
- metadata.gz: 062e3b0086802c2e3ca696bc9e375bff4aba45ec39a2fa973063248d6d5fc45f44ed32ec2cecae1ad85592dd61208ff9f5a9d573b58471dfc713a25d69497730
7
- data.tar.gz: aec4d3b51fd309b8d4e0db740d482cdc0e97159d0757f34b2e2b4e40caa8eb3e4198860a1c5b4eb097ae5b40516dc2d45e712b89aedc3fd85309c6c18ac6c25f
6
+ metadata.gz: 79016338c2c63e5e98376fdd54f479a0a1f1842ee0d5a47a69845c91cba26e1213ad631890218a2ac130b814ce0f60a10bf333b6db0b8f6d1bcbadd1314b3bc6
7
+ data.tar.gz: d677c0c5202e12753b9b72ab3e3790f89802b492e32c7e08e42095f8e6a0f01754c66a34e7218fd98d447190237f1839ae6a48d7e50355ced9b936bfb1f0e2fc
@@ -22,12 +22,13 @@ module Laximo
22
22
  class SoapGroupIsNotSearchableError < ::Laximo::Error; end
23
23
 
24
24
  ERRORS = {
25
- 'E_CATALOGNOTEXISTS' => SoapCatalogNotExistsError,
26
- 'E_INVALIDPARAMETER' => SoapInvalidParameterError,
27
- 'E_INVALIDREQUEST' => SoapInvalidRequestError,
28
- 'E_UNKNOWNCOMMAND' => SoapUnknownCommandError,
29
- 'E_ACCESSDENIED' => SoapAccessDeniedError,
30
- 'E_NOTSUPPORTED' => SoapNotSupportedError,
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
@@ -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 not found or invalidate')
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
- ::Nokogiri::XML(unescape(res))
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
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  module Laximo
3
3
 
4
- VERSION = '0.6.4'.freeze
4
+ VERSION = '0.6.5'.freeze
5
5
 
6
6
  end # Laximo
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
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-23 00:00:00.000000000 Z
11
+ date: 2017-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri