laximo 0.6.5 → 0.6.5.1

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: '04328c3579fc345d48d07a41aa479bc926a8103a'
4
- data.tar.gz: 10fa708e6e45ce1622d6d2dcaaf0bfb7a251d189
3
+ metadata.gz: 03ede08d655e997ba3cd7984c915919a1fae0a73
4
+ data.tar.gz: 8c264484cdedc5b7c33092c748d90de3c783abb5
5
5
  SHA512:
6
- metadata.gz: 79016338c2c63e5e98376fdd54f479a0a1f1842ee0d5a47a69845c91cba26e1213ad631890218a2ac130b814ce0f60a10bf333b6db0b8f6d1bcbadd1314b3bc6
7
- data.tar.gz: d677c0c5202e12753b9b72ab3e3790f89802b492e32c7e08e42095f8e6a0f01754c66a34e7218fd98d447190237f1839ae6a48d7e50355ced9b936bfb1f0e2fc
6
+ metadata.gz: ee1b821651bd6683d2a739d74d412cd79a45433b3f91524aa39493a50f43f0f4eff67fdcbcfa8a2c41b3118daaf8af3f699aad8aee0c8ce0707065e8a54151bb
7
+ data.tar.gz: 421d851481fbb3cc214be66526dd83cc4a8d69181d3bdf078308623365e93bfbb1b262a7246259c89de536db06624eadf37271ccd242a8c61fcc177f8d9a86f9
@@ -100,9 +100,7 @@ module Laximo
100
100
 
101
101
  @result = []
102
102
 
103
- if http.is_a?(::Net::HTTPBadRequest)
104
- @error = ::Laximo::SslCertificateError.new('SSL cetificate doesn`t found or invalidate')
105
- else
103
+ if http.respond_to?(:body)
106
104
 
107
105
  begin
108
106
 
@@ -119,6 +117,10 @@ module Laximo
119
117
  @error = ex
120
118
  end
121
119
 
120
+ elsif http.is_a?(::Net::HTTPBadRequest)
121
+ @error = ::Laximo::SslCertificateError.new('SSL cetificate doesn`t found or invalidate')
122
+ else
123
+ @error = http
122
124
  end
123
125
 
124
126
  end # prepare_error
@@ -1,6 +1,6 @@
1
1
  # encoding: utf-8
2
2
  module Laximo
3
3
 
4
- VERSION = '0.6.5'.freeze
4
+ VERSION = '0.6.5.1'.freeze
5
5
 
6
6
  end # Laximo
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: laximo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.5
4
+ version: 0.6.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Pilyaev