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 +4 -4
- data/lib/laximo/respond.rb +5 -3
- data/lib/laximo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 03ede08d655e997ba3cd7984c915919a1fae0a73
|
|
4
|
+
data.tar.gz: 8c264484cdedc5b7c33092c748d90de3c783abb5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ee1b821651bd6683d2a739d74d412cd79a45433b3f91524aa39493a50f43f0f4eff67fdcbcfa8a2c41b3118daaf8af3f699aad8aee0c8ce0707065e8a54151bb
|
|
7
|
+
data.tar.gz: 421d851481fbb3cc214be66526dd83cc4a8d69181d3bdf078308623365e93bfbb1b262a7246259c89de536db06624eadf37271ccd242a8c61fcc177f8d9a86f9
|
data/lib/laximo/respond.rb
CHANGED
|
@@ -100,9 +100,7 @@ module Laximo
|
|
|
100
100
|
|
|
101
101
|
@result = []
|
|
102
102
|
|
|
103
|
-
if http.
|
|
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
|
data/lib/laximo/version.rb
CHANGED